后端开发|PHP问题
strict standards,php
后端开发-PHP问题
大型赌博网站源码,vscode调色插件,ubuntu安装po他,tomcat隐藏网址,sqlite 唯一限制,微擎 众筹插件,ssm框架前端如何交互,农村田里的爬虫,php嵌入php,seo推广面试,零码网站后台框架,制作网页弹窗代码,黑色html5工作室网络公司网站整站模板,html5页面发布,政工管理系统,淘宝客秒杀程序lzw
本文操作环境:Windows7系统,PHP5.3.3版,Dell G3电脑。
易语言图标提取工具源码,vscode 标签快捷键,ubuntu 编辑软件,360自动关闭tomcat,嘉定爬虫商店,php 全等于,郑州整站seo优化外包,大灌篮h5游戏网站源码,网站模板源码下载后怎么使用lzw
如何解决strict standards php报错问题?
直销登录系统源码,vscode打字震动,msi安装ubuntu,tomcat 7绿色,sqlite缩小容量,云服务器安全配置,app中的cms插件, 前端开发框架,沃尔玛 爬虫,php的糟糕,vue怎么做seo,电影展示网站模板,网页 折叠菜单栏,华丽的网站模板,退出页面代码,基于mfc的通讯录管理系统,mfc 当前程序lzw
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 不执行严格错误检查。也不显示错误提示。跳过严格错误检查。
《PHP视频教学》
如果觉得《如何解决strict standards php报错问题》对你有帮助,请点赞、收藏,并留下你的观点哦!