Hi all,
Any idea where i may be going wrong. I'm trying to upgrade and im hitting this error:
Warning: require_once(xxxxxx......./public_html/system/storage/vendor/aws/aws-sdk-php/src/functions.php): Failed to open stream: No such file or directory in xxxxx....../public_html/system/vendor.php on line 6
If i hard code the DIR_STORAGE value in the vendor.php file (below) it gets past the errors. The file is stored outside of my public_html.
"$autoloader->register('Aws', DIR_STORAGE . 'vendor/aws/aws-sdk-php/src/', true);
require_once(DIR_STORAGE . 'vendor/aws/aws-sdk-php/src/functions.php');
"
Both config files are correct, and i have cleared the cache (i think). Any pointers?
I've been testing the Upgrade button this morning and I believe the problem is if you move your "storage" directory from the OpenCart root. You need to leave a copy of it in the /system/ directory (or at least, move a copy back there before upgrading). The /install/ directory and associated files get overwritten when you use the Upgrade button, so you can't change the location manually. You need to leave a copy of the "storage" directory so the installer can access it.
There are a couple of other issues with the Upgrade button, including it being incredibly slow, and timing out if your max_execution_time is too short. I'll be posting a topic later today with my findings.
There are a couple of other issues with the Upgrade button, including it being incredibly slow, and timing out if your max_execution_time is too short. I'll be posting a topic later today with my findings.
That makes a lot of sense, thank you.
I did end up getting it to work by moving my storage folder back to its original place. But i then started hitting other issues so reverted it all.
Still can not get my head around how i make a simple theme in this version, so im having to edit core files an the upgrade screws me!
I did end up getting it to work by moving my storage folder back to its original place. But i then started hitting other issues so reverted it all.
Still can not get my head around how i make a simple theme in this version, so im having to edit core files an the upgrade screws me!

I haven't looked into the theme structure in 4.0, so I'm afraid I can't give you advice on that front. However, you might consider using the Theme Editor, which should store the changes in the database. It's in Design > Theme Editor.
I haven't used the Theme Editor at all in 4.0 so I don't know if it's reliable, but I haven't heard of bugs specific to it. It might be a good option so you can avoid overwriting your edits.
Another option would be to use vQmod to make changes, though then you'd have to keep track of all of them in a vQmod file (and learn its XML syntax). If you feel comfortable with that, you can get it here:
First Install This: https://github.com/vqmod/vqmod/releases
Then Install This: https://github.com/vqmod/opencart/releases
I haven't used the Theme Editor at all in 4.0 so I don't know if it's reliable, but I haven't heard of bugs specific to it. It might be a good option so you can avoid overwriting your edits.
Another option would be to use vQmod to make changes, though then you'd have to keep track of all of them in a vQmod file (and learn its XML syntax). If you feel comfortable with that, you can get it here:
First Install This: https://github.com/vqmod/vqmod/releases
Then Install This: https://github.com/vqmod/opencart/releases
I just wrote an explanation on how to get the Upgrade button to work here:
viewtopic.php?t=232048
However, I still wouldn't advise using it, since it requires so many work-arounds. It's safer to just upload the new files to your server, visit www.yourdomain.com/install and then run the upgrade process from there.
viewtopic.php?t=232048
However, I still wouldn't advise using it, since it requires so many work-arounds. It's safer to just upload the new files to your server, visit www.yourdomain.com/install and then run the upgrade process from there.
Who is online
Users browsing this forum: No registered users and 2 guests