OCS Huge number of apache errors about Non-static methods

Hi

On my test OCS system Im getting huge numbers of errors in the apache logs. 5 MB per click on a page.
[Sun May 29 13:01:52.000626 2016] [:error] [pid 20163:tid 139686218475264] [client 58.172.168.104:49235] FastCGI: server “/usr/lib/cgi-bin/php5-fcgi” stderr: PHP message: PHP Deprecated: Non-static method Registry::set() should not be called statically, assuming $this from incompatible context in /home/ocs/public_html/lib/pkp/classes/core/PKPApplication.inc.php on line 71
[Sun May 29 13:01:52.000736 2016] [:error] [pid 20163:tid 139686218475264] [client 58.172.168.104:49235] FastCGI: server “/usr/lib/cgi-bin/php5-fcgi” stderr: PHP message: PHP Deprecated: Non-static method Registry::getRegistry() should not be called statically, assuming $this from incompatible context in /home/ocs/public_html/lib/pkp/classes/core/Registry.inc.php on line 56

[Sun May 29 13:01:52.000812 2016] [:error] [pid 20163:tid 139686218475264] [client 58.172.168.104:49235] FastCGI: server “/usr/lib/cgi-bin/php5-fcgi” stderr: PHP message: PHP Strict Standards: Non-static method Config::getVar() should not be called statically in /home/ocs/public_html/lib/pkp/classes/xml/XMLParser.inc.php on line 24
[Sun May 29 13:01:52.000825 2016] [:error] [pid 20163:tid 139686218475264] [client 58.172.168.104:49235] FastCGI: server “/usr/lib/cgi-bin/php5-fcgi” stderr: PHP message: PHP Strict Standards: Non-static method Config::getData() should not be called statically in /home/ocs/public_html/lib/pkp/classes/config/Config.inc.php on line 36
etc

Im not getting these errors on another OCS that I have setup to be used in a months time for production. So its maybe something in the config of the test one. I wasn’t getting them last week oe maybe earlier.
Have you seen these before. The old forum had something similar but not quite the same. I have just found this old Bug 3822 - Static methods not declared using the “static” keyword

Mike

Hi @MikeL,

OCS was written to support both PHP4 and PHP5; PHP4 didn’t support the static keyword so we avoided using it. You can configure your PHP installation to ignore these situations without logging.

Regards,
Alec Smecher
Public Knowledge Project Team

The setting that is in both servers is:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
I’m using PHP 5.6 in both servers.

Hi @MikeL,

That looks OK to me; did you change it to this from something else?

Regards,
Alec Smecher
Public Knowledge Project Team

This is the default value that it always was. It has not been changed.

Hi @MikeL,

What settings do you have in your config.inc.php for deprecation_warnings and display_errors?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi

display_errors = Off
deprecation_warnings = On ← this was the problem
Have now turned off deprecation_warnings. Will keep an eye now on the apache log sizes.

Mike