Support » Plugin: User Groups » Bugfix request: PHP notice: strict standards …

  • Resolved a_ludi


    The following notice occurs when the plugin is active

    Strict standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method KWS_User_Groups::load() should not be called statically

    It originates at line 10 of the plugin file:

    add_action('plugins_loaded', array('KWS_User_Groups', 'load'), 200);

    To remove this annoying notice the keyword static has to be inserted in line 15:

    static function load() {

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thanks for your help. But i still havn’t found it. Which file do you mean with ‘the plugin file’? I am searching in wpnewsman.php, in core.php and others, but i do not see this line: add_action(‘plugins_loaded’, array(‘KWS_User_Groups’, ‘load’), 200);
    What is the name of this file and where do i find it precisely?

    Oh i forgot tot say: my wordpress version is 4.1.1

    I am still searching for it. I do not find the line. Do i have to search for it in ajaxbackend.php?

    Hello Kristien,

    this may be a misunderstanding. I was referring to the plugin User Groups which consists only of one file. I take it that you were looking in all kinds of WordPress files. Sorry.


    Okay, now i found it. I changed the line to static function load() { but still i get this message: Warning: set_time_limit(): Cannot set max execution time limit due to system policy in /customers/9/0/4/ on line 4
    What do i need to change in line 4? There is still a problem with the plugin. Can you help me once more please?
    Kind regards,

    Plugin Author Zack Katz


    This is fixed in the next update. Thanks for reporting!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Bugfix request: PHP notice: strict standards …’ is closed to new replies.