新聞中心
本文操作環(huán)境:Windows7系統(tǒng),php5.3.3版,Dell G3電腦。

專注于為中小企業(yè)提供成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)中站免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了上1000+企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。
如何解決strict standards php報(bào)錯(cuò)問題?
PHP中Strict Standards錯(cuò)誤解決方法
在PHP5.3.3 中安裝wordpress 3.0.1 ,在安裝時(shí)出現(xiàn)錯(cuò)誤:
Strict Standards: PHP Strict Standards: Declaration of Walker.....的解決辦法:
出現(xiàn)錯(cuò)誤提示:
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 ........
錯(cuò)誤原因:
這是由于 php 5.3版本后。要求繼承類必須在父類之后定義。否則就會(huì)出現(xiàn)Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of .... 的錯(cuò)誤提示。也就是說必須父類在前,繼承類在后。
錯(cuò)誤參考頁面。
bugs點(diǎn)php點(diǎn)net/bug.php?id=46851 (不能發(fā)表帶鏈接的網(wǎng)址) 上面清楚地解釋了出現(xiàn)此類錯(cuò)誤的具體原因。
解決辦法:
在wordpress3.0.1 文件中,找到 wp-admin\setup-config.php 文件。
在require_once('../wp-includes/compat.php'); 上面添加一句:
error_reporting( ~(E_STRICT | E_NOTICE));
問題解決。
這句話的意思是錯(cuò)誤報(bào)告設(shè)置:顯示所有錯(cuò)誤,但是除了嚴(yán)格錯(cuò)檢查或者錯(cuò)誤報(bào)告。也就是說PHP5.3.3 不執(zhí)行嚴(yán)格錯(cuò)誤檢查。也不顯示錯(cuò)誤提示。跳過嚴(yán)格錯(cuò)誤檢查。
當(dāng)前標(biāo)題:如何解決strictstandardsphp報(bào)錯(cuò)問題
當(dāng)前URL:http://www.fisionsoft.com.cn/article/coihgdi.html


咨詢
建站咨詢
