0

我是 Magento 开发的新手。

我有一个错误,当我尝试将我的 Magento 1.4.2.1 更新到 Magento 1.7 时,我收到了严格标准的通知。

我不能越过这些错误,除非禁用这些错误。

我的 Magento 也没有升级到 1.7,

我认为这可能是由于我禁用了通知。

我得到的错误是:

Strict Standards: Non-static method Maged_Pear::getInstance() should not be called statically, assuming $this from incompatible context in E:\xampp\htdocs\urban\downloader\Maged\Model\Pear.php on line 40

Strict Standards: Non-static method Maged_Pear::getInstance() should not be called statically, assuming $this from incompatible context in E:\xampp\htdocs\urban\downloader\Maged\Model\Pear.php on line 40

Strict Standards: Non-static method PEAR_Command::factory() should not be called statically, assuming $this from incompatible context in E:\xampp\htdocs\urban\downloader\Maged\Pear.php on line 231

Strict Standards: Only variables should be passed by reference in E:\xampp\htdocs\urban\downloader\Maged\Pear.php on line 231

Strict Standards: Non-static method PEAR_Command::getFrontendObject() should not be called statically, assuming $this from incompatible context in E:\xampp\htdocs\urban\downloader\pearlib\php\PEAR\Command.php on line 142

Strict Standards: Non-static method PEAR_Frontend::singleton() should not be called statically, assuming $this from incompatible context in E:\xampp\htdocs\urban\downloader\pearlib\php\PEAR\Command.php on line 175

Strict Standards: Non-static method Maged_Pear::getInstance() should not be called statically, assuming $this from incompatible context in E:\xampp\htdocs\urban\downloader\Maged\Model\Pear.php on line 40
4

1 回答 1

0

这些是严格的警告,而不是错误。

php.ini您必须通过设置error_reporting不包括 E_STRICT 错误来禁用它们。

于 2013-07-24T08:50:27.913 回答