PHP Notice: Error: Could not load model /public_html/myshop/catalog/model/setting/extension.php! in /public_html/myshop/system/engine/loader.php on line 24
On checking, in OC2.0 extension.php does not exists in catalog/model/setting/ but it has a new extension folder which contains the php file catalog/model/extension/extension.php
The code in loader which seems to be the culprit is:
Code: Select all
public function model($model) {
$file = DIR_APPLICATION . 'model/' . $model . '.php';
$class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', $model);
if (file_exists($file)) {
include_once($file);
$this->registry->set('model_' . str_replace('/', '_', $model), new $class($this->registry));
} else {
trigger_error('Error: Could not load model ' . $file . '!');
exit();
}
There is also another error:
PHP Notice: Undefined variable: text_edit in /public_html/myshop/admin/view/template/setting/setting.tpl on line 29
Edit: I fixed the text_edit error by following the fix in this post:
http://forum.opencart.com/viewtopic.php ... it#p520305
Thanks,
Tom