Forum Archive - PHP Strict Standards warnings

PHP Strict Standards warnings
Jun 2, 2015 3:29 am by helgatheviking
I was just looking over a client's site and there seems to be a lot of PHP warnings related to this plugin. I saw the other topic where your solution was merely to disable WP_DEBUG. Obviously, you don't want debug on a live site, but hiding the errors doesn't solve the underlying issues in gtranslate. On the front-end: Strict Standards: Declaration of GTranslate::widget() should be compatible with WP_Widget::widget($args, $instance) in /srv/www/wordpress-default/wp-content/plugins/gtranslate/gtranslate.php on line 0 Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GTranslate::register() should not be called statically in /srv/www/wordpress-default/wp-includes/plugin.php on line 496 Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GTranslate::enqueue_scripts() should not be called statically in /srv/www/wordpress-default/wp-includes/plugin.php on line 496 Strict Standards: Non-static method GTranslate::load_defaults() should not be called statically in /srv/www/wordpress-default/wp-content/plugins/gtranslate/gtranslate.php on line 66 On the back-end Strict Standards: Declaration of GTranslate::widget() should be compatible with WP_Widget::widget($args, $instance) in /srv/www/wordpress-default/wp-content/plugins/gtranslate/gtranslate.php on line 0 Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GTranslate::register() should not be called statically in /srv/www/wordpress-default/wp-includes/plugin.php on line 496 Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GTranslate::enqueue_scripts() should not be called statically in /srv/www/wordpress-default/wp-includes/plugin.php on line 496 Strict Standards: Non-static method GTranslate::load_defaults() should not be called statically in /srv/www/wordpress-default/wp-content/plugins/gtranslate/gtranslate.php on line 66 Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GTranslate::admin_menu() should not be called statically in /srv/www/wordpress-default/wp-includes/plugin.php on line 496 Skip to main contentSkip to toolbar
Re: PHP Strict Standards warnings
Jun 4, 2015 7:42 am by Yana
Hi, Please disable warning messages in php.ini file.
Re: PHP Strict Standards warnings
Jun 4, 2015 3:26 pm by helgatheviking
I am not disabling WP_DEBUG. I am a developer and need to see the warnings. The whole point of debugging is to see the warning messages so you can improve your code.

SIMILAR TOPICS

PHP strict standards errors / PHP 7 Compatability questionOct 6, 2016 10:53 amReplies: 1Post by: furnivat
Error: Strict Standards: Only variables should be assigned bAug 2, 2016 3:33 pmReplies: 5Post by: Marcelraps
Warnings on array parameter and headers already sent byMay 26, 2016 1:31 pmReplies: 5Post by: acyba
Strict Standards when Look = Flags onlyJul 8, 2015 11:54 pmReplies: 3Post by: DaveOzric
Strict standards error in Joomla 3 siteJun 2, 2015 9:21 amReplies: 5Post by: pgielen

Try GTranslate with a free 15 day trial