Post by sainine » Wed Apr 19, 2023 4:18 am

Hi,

Despite me telling the bossman that it's not production ready, he's gone ahead and okayed a project running OC4.

Is there a 'best version' to upgrade from? I have a 2.1.0.1 version of the store and a dev test version that's currently on 3.0.3.8 that I'd love to leave it on for now, but a test upgrade from 3.0.3.8 to 4.0.2.0 has left me with the following error that I have no idea how to resolve:

Code: Select all

Error: Class "Controller" not found in /var/www/vhosts/xxxxxx/install/controller/common/column_left.php on line 2
PHP Version is 8.1.17.

Should I upgrade directly from a specific version for best results? I had a brief look over github and couldn't find anything similar - any help with this one would be massively appreciated!

Newbie

Posts

Joined
Wed Apr 19, 2023 4:10 am

Post by Johnathan » Wed Apr 19, 2023 6:06 am

There's no reason to upgrade to OpenCart 4.0 if you're on 3.0.3.8. I would advise against it, since it will cost many hours in fixing bugs and updating all your extensions.

If your boss insists, then you should wait a few weeks if possible, until a stable 4.0.2.x version happens. If you can't wait that long, at least wait a few days to see if more releases happen in the near future.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by sainine » Wed Apr 19, 2023 6:40 am

Exactly what I've been telling him but no luck!

I've solved the issue, by modifying the file install/controller/common/column_left.php on line 2

Code: Select all

class ControllerCommonColumnLeft extends Controller { 
with

Code: Select all

class ControllerCommonColumnLeft extends \Opencart\System\Engine\Controller { 

Setup worked fine with this change. Where should I report other issues that I encounter - is here best or the should I head over to github?

Newbie

Posts

Joined
Wed Apr 19, 2023 4:10 am

Post by xxvirusxx » Wed Apr 19, 2023 3:57 pm

Just delete column_left then refresh

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Johnathan » Wed Apr 19, 2023 9:44 pm

Github is better to report issues. The forum is more for community members, where we can discuss fixes, but I don't think Daniel checks it for bugs any more. (He used to originally, before he moved to github a long time ago.)

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by straightlight » Thu Apr 20, 2023 8:33 am

Also ensure to post OC 4 bugs, not below, on Github in the opencart/opencart repository.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 23 guests