所以我使用prestashop和smarty我改变了' ..\config\smarty.config.inc.php _363915改变了2行!)

我换了几行:

(1)原件:

require_once(_PS_SMARTY_DIR_.'Smarty.class.php');

变成:

require_once(_PS_SMARTY_DIR_.'SmartyBC.class.php');

(2)来自

$smarty = new SmartyCustom();

至:

$smarty = new SmartyBC();

我有产品属性扩展模块 .

错误首页:

致命错误:未捕获 - > Smarty编译器:第70行“/var/www/vhosts/MYWEBSITE/themes/warehouse/modules/blockcart/blockcart.tpl”模板中的语法错误“{assign var ='icpClass'value = $ product | icp:id_cart_product}“unknown modifier”icp“< - 在第70行的/var/www/vhosts/MYWEBSITE/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php中抛出

错误后台(如果我单击消息来解决它'产品属性扩展:集成警告 . 在解决集成问题之前,您的站点将无法正常工作 . ')

致命错误:未捕获 - > Smarty编译器:第12行模板“/var/www/vhosts/MYWEBSITE/modules/pproperties/views/templates/admin/_configure/pproperties/templates.tpl”中的语法错误“{ls = '添加新'mod ='pproperties'}“未知修饰符”pp_safeoutput“< - 在第12行的/var/www/vhosts/MYWEBSITE/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php中抛出[PrestaShop]模块文件中的致命错误:/var/www/vhosts/MYWEBSITE/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:Uncaught - > Smarty编译器:模板中的语法错误“/ var / www / vhosts / MYWEBSITE / modules / pproperties / views / templates / admin /_configure/pproperties/templates.tpl“第12行”{ls ='添加新'mod ='pproperties'}“未知修饰符”pp_safeoutput“< - 抛出

后台弹出警告:

文件/var/www/vhosts/MYWEBSITE/modules/gamification/gamification.php [2] file_put_contents(/var/www/vhosts/MYWEBSITE/modules/gamification/views/css/advice-1.6.1.5)第198行的警告_508.css):无法打开流:权限被拒绝

我用原始副本替换了修改后的文件,但它仍然显示这些错误 . 我删除了缓存但页面仍未显示,错误仍然存在 .

有人可以帮帮我吗?