类/module.php中的PrestaShop致命错误

时间:2019-06-20 12:57:36

标签: prestashop prestashop-1.6

我正在尝试在Prestashop 1.6中安装模块,但出现此错误:

[PrestaShop]模块文件中的致命错误:/home/website/public_html/classes/module/Module.php(2794):eval()的代码: 语法错误,意外的'*',期望的函数(T_FUNCTION)或const(T_CONST)

        // Make a reflection of the override class and the module override class
        $override_file = file($override_path);

        eval(preg_replace(array('#^\s*<\?(?:php)?#', '#class\s+'.$classname.'\s+extends\s+([a-z0-9_]+)(\s+implements\s+([a-z0-9_]+))?#i'), array(' ', 'class '.$classname.'OverrideOriginal_remove'.$uniq), implode('', $override_file)));
        $override_class = new ReflectionClass($classname.'OverrideOriginal_remove'.$uniq);

        $module_file = file($this->getLocalPath().'override/'.$path);
        eval(preg_replace(array('#^\s*<\?(?:php)?#', '#class\s+'.$classname.'(\s+extends\s+([a-z0-9_]+)(\s+implements\s+([a-z0-9_]+))?)?#i'), array(' ', 'class '.$classname.'Override_remove'.$uniq), implode('', $module_file)));
        $module_class = new ReflectionClass($classname.'Override_remove'.$uniq);

0 个答案:

没有答案