错误-尝试在管理面板Prestashop 1.7.6.5中输入类别时尝试加载接口“ SessionInterface”

问题描述

我在Prestashop中进行了很多更改,不知道问题何时出现。 因此,当我尝试在后台办公室输入类别或发票时,会出现以下图像和文字错误

试图从名称空间加载接口“ SessionInterface” “ PrestaShop \ PrestaShop \ Core \ Session”。您忘记了“使用”声明吗 例如“ Symfony \ Component \ HttpFoundation \ Session \ SessionInterface” 或“ PrestaShop \ PrestaShop \ Core \ Session \ SessionInterface”?

error view 1 error view 2

有人知道是什么原因造成的吗?对此有什么解决方案? 非常感谢您的帮助

提前谢谢

解决方法

您的错误指向文件“ /classes/CustomerSession.php”,但是指出的错误与该文件无关。您的错误可能是缓存问题。尝试删除

/yourstore/var/cache/dev/yourstore/var/cache/prod

,

尝试更新至版本1.7.7。* 我在此版本中找到了该文件: https://github.com/PrestaShop/PrestaShop/blob/1.7.7.x/src/Core/Session/SessionInterface.php