Keyword

PHP errors

More
8 months 2 hours ago #171703 by Pappy
Pappy created the topic: PHP errors
My error log is up to 1.8 MB because of this extension.
I have seen PHP errors with this extension for the past 2 years.

[10-Apr-2019 13:37:44 UTC] PHP Warning: strpos() expects parameter 1 to be string, array given in /home/mysite/public_html/plugins/content/jw_allvideos/jw_allvideos.php on line 356
[10-Apr-2019 13:37:44 UTC] PHP Warning: explode() expects parameter 2 to be string, array given in /home/mysite/public_html/plugins/content/jw_allvideos/jw_allvideos.php on line 357
[10-Apr-2019 13:37:44 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/plugins/content/jw_allvideos/jw_allvideos.php on line 359

Turning off error reporting is not a solution....

What's going on?

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
7 months 3 weeks ago #171750 by Fotis
Fotis replied the topic: PHP errors
Turning off warnings and notices is the practical solution for sure. Cause you won't care if a template variable is uninitialized somewhere, things will work just fine as PHP is forgiving.

On a production server, you should only log errors and nothing else. If you can control the level of PHP errors in your server (e.g. override php.ini) make sure you set error reporting like this:
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED 

I will gladly fix any warnings/notices if you can tell me the AllVideos version you're currently using.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum