日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
如何解決strictstandardsphp報錯問題

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

專注于為中小企業(yè)提供成都網(wǎng)站設計、網(wǎng)站制作服務,電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)中站免費做網(wǎng)站提供優(yōu)質(zhì)的服務。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了上1000+企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。

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

PHP中Strict Standards錯誤解決方法

在PHP5.3.3 中安裝wordpress 3.0.1 ,在安裝時出現(xiàn)錯誤:

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

出現(xiàn)錯誤提示:

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版本后。要求繼承類必須在父類之后定義。否則就會出現(xiàn)Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of .... 的錯誤提示。也就是說必須父類在前,繼承類在后。

錯誤參考頁面。

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

解決辦法:

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

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

error_reporting( ~(E_STRICT | E_NOTICE));

問題解決。

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


分享題目:如何解決strictstandardsphp報錯問題
分享路徑:http://m.5511xx.com/article/coihgdi.html