OneAll 注册模板路径错误,VQmode,OpenCart 2.2
Error in path to OneAll registration template, VQmode,OpenCart 2.2
我是 Opencart 和 CMS 开发的新手。
在我的 Opencart 2.2.0.0 安装 VQmod 和 OneAll 社交插件后,我在尝试结帐或注册为新客户时遇到此错误。
Notice: Error: Could not load template
.../htdocs/catalog/view/theme/default/template/default/template/module/oneall.tpl!
in .../htdocs/vqmod/vqcache/vq2-system_library_template_basic.php on line 26
首先,模板文件就在它的位置,它必须在:在.../htdocs/catalog/view/theme/default/template/module/oneall.tpl,
但为什么 Opencart 期望它在 catalog/view/theme/default/template/default/template/module/oneall.tpl 中?
看起来 VQmod 或其他东西只是将文件路径加倍:default/template 被写入了两次!
好的,我去那个 .php 文件看看这个:
public function render($template) {
$file = DIR_TEMPLATE . $template;
if (file_exists($file)) {
extract($this->data);
ob_start();
require(\VQMod::modCheck($file));
$output = ob_get_contents();
ob_end_clean();
return $output;
} else {
trigger_error('Error: Could not load template ' . $file . '!');
exit();
}
}
因此,它只是抛出包含在 $file 变量中的文件名错误。
我的问题是:我应该如何处理该 $file?如果有人遇到过这样的错误,请帮忙!
我是 Opencart 和 CMS 开发的新手。 在我的 Opencart 2.2.0.0 安装 VQmod 和 OneAll 社交插件后,我在尝试结帐或注册为新客户时遇到此错误。
Notice: Error: Could not load template
.../htdocs/catalog/view/theme/default/template/default/template/module/oneall.tpl!
in .../htdocs/vqmod/vqcache/vq2-system_library_template_basic.php on line 26
首先,模板文件就在它的位置,它必须在:在.../htdocs/catalog/view/theme/default/template/module/oneall.tpl, 但为什么 Opencart 期望它在 catalog/view/theme/default/template/default/template/module/oneall.tpl 中?
看起来 VQmod 或其他东西只是将文件路径加倍:default/template 被写入了两次!
好的,我去那个 .php 文件看看这个:
public function render($template) {
$file = DIR_TEMPLATE . $template;
if (file_exists($file)) {
extract($this->data);
ob_start();
require(\VQMod::modCheck($file));
$output = ob_get_contents();
ob_end_clean();
return $output;
} else {
trigger_error('Error: Could not load template ' . $file . '!');
exit();
}
}
因此,它只是抛出包含在 $file 变量中的文件名错误。
我的问题是:我应该如何处理该 $file?如果有人遇到过这样的错误,请帮忙!