Hey!
After installing a buggy theme, I wanted to start a fresh and delete/replace all of my OC files (all except config files) however, now I see the following as my homepage:
Fatal error: Class 'Controllermodule' not found in /home/mydomain/public_html/system/engine/loader.php on line 28
..very nice.
Seems strange because I'm now using all standard OC 2.1.0.1 files. As I said, the only things that remain from original files are the config.php and admin/config.php files. This is also not the first time I've replaced all files, perhaps the theme effected the db or config files?
btw, sorry for saying "files" so much lol files.
The underlying cause of this is the way the system/enging/loader.php file was changed for the controller method.
In 2.0.3.1 and lower, this was handled differently and non-existent module files would just return false and be skipped
In 2.1.x, this was changed and now any calls to modules that do not exist in the normal catalog/controller/module path will throw the error.
The simplest work around is to add back the check to see if the file is valid. This is a bandaid and not a proper fix, but it seems to work ok so far. This simply checks to see that at least one part of the route has an actual file that exists. Otherwise it just tries to call a method on a null file causing the error.
Download the attached file and upload to system/engine
overwrite the exiting loader.php file there
You'll also need to fix the Paypal Express issue to get the coupon and voucher fields to show:
1. EDIT:
catalog/controller/payment/pp_express.php
2. FIND:
In 2.0.3.1 and lower, this was handled differently and non-existent module files would just return false and be skipped
In 2.1.x, this was changed and now any calls to modules that do not exist in the normal catalog/controller/module path will throw the error.
The simplest work around is to add back the check to see if the file is valid. This is a bandaid and not a proper fix, but it seems to work ok so far. This simply checks to see that at least one part of the route has an actual file that exists. Otherwise it just tries to call a method on a null file causing the error.
Download the attached file and upload to system/engine
overwrite the exiting loader.php file there
You'll also need to fix the Paypal Express issue to get the coupon and voucher fields to show:
1. EDIT:
catalog/controller/payment/pp_express.php
2. FIND:
3. REPLACE WITH:$data['coupon'] = $this->load->controller('module/coupon');
$data['voucher'] = $this->load->controller('module/voucher');
$data['reward'] = $this->load->controller('module/reward');
$data['coupon'] = $this->load->controller('total/coupon');
$data['voucher'] = $this->load->controller('total/voucher');
$data['reward'] = $this->load->controller('total/reward');
Attachments
2.1.0.1 and 2.1.0.2 only! Global workaround for "ControllerModule" error. Place in system/engine folder
Who is online
Users browsing this forum: No registered users and 17 guests