lundi 9 septembre 2019

Warning: require(/home/www/example.info/public/../vendor/autoload.php): failed to open stream: on line 24

I am getting the following error when I uploaded my Laravel project to server:

Warning: require(/home/www/lbc-test.example.info/public/../vendor/autoload.php): failed to open stream: No such file or directory in /home/www/lbc-test.example.info/public/index.php on line 24

Fatal error: require(): Failed opening required '/home/www/lbc-test.example.info/public/../vendor/autoload.php' (include_path='.:/usr/local/php7.2/lib/php') in /home/www/lbc-test.example.info/public/index.php on line 24

I have tried to composer install inside the ssh and I do have the vendor folder with the autoload.php. The project ran perfectly in my XAMP environment however I get this error when uploaded to the server.

index.php

require __DIR__.'/../vendor/autoload.php';

$app = require_once __DIR__.'/../bootstrap/app.php';




via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire