出现Prestashop Language.php会阻止访问商店和管理员

时间:2013-03-09 01:20:03

标签: php prestashop

我完全没有办法解决这些问题,迫切需要帮助。

我准备在新的(文件夹)位置将我的prestahsop 1.4.4升级到1.5。我安装了新的prestashop没有任何问题。它与我现有的prestashop位于不同的文件夹中。

但是自从安装以来我无法访问我现有的prestashop,无论是管理员还是商店。在那之前我没有任何问题。

这些是错误报告:

STORE FRONT

Warning: Invalid argument supplied for foreach() in /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php on line 554

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300

Fatal error: Cannot access empty property in /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/FrontController.php on line 228

ADMIN

Warning: Invalid argument supplied for foreach() in /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php on line 554

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/admin0811/header.inc.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/admin0811/header.inc.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/admin0811/header.inc.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/admin0811/header.inc.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in/hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Cookie.php on line 300

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Language.php:554) in /hermes/bosweb25a/b56/nf.logorythm/public_html/logostore/classes/Tools.phpon line 104[/quote]

Language.php l554的代码是

 foreach ($result AS $row)

这是/** Load all languages in memory for caching

FrontController.php l228的代码是

if ($cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')})

Tools.php l104的代码是

header('Location: '.$url);

这是/** redirect to another admin page

Cookie.php l300的代码是

return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0, true);

我希望这些信息足以让某人指出我正确的方向。我需要紧急援助。

非常感谢,

ķ

1 个答案:

答案 0 :(得分:0)

这些问题可能有几个原因。您能否回答以下问题:

1)安装Prestashop 1.5时你是否为它创建了一个新的数据库,或者你使用的是与旧的prestashop 1.4相同的数据库?

2)您的Prestashop 1.5安装网站运行正常吗?

3)您是否阅读过http://doc.prestashop.com/display/PS15/Updating+PrestaShophttp://doc.prestashop.com/display/PS14/Updating+PrestaShop

请在您的网站上启用错误,然后就可以看到确切的问题。

谢谢