troubleshooting Question

Can't get rid of deprecated warnings in PHP error log

Avatar of Dima Iva
Dima Iva asked on
PHPApache Web Server
17 Comments1 Solution21 ViewsLast Modified:
I run a journal in XAMP on Windows Server 2016.  My c:\xampp\php\logs\php_error_log has thousands of deprecated message every day.  It looks like this:

PHP Deprecated:  Non-static method PKPApplication::getRequest() should not be called statically in C:\xampp\htdocs\journal\plugins\generic\customHeader\ on line 128

In c:\xampp\php\php.ini I have this line:

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

I tried experimenting with this line, but nothing works.  Should I edit something else in php.ini?  Or is it possible that php_error_log receives instructions from another .ini file somewhere else?
Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros