Post by eisteddfod_37 » Sun Jul 29, 2018 6:38 am

Hi there,

I wonder if someone can help.

I've installed a theme, all working fine. Added multisite and looking to use slightly different stylesheets for each store (i.e. different colours).

So basics so far, copied the "Default theme" renamed the folder I've then created and edited the below files with the folder name.

Code: Select all

I've also changed all the bits inside like this

Code: Select all

class ControllerExtensionThemeThemeDefault extends Controller {

Code: Select all

class ControllerExtensionhad_copy extends Controller {
Visited extensions/extensions and tried to install. However, I'm getting the following error.

Code: Select all

Fatal error: Class 'Controllerextensionthemehadcopy' not found in /system/storage/modification/system/engine/action.php on line 43
OC version

Any help, greatly appreciated.





Fri Jul 27, 2018 12:07 am

Post by OSWorX » Sun Jul 29, 2018 4:47 pm

As the message tells you, the controller cannot be found.
Because this

Code: Select all

class ControllerExtensionhad_copy extends Controller {
should be

Code: Select all

class ControllerExtensionhadcopy extends Controller {

Code: Select all

class ControllerExtensionHadCopy extends Controller {

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image

User avatar
Guru Member


Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by straightlight » Sun Jul 29, 2018 7:04 pm

class ControllerExtensionhadcopy extends Controller {
With the exception of some Windows IIS versions or virtual servers out there, the lowercase 'h' of the term 'had' would also be incorrect with other OSes in this case since the OC Engine would still want to track a capital H.

However, there is also an undemonstrated example that could be used since there are absolutely no obligations to use underscores on a lowercased filename (more easy to read though):

Code: Select all

class ControllerExtensionHadcopy extends Controller {

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

Straightlight Administrator / Quality Assurance Analyst / Programmer / Opencart Tester

Legendary Member


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

Users browsing this forum: No registered users and 3 guests