PHP Strict Standards warnings
Jun 2, 2015 3:29 am by helgatheviking
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
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
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 question | Oct 6, 2016 10:53 am | Replies: 1 | Post by: furnivat |
Error: Strict Standards: Only variables should be assigned b | Aug 2, 2016 3:33 pm | Replies: 5 | Post by: Marcelraps |
Warnings on array parameter and headers already sent by | May 26, 2016 1:31 pm | Replies: 5 | Post by: acyba |
Strict Standards when Look = Flags only | Jul 8, 2015 11:54 pm | Replies: 3 | Post by: DaveOzric |
Strict standards error in Joomla 3 site | Jun 2, 2015 9:21 am | Replies: 5 | Post by: pgielen |