Home  >  Article  >  Backend Development  >  部署维基百科后页面出现的错误

部署维基百科后页面出现的错误

WBOY
WBOYOriginal
2016-06-23 14:04:561369browse



回复讨论(解决方案)

notice级别,应该不影响运行,可以在 php.ini 抑制输出就行了
有能力就去查查说明文档那个属性值是什么,重新定义一下

怎么改那个ini? 抑制输出

程序前
error_reporting(E_ALL ^ E_NOTICE);

或 php.ini 中(不建议)
error_reporting = E_ALL ^ E_NOTICE

维基百科 流传的很广了,还犯这种低级错误
可见书写健壮的代码是多么的重要

能再详细点么? 我是做c++的 那个文件在那个路径下 还有搜这个error_reporting(E_ALL ^ E_NOTICE);
改成 error_reporting = E_ALL ^ E_NOTICE 就行了?

在 c:\xampp\htdocs\mediawiki(图中字太小,希望没看错)下,找到 config.php 或 文件名中含有 config 的文件
如果没有,那么在 index.php 看看这样的文件在那个目录中
或者在目录中“搜索”config

找到后在这个文件的第一个 

加在 index.php 中也可以

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn