0

I am using PHP Version 5.4.37. After upgrading the PHP version I am experiencing a problem in my site that is it throws PHP Strict Standards errors.

I have searched through and all I got is, hide the strict errors in php.ini file. I don't want to hide the error message. I really want to know the root cause of the issue and a solution to fix it.

Even it hided from the website, it takes lots of time to load the page. So it increases the usage space of my CPU.

So can anyone suggest me a best way to resolve this error in a correct method??

Thanks,

G. Mano..

  • 3
    Possible duplicate of [Disabling Strict Standards in PHP 5.4](http://stackoverflow.com/questions/9983286/disabling-strict-standards-in-php-5-4) – Chetan Ameta Jan 05 '16 at 13:38
  • You are going to have to post more code, the full error message(s), etc. if you want us to help you in debugging this. But if you didn't write the code, say it is some open source code maintained by a community, maybe you should contact the developers with your concerns. – segFault Jan 05 '16 at 13:42
  • @ChetanAmeta, Thanks for sharing the link.. I already disabled the ~E_STRICT in php.ini file. It just hide the error message from the website. But the errors are logged in the error log file and it means it is taking the memory to execute the functions. This is the issue and we want to fix it actually instead of hiding.. Hope you understand my situation. – Mano Gunasekaran Jan 05 '16 at 13:51
  • @sebastianForsberg, here is the error message which I got PHP Strict Standards: Non-static method BxDolRequest::_require() should not be called statically in /var/www/html/boonex-715/inc/classes/BxDolRequest.php on line 88 – Mano Gunasekaran Jan 05 '16 at 13:56
  • Ok, that indicates you need to declare the `BxDolRequest::_require()` function as static. You can add the word `static` in front of that function name in: `/var/www/html/boonex-715/inc/classes/BxDolRequest.php` However that function may not truly be static (It could be using `$this` within it). That may get you started. – segFault Jan 05 '16 at 14:02
  • @sebastianForsberg, thanks.. I will try it.. – Mano Gunasekaran Jan 05 '16 at 14:07
  • When upgrading PHP versions you need to read through the relevant upgrade notes provided on the PHP web site [Migrating from PHP 5.3.x to PHP 5.4.x](http://php.net/manual/en/migration54.php) Specifically the [Backward Incompatible Changes](http://php.net/manual/en/migration54.incompatible.php) Section – RiggsFolly Jan 05 '16 at 14:17

0 Answers0