here is what i get in my page
Code: Select all
Fatal error: Uncaught Exception: Error: Could not load model affiliate/affiliate! in E:\xampp\htdocs\opencart\opencart-3.0.3.2 (2)\upload\system\storage\modification\system\engine\loader.php:89 Stack trace: #0 E:\xampp\htdocs\opencart\opencart-3.0.3.2 (2)\upload\catalog\controller\extension\d_quickcheckout\confirm.php(376): Loader->model('affiliate/affil...') #1 E:\xampp\htdocs\opencart\opencart-3.0.3.2 (2)\upload\system\storage\modification\system\engine\action.php(79): ControllerExtensionDQuickcheckoutConfirm->updateOrder(Array) #2 E:\xampp\htdocs\opencart\opencart-3.0.3.2 (2)\upload\system\storage\modification\system\engine\loader.php(48): Action->execute(Object(Registry), Array) #3 E:\xampp\htdocs\opencart\opencart-3.0.3.2 (2)\upload\catalog\controller\extension\module\d_quickcheckout.php(387): Loader->controller('extension/d_qui...') #4 E:\xampp\htdocs\opencart\opencart-3.0.3.2 (2)\upload\catalog\controller\extension\module\d_quickcheckout.php(47): ControllerExtensionModuleDQuickcheckout->initialize() #5 E:\xampp\htd in E:\xampp\htdocs\opencart\opencart-3.0.3.2 (2)\upload\system\storage\modification\system\engine\loader.php on line 89
here's what in the loader file ( i don't know why but its throws an exception which is line 89 ):
Code: Select all
public function model($route) {
// Sanitize the call
$route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route);
if (!$this->registry->has('model_' . str_replace('/', '_', $route))) {
$file = DIR_APPLICATION . 'model/' . $route . '.php';
$class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', $route);
if (is_file($file)) {
include_once(modification($file));
$proxy = new Proxy();
// Overriding models is a little harder so we have to use PHP's magic methods
// In future version we can use runkit
foreach (get_class_methods($class) as $method) {
$proxy->{$method} = $this->callback($this->registry, $route . '/' . $method);
}
$this->registry->set('model_' . str_replace('/', '_', (string)$route), $proxy);
} else {
throw new \Exception('Error: Could not load model ' . $route . '!');
}
}
}