简体   繁体   中英

Old version of Wordpress on new PHP. Error reporting

I am working on an old site and it is an old version of 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. Whereas Wordpress 3.2 upwards requires MySQL 5.

As for the original question, try setting display_errors to off also.

 display_errors = Off

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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