Laravel 在 cpanel 上引发第 66 行 autoload_real.php 的错误

Moh*_*udi 3 php autoload symfony laravel-5 laravel-5.6

我是 Laravel 新手,我在本地主机上运行我的网站。它运行正确,但是当我将其上传到 cpanel 上时,它会引发以下错误:

警告:require(/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php):无法打开流:/home/didfilei/public_html/app 中没有这样的文件或目录/vendor/composer/autoload_real.php 第 66 行

警告:require(/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php):无法打开流:/home/didfilei/public_html/app 中没有这样的文件或目录/vendor/composer/autoload_real.php 第 66 行

致命错误:require():无法打开所需的'/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php'(include_path='.:/opt/cpanel/ea- php71/root/usr/share/pear') 在 /home/didfilei/public_html/app/vendor/composer/autoload_real.php 第 66 行

Moh*_*udi 5

我解决了。我意识到使用 cpanel 提取 zip 文件后,一些文件夹被删除(例如“/ symfony”),因此我从主机获得了更多空间,然后我的项目正确提取