怎么解决strictstandardsphp报错问题

这篇文章给大家分享的是有关怎么解决strict standards php报错问题的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

黄陵网站建设公司创新互联公司,黄陵网站设计制作,有大型网站制作公司丰富经验。已为黄陵上千家提供企业网站建设服务。企业网站搭建\成都外贸网站建设要多少钱,请找那个售后服务好的黄陵做网站的公司定做!

strict standards php报错的解决办法:1、在父类之后定义继承类;2、在“setup-config.php”文件中添加“error_reporting( ~(E_STRICT | E_NOTICE));”。

怎么解决strict standards php报错问题

本文操作环境:Windows7系统,PHP5.3.3版,Dell G3电脑。

如何解决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 不执行严格错误检查。也不显示错误提示。跳过严格错误检查。

感谢各位的阅读!关于“怎么解决strict standards php报错问题”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!


当前文章:怎么解决strictstandardsphp报错问题
网站链接:http://lszwz.com/article/gccpgg.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款