1

直到上周,我的网站都运行良好。无论是在本地还是在服务器上,管理员和前端都运行良好。在我系统的本地服务器上,该站点仍然可以正常工作。我在实时服务器上遇到问题

从过去的几天开始,我一直在服务器上在线获得一个空白页面。

检查错误日志后,我发现以下错误:

Fatal error: Uncaught exception 'PrestaShopException' with message 
'Shop not found' in /home/thebaker/public_html/demo/classes/shop/Shop.php:369 
Stack trace: #0 /home/thebaker/public_html/demo/config/config.inc.php(91): 
ShopCore::initialize() #1 /home/thebaker/public_html/demo/index.php(27): 
require('/home/thebaker/...')
 #2 {main} thrown in /home/thebaker/public_html/demo/classes/shop/Shop.php 
on line 369

管理面板显示以下错误

警告:在第 671 行的 /home/thebaker/public_html/demo/classes/Language.php 中为 foreach() 提供的参数无效

警告:在第 671 行的 /home/thebaker/public_html/demo/classes/Language.php 中为 foreach() 提供的参数无效

警告:在第 261 行的 /home/thebaker/public_html/demo/classes/Tab.php 中为 foreach() 提供的参数无效

警告:在第 208 行的 /home/thebaker/public_html/demo/classes/Tab.php 中为 foreach() 提供的参数无效

警告:在第 145 行的 /home/thebaker/public_html/demo/classes/Profile.php 中为 foreach() 提供的参数无效

警告:在第 1250 行的 /home/thebaker/public_html/demo/classes/controller/AdminController.php 中为 foreach() 提供的参数无效

警告:在第 231 行的 /home/thebaker/public_html/demo/classes/Tab.php 中为 foreach() 提供的参数无效

警告:在第 671 行的 /home/thebaker/public_html/demo/classes/Language.php 中为 foreach() 提供的参数无效

警告:在第 969 行的 /home/thebaker/public_html/demo/classes/module/Module.php 中为 foreach() 提供的参数无效

警告:在第 164 行的 /home/thebaker/public_html/demo/classes/module/Module.php 中为 foreach() 提供的参数无效

警告:在第 55 行的 /home/thebaker/public_html/demo/modules/watermark/watermark.php 中为 foreach() 提供的参数无效

警告:在第 1115 行的 /home/thebaker/public_html/demo/classes/module/Module.php 中为 foreach() 提供的参数无效

我已尝试实施解决方案,例如更改服务器上的权限(从 755 到 775)以及上传新的 .htaccess 文件,但我无法解决此问题。

有人可以帮助我吗?我是 prestashop 的新手,不参与核心开发。这是我在 Prestashop 中建立网站的第一次尝试

非常感谢...

注意:我的网站基于Prestashop 1.5.4.1

4

2 回答 2

1

'Shop not found' - 如果您在 1.4.xx 之后忘记将 db 升级到 Prestashop 1.5.xx,它可能会出现。

或者您只是从备份中恢复非常旧的数据库(v1.4)。

于 2013-10-25T10:48:38.423 回答
1

从 1.4.11 -> 1.6.0 升级后我遇到了同样的问题

我已经重命名了 /override 文件夹,并且 eshop 又开始工作了。

较旧的覆盖之一可能与新类冲突。

暂时删除所有旧的覆盖,看看是否有帮助。

于 2014-09-23T13:21:29.183 回答