Did you run composer dump-autoload on the server? Also you might need to run composer install instead, which also does the dump-autoload!
May 12, 2019
8
Level 13
Errors white deploying laravel application on cPanle shared hosting account
Hi,
i'm trying to deploy a laravel 5.8 app on shared hosting account running cpanel, i'm getting a composer error not sure how to fix it
// error found in account log file
[12-May-2019 10:42:24 UTC] PHP Warning: require(/home/demolinx/vendor/composer/../../App/Helpers/activeAdminSidebar.php): failed to open stream: No such file or directory in /home/demolinx/vendor/composer/autoload_real.php on line 66
[12-May-2019 10:42:24 UTC] PHP Warning: require(/home/demolinx/vendor/composer/../../App/Helpers/activeAdminSidebar.php): failed to open stream: No such file or directory in /home/demolinx/vendor/composer/autoload_real.php on line 66
[12-May-2019 10:42:24 UTC] PHP Fatal error: require(): Failed opening required '/home/demolinx/vendor/composer/../../App/Helpers/activeAdminSidebar.php' (include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/demolinx/vendor/composer/autoload_real.php on line 66
i made the helper file in /App/Helpers/activeAdminSidebar.php and its the files that is giving me the error,
any ideas on how to fix this error ???
Please or to participate in this conversation.

