Page 1 of 1

Cannot access admin dashboard after upgrading to version 4.0

Posted: Sun Jul 24, 2022 7:11 pm
by elsaidy
Hi,
I used to upgrade my opencart v3.x store to 4.0
Upgrade process goes success, and it told me to delete the install folder, after that I was trying to access the admin panel I got the following error.

Code: Select all

Warning: require_once(/home/yummycou/public_html/storage/vendor/aws/aws-sdk-php/src/functions.php): Failed to open stream: No such file or directory in /home/yummycou/public_html/system/vendor.php on line 11

Fatal error: Uncaught Error: Failed opening required '/home/yummycou/public_html/storage/vendor/aws/aws-sdk-php/src/functions.php' (include_path='.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php') in /home/yummycou/public_html/system/vendor.php:11 Stack trace: #0 /home/yummycou/public_html/system/framework.php(8): require_once() #1 /home/yummycou/public_html/system/startup.php(66): require_once('/home/yummycou/...') #2 /home/yummycou/public_html/admin/index.php(20): require_once('/home/yummycou/...') #3 {main} thrown in /home/yummycou/public_html/system/vendor.php on line 11
Kindly help me to sort this problem out.

Thanks.

Re: Cannot access admin dashboard after upgrading to version 4.0

Posted: Mon Jul 25, 2022 9:17 am
by straightlight
Your storage folder needs to be located outside of your public_html folder as both config.php files, DIR_STORAGE path, must be edited accordingly. Once your storage folder has been moved from FTP without error messages, you need to set your CHMOD settings to 0755 recursively on your folders. Files do not need to be modified.

Re: Cannot access admin dashboard after upgrading to version 4.0

Posted: Mon Jul 25, 2022 6:18 pm
by JNeuhoff
On a more general note: Don't upgrade from a stable OpenCart 3.0.x.x to OpenCart 4.0.0.0. Seriously, is nobody reading the forum here? OpenCart 4.0.0.0 is not suitable for a live site, it's more like a beta release, with still a number of needed outstanding bugfixes.

And do backups of you old website before doing any big changes or updates. It's surprising to see how so many users don't do these common sense approaches.