1
我是Opencart和CMS開發新手。 當我將VQmod和OneAll社交插件安裝到我的Opencart 2.2.0.0後,嘗試結帳或註冊爲新客戶時出現此錯誤。OneAll註冊模板路徑出錯,VQmode,OpenCart 2.2
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中/目錄/視圖/主題/默認/模板/模塊/ oneall.tpl, 但爲什麼Opencart希望它在目錄/視圖/主題/ 默認/ template/default/template /module/oneall.tpl?
它看起來像VQmod或其他東西只是雙重文件的路徑:默認/模板被寫入兩次!
好吧,我去到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();
}
}
所以,它只是投用文件名錯誤,包含在$文件變量。
我的問題是:我該如何處理該$文件?如果有人有這樣的錯誤,請幫助!