Reputation: 260
I am new to laravel and I run my website on localhost. It runs correctly but when I upload it on cpanel, it raises these errors :
Warning: require(/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/didfilei/public_html/app/vendor/composer/autoload_real.php on line 66
Warning: require(/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/didfilei/public_html/app/vendor/composer/autoload_real.php on line 66
Fatal error: require(): Failed opening required '/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/didfilei/public_html/app/vendor/composer/autoload_real.php on line 66
Upvotes: 3
Views: 10779
Reputation: 260
I solved it. I realized that after extracting the zip file with cpanel, some folders were deleted (eg '/ symfony'), so I got more space from the hosts, then my project extract correctly
Upvotes: 5
Reputation: 452
Since you do not have access to SSH, you should upload the vendor files along with the rest of your project. Be careful that if your dev machine is windows, you might face some issues with paths and case sensitivity.
You also need to check how php is executed in your host. You might have to fiddle around with file ownership and access rights. Especially if suphp is used, your user must be the owner of everything in your folder, all files must be set to 644 and all folders to 755
Upvotes: 2
Reputation: 245
SSH into your server and run composer update
in the root of your project. This will pull in the required vendor files that you are missing.
Upvotes: 1