日日操夜夜添-日日操影院-日日草夜夜操-日日干干-精品一区二区三区波多野结衣-精品一区二区三区高清免费不卡

公告:魔扣目錄網為廣大站長提供免費收錄網站服務,提交前請做好本站友鏈:【 網站目錄:http://www.ylptlb.cn 】, 免友鏈快審服務(50元/站),

點擊這里在線咨詢客服
新站提交
  • 網站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會員:747

strict standards php報錯的解決辦法:1、在父類之后定義繼承類;2、在“setup-config.php”文件中添加“error_reporting( ~(E_STRICT | E_NOTICE));”。


如何解決strict standards php報錯問題


如何解決strict standards php報錯問題?

PHP中Strict Standards錯誤解決方法

在PHP5.3.3 中安裝wordpress 3.0.1 ,在安裝時出現錯誤:

Strict Standards: PHP Strict Standards: Declaration of Walker.....的解決辦法:

出現錯誤提示:

Strict Standards: PHP Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with that of Walker::start_lvl() in E:\Webroot\wordpress\wp-includes\classes.php on line 1199 PHP Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with that of Walker::end_lvl() in E:\Webroot\wordpress\wp-includes\classes.php on line 1199 PHP Strict ........

錯誤原因:

這是由于 php 5.3版本后。要求繼承類必須在父類之后定義。否則就會出現Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of .... 的錯誤提示。也就是說必須父類在前,繼承類在后。

錯誤參考頁面。

bugs點php點net/bug.php?id=46851 (不能發表帶鏈接的網址) 上面清楚地解釋了出現此類錯誤的具體原因。

解決辦法:

在wordpress3.0.1 文件中,找到 wp-admin\setup-config.php 文件。

require_once('../wp-includes/compat.php'); 上面添加一句:

error_reporting( ~(E_STRICT | E_NOTICE));

問題解決。

這句話的意思是錯誤報告設置:顯示所有錯誤,但是除了嚴格錯檢查或者錯誤報告。也就是說PHP5.3.3 不執行嚴格錯誤檢查。也不顯示錯誤提示。跳過嚴格錯誤檢查。


分享到:
標簽:strictstandards php報錯
用戶無頭像

網友整理

注冊時間:

網站:5 個   小程序:0 個  文章:12 篇

  • 51998

    網站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會員

趕快注冊賬號,推廣您的網站吧!
最新入駐小程序

數獨大挑戰2018-06-03

數獨一種數學游戲,玩家需要根據9

答題星2018-06-03

您可以通過答題星輕松地創建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學四六

運動步數有氧達人2018-06-03

記錄運動步數,積累氧氣值。還可偷

每日養生app2018-06-03

每日養生,天天健康

體育訓練成績評定2018-06-03

通用課目體育訓練成績評定