mardi 25 août 2020

ReflectionException Error in Laravel 5.5 after deployment to live server

Due to unable to access Terminal in hosting server, I ran composer update in my local machine and uploaded everything including vendor folder, composer.json and composer.lock. My hosting server run PHP 7.1 and so does my local machine with Laravel 5.5.

Now I am facing PHP Fatal error: Uncaught ReflectionException: Class view does not exist in /public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:752 Stack trace:

#0 /public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(752): ReflectionClass->__construct('view')

#1 /public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('view')

#2 /public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\Container\Container->resolve('view', Array)

#3 /public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\Container\Container->make('view', Array)

#4 /public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(110): Illuminate\Foundation\Application->make('view', Array)

#5 /public_html/vendor/laravel/framework/src/Illuminate/Found in /public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 752

I ran the following command.

composer require maatwebsite/excel --no-update
composer update maatwebsite/excel

And I uploaded the following files and folder from local to live server.

  1. Vendor / maatwebsite folder and all other newly created by folders.
  2. vendor / composer folder
  3. composer.json
  4. composer.lock

I cleared config cache, route cache, view cache from PHP file using artisan command.

Can anyone please help me to debug the error? Thank you.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire