Answer the question
In order to leave comments, you need to log in
Why is the wrong path to tpl formed in opencart?
The error code itself:
2018-12-06 21:46:04 - PHP Notice: Error: Could not load template /home/grandeby/maximal.by/catalog/view/theme/default/template/default/template/product/product .tpl! in /home/grandeby/maximal.by/system/storage/modification/system/library/template/php.php on line 23
default/template - repeated twice. Where can you dig to find the error?
The error refers to this file, but everything is fine there, because other modules are loaded without problems.
namespace Template;
final class PHP {
private $data = array();
public function set($key, $value) {
$this->data[$key] = $value;
}
public function render($template) {
$file = DIR_TEMPLATE . $template;
if (is_file($file)) {
extract($this->data);
ob_start();
require($file);
return ob_get_clean();
}
trigger_error('Error: Could not load template ' . $file . '!');
exit();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question