欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

怎么解決strictstandardsphp報錯問題

這篇文章給大家分享的是有關(guān)怎么解決strict standards php報錯問題的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。

黃陵網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)公司,黃陵網(wǎng)站設(shè)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗。已為黃陵上千家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)要多少錢,請找那個售后服務(wù)好的黃陵做網(wǎng)站的公司定做!

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

怎么解決strict standards php報錯問題

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

如何解決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));

問題解決。

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

感謝各位的閱讀!關(guān)于“怎么解決strict standards php報錯問題”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

本文名稱:怎么解決strictstandardsphp報錯問題
分享地址:http://www.chinadenli.net/article16/gccpgg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司域名注冊網(wǎng)站排名靜態(tài)網(wǎng)站小程序開發(fā)動態(tài)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名