• Resolved a_ludi

    (@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() {

    https://www.ads-software.com/plugins/user-groups/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Kristien Maria

    (@kristien-maria)

    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?
    Kristien

    Kristien Maria

    (@kristien-maria)

    Oh i forgot tot say: my wordpress version is 4.1.1

    Kristien Maria

    (@kristien-maria)

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

    Thread Starter a_ludi

    (@a_ludi)

    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.

    Arne

    Kristien Maria

    (@kristien-maria)

    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/bare-necessities.be/httpd.www/wp-content/plugins/wpnewsman-newsletters/ajaxbackend.php 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,
    Kristien

    Plugin Author Zack Katz

    (@katzwebdesign)

    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.