直到上周,我的网站都运行良好。无论是在本地还是在服务器上,管理员和前端都运行良好。在我系统的本地服务器上,该站点仍然可以正常工作。我在实时服务器上遇到问题
从过去的几天开始,我一直在服务器上在线获得一个空白页面。
检查错误日志后,我发现以下错误:
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