Laravel error

I updated composer in terminal and upload to server.
All folders uploaded but this error happen
folder structure

htdocs - All files in public folder
- laravel folder - all other files

edit index.php as follow

if (file_exists($maintenance = DIR.‘/laravel/storage/framework/maintenance.php’)) {
require $maintenance;
}
require DIR.‘/laravel/vendor/autoload.php’;

here error

Warning: require(/home/vol1_3/epizy.com/epiz_30946058/htdocs/laravel/vendor/composer/…/symfony/var-dumper/Resources/functions/dump.php): failed to open stream: No such file or directory in /home/vol1_3/epizy.com/epiz_30946058/htdocs/laravel/vendor/composer/autoload_real.php on line 71

how can solve .

Since you did not provide your website address, make sure your website code is correct.

how edit in env files.
APP_NAME=LearnerSchool
APP_ENV=production
APP_KEY=base64:Erj/E3zd2hAa0kW61w/Q15CVZsfQQaeKNfRFTAculqY=
APP_URL=http://learnerschool.epizy.com
APP_DEBUG=true
IS_DEMO=false

As the error says, the file doesn’t exist or unopenable. Please check if the file exists and the permissions.

You need to upload this file.

/laravel/vendor/composer/…/symfony/var-dumper/Resources/functions/dump.php

1 Like

I already checked in vendor composer , this file exist . I dont know why error happen.

Please provide your URL

(http://learnerschool.epizy.com)

Can you please copy lines 69-75 from this file?

/laravel/vendor/composer/autoload_real.php

function composerRequirebdcb27305ac57e0dc9dcd4a8b0420e4f($fileIdentifier, $file)
{
    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
        require $file;

        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    }
}

I checked your account and the folder htdocs/laravel/vendor/symfony/var-dumper doesn’t seem to exist. So of course any files in that directory cannot be accessed.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.