opencart提示PHP Fatal error: Uncaught Error: Class ‘Twig\Loader\ArrayLoader’ not found in storage/modification/system/library/template/twig.php:35解决方案
最近给opencart网站升级补丁,结果升级完,前台显示500错误。

经过一翻排查发现是php错误,具体报错信息为:
PHP Fatal error: Uncaught Error: Class 'Twig\Loader\ArrayLoader' not found in /storage/modification/system/library/template/twig.php:35 Stack trace: #0 /public_html/system/library/template.php(51): Template\Twig->render('default/templat...', '{% if modules %...') #1 /storage/modification/system/engine/loader.php(125): Template->render('default/templat...', '') #2 /public_html/catalog/controller/common/column_left.php(72): Loader->view('common/column_l...', Array) #3 /storage/modification/system/engine/action.php(79): ControllerCommonColumnLeft->index(Array) #4 /storage/modification/system/engine/loader.php(48): Action->execute(Object(Registry), Array) #5 /public_html/catalog/controller/common/home.php(12): Loader->controller('common/column_l...') #6 /storage/modification/system/engine/action.php(79): ControllerCommonHome->index() #7 /public_html/catalog/controller/startup/router.php(25): Action->execut in /storage/modification/system/library/template/twig.php on line 35
百思不得其解,经过排查发现是twig.php的bug导致。只需要下载3.0.3.6新的安装程序,将安装包中的程序/storage/modification/system/library/template/twig.php覆盖掉网站该目录下的文件即可正常访问。
●本文来源互联网及网友投稿,如有侵权请及时联系本站进行删除。
●转载原创文章请保留地址及版权信息,否则侵权必究。
●分享目的仅供大家学习和交流,请不要用于商业用途。
●该资源版权归原著作者所有,请于下载后24小时内删除。
●如有链接无法下载、失效或广告,请联系右侧点击QQ咨询处理。
●本站资源售价只是赞助,收取费用仅维持本站的日常运营所需。
●如遇到加密压缩包,默认解压密码为"fdeer.com",如遇到无法解压的请联系管理员。
飞鹿日志 » opencart提示PHP Fatal error: Uncaught Error: Class ‘Twig\Loader\ArrayLoader’ not found in storage/modification/system/library/template/twig.php:35解决方案
●转载原创文章请保留地址及版权信息,否则侵权必究。
●分享目的仅供大家学习和交流,请不要用于商业用途。
●该资源版权归原著作者所有,请于下载后24小时内删除。
●如有链接无法下载、失效或广告,请联系右侧点击QQ咨询处理。
●本站资源售价只是赞助,收取费用仅维持本站的日常运营所需。
●如遇到加密压缩包,默认解压密码为"fdeer.com",如遇到无法解压的请联系管理员。
飞鹿日志 » opencart提示PHP Fatal error: Uncaught Error: Class ‘Twig\Loader\ArrayLoader’ not found in storage/modification/system/library/template/twig.php:35解决方案