严格的标准PHP错误蛋糕

时间:2014-02-26 07:49:45

标签: php cakephp strict

我在这个便士拍卖脚本上的错误,我从一家公司购买了一段时间,现在已经不存在了,他们的网站处于脱机状态,并且无法获得他们过去大约一年到两年的技术支持几年前,现在它被上传,我收到了很多错误。有人可以帮忙吗?

Strict Standards: Non-static method Configure::getInstance() should not be called   statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 327
Strict Standards: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/config/core.php on line 50
Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 99
Strict Standards: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 373
Strict Standards: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 327
Strict Standards: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/config/core.php on line 51
Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 99
Strict Standards: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 373
Strict Standards: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 327
Strict Standards: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 643
Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 99
Strict Standards: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 373
Strict Standards: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 327
Strict Standards: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 663
Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 99
Strict Standards: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 664
Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 99
Strict Standards: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 373
Strict Standards: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 327
Strict Standards: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 670
Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 99
Strict Standards: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 671
Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 99
Strict Standards: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 373
Strict Standards: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 327
Strict Standards: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 676
Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 99
Strict Standards: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/cache.php on line 373
Strict Standards: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /home/elevenbravo1990/public_html/TEST/cake/libs/configure.php on line 327    

2 个答案:

答案 0 :(得分:5)

如果你的cakephp版本是1.3和php5.4

在php 5.4中,E_STRICT位于E_ALL

之下

/cake/bootstrap.php用这个替换error_reporting() ......

error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);

参考:https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665218

答案 1 :(得分:0)

正如拉杰夫建议的那样,但在我的情况下error_reporting(E_ALL和〜E_STRICT和〜E_DEPRECATED)应位于cake \ cake \ libs \ configure.php

相关问题