Support » Plugin: User Role Widget Areas » Generates Error Messages

  • Immediately after activating I get this message when I load the plugins page:

    Warning: Declaration of urwa_widget::widget() should be compatible with WP_Widget::widget($args, $instance) in /home/XXXXX/public_html/wp-content/plugins/user-role-widget-areas/user-role-widget-areas.php on line 0

    Warning: Declaration of urwa_widget_logged_in::widget() should be compatible with WP_Widget::widget($args, $instance) in /home/XXXXX/public_html/wp-content/plugins/user-role-widget-areas/user-role-widget-areas.php on line 0

Viewing 1 replies (of 1 total)
  • Plugin Author Rob Smelik


    Hi Pedro,

    Thanks for the heads up on this. I assume the reason you are seeing this is because you have PHP error logging turned on. What you are seeing is a PHP strict standards error. Strict standards don’t necessarily mean that the code is written incorrectly but rather that certain versions of php recommend different methods for executing the same functions.

    You are right though the plugin is probably due for a refresh and I will look into rewriting that portion of the code to support strict standards over the next week. If you could let me know what version of PHP your running on your server it would be awesome.

    That being said I just wanted to let you know that the methods I used for registering both the plugin’s widget areas and the widgets are taken directly from the WordPress Codex. I just tested them on a fresh install of WordPress with the current version 4.8 with multiple themes and they still work fine.

    Thanks again!


Viewing 1 replies (of 1 total)
  • The topic ‘Generates Error Messages’ is closed to new replies.