OneAll注册模板、VQmode、OpenCart 2.2的路径错误


Error in path to OneAll registration template, VQmode,OpenCart 2.2

我是Opencart和CMS开发的新手。在我将VQmod和OneAll社交插件安装到我的Opencart 2.2.0.0后,我在尝试结账或注册为新客户时遇到了这个错误。

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变量中。

我的问题是:我应该如何处理这个$文件?如果有人有这样的错误,请帮忙!

此错误已在插件的上一版本中修复:http://www.opencart.com/index.php?route=extension/extension/info&extension_id=24825