簡體   English   中英

嚴格的標准 PHP ERROR CAKE

[英]Strict Standard PHP ERROR CAKE

我在這個一分錢拍賣腳本上犯了錯誤,我從一家現已倒閉的公司那里購買了一段時間,他們的網站處於離線狀態,並且無法從他們那里獲得技術支持,這在過去大約一年到兩年前有效,現在它已上傳,我收到了大量錯誤。 任何人都可以幫忙嗎?

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    

如果你的 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

正如 Rajeev 所建議的,但 error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED) 應該在 cake\\cake\\libs\\configure.php 在我的情況下

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM