PHP Strict Standards warnings

Popular automatic website translation tool

PHP Strict Standards warnings

Postby helgatheviking » Tue Jun 02, 2015 7:29 am

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
helgatheviking
 
Posts: 3
Joined: Tue Jun 02, 2015 7:24 am

Re: PHP Strict Standards warnings

Postby Yana » Thu Jun 04, 2015 11:42 am

Hi,
Please disable warning messages in php.ini file.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: PHP Strict Standards warnings

Postby helgatheviking » Thu Jun 04, 2015 7:26 pm

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.
helgatheviking
 
Posts: 3
Joined: Tue Jun 02, 2015 7:24 am


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux