致命错误:函数名必须是第281行的/home/sites/northwells.co.uk/../sysplugins/smarty\u internal\u templatebase.php中的字符串

致命错误:函数名必须是第281行的/home/sites/northwells.co.uk/../sysplugins/smarty\u internal\u templatebase.php中的字符串,php,string,function,prestashop,Php,String,Function,Prestashop,我正在使用Prestashop 1.5.4.1,安装新模板后,出现以下错误: 致命错误:函数名必须是第281行的/home/sites/northwells.co.uk/../sysplugins/smarty\u internal\u templatebase.php中的字符串 第281行的代码表示: $_template->properties['unifunc']($_template); 有什么不对劲吗?我对PHP了解不多。非常感谢你的帮助 Raf似乎是一个在Prestashop

我正在使用Prestashop 1.5.4.1,安装新模板后,出现以下错误:

致命错误:函数名必须是第281行的/home/sites/northwells.co.uk/../sysplugins/smarty\u internal\u templatebase.php中的字符串

第281行的代码表示:

$_template->properties['unifunc']($_template);
有什么不对劲吗?我对PHP了解不多。非常感谢你的帮助


Raf似乎是一个在Prestashop 1.5.5中修复的bug


我知道这不是最好的解决方案,但由于我的主题在modules\blockcategories\blockcategories.php中,我无法更新prestashop的版本,因此我的注释行带有: 工具::enableCache() 和
工具::restoreCacheSettings(),解决了此问题。

感谢dprogramz。非常感谢。这似乎是缓存的问题,当我完全禁用缓存时,存储工作正常。我应该禁用缓存吗?缓存通常被用作性能增强,因此我认为关闭缓存只会牺牲性能。很明显,找到问题的根源是很好的,但我不认为你会因为关闭它而破坏你的项目:)太好了,你救了我。非常感谢。我刚开了一家新店,遇到了这个问题。我花了好几个小时寻找问题所在。很明显,我离人们抢购我的商店还有很远的路要走,所以我暂时不去买,以后可能会升级prestashop。再次感谢你。