简体   繁体   English

新PHP上的旧版Wordpress。 错误报告

[英]Old version of Wordpress on new PHP. Error reporting

I am working on an old site and it is an old version of Wordpress. 我正在一个旧站点上工作,它是Wordpress的旧版本。 I am getting deprecated errors everywhere :( 我到处都有过时的错误:(

I have put 我把

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

under where the original code sets the reporting so to over-ride it but I am still getting errors. 在原始代码设置报告的位置,以便覆盖它,但仍然出现错误。 Even from the same document below where I have entered the above code. 即使从下面我输入了上面代码的同一文档中也可以。

Any help is appreciated. 任何帮助表示赞赏。

@maiorano84 It's not always possible to just simply upgrade Wordpress depending on the hosting company - as some are still running MySQL 4 or lower. @ maiorano84并非总是可以仅根据托管公司升级Wordpress,因为有些仍在运行MySQL 4或更低版本。 Whereas Wordpress 3.2 upwards requires MySQL 5. 而Wordpress 3.2或更高版本需要MySQL 5。

As for the original question, try setting display_errors to off also. 至于原始问题,请尝试将display_errors也设置为off。

 display_errors = Off

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM