I have uploaded my laravel project from local
to host
.
Now I have following error:
Fatal error: require(): Failed opening required '/home/httpd/vhosts/mort.com/httpdocs/cucc/testLaravel/vendor/composer/../../app/Libraries/helpers.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/httpd/vhosts/mort.com/httpdocs/cucc/testLaravel/vendor/composer/autoload_real.php on line 66`
I cannot understand what the problem is. The laravel framework is in the directory called testLaravel
and the public content in a directory called laravel
.
This error means some packages are missing, as I see you didn't run composer install
, this means the required packages are not installed.
To solve it just go to the root of your project and run on the command line:
composer install
If the other solutions do not work, you can try:
1- Delete Composer Folder (vendor/composer)
2- Delete Autoload.php (vendor/autoload.php)
Then, write on the console:
3- Composer Install.
4- Composer Update.
5- And run server.
I hope this can help you.
Bye.
For me, only "composer install" doesn't' work. After googling I find out a solution which is given below
composer update --no-scripts
and then
composer update
It's worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With