WordPress.org

Ready to get started?Download WordPress

Forums

All In One WP Security & Firewall
[resolved] "PHP Warning: Missing argument 2 for (8 posts)

  1. terungwa
    Member
    Posted 11 months ago #

    Hi,
    i saw this error in my error log:

    "PHP Warning: Missing argument 2 for AIOWPSecurity_User_Login::wp_login_action_handler() in /var/www/vhosts/sammyteseproductions.com/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-user-login.php on line 268".

    MY site is ok though, but thought I should find out what this error could mean.

    Regards

    http://wordpress.org/plugins/all-in-one-wp-security-and-firewall/

  2. wpsolutions
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,
    Which version of WordPress are you using?

    Does this log get produced everytime you log in? Can you try logging in and out a few times to see if this is the case?

  3. terungwa
    Member
    Posted 11 months ago #

    I am using 3.5.2
    This is the report from my error log this morning after log in:

    [Sat Aug 03 08:48:01 2013] [error] [client 41.58.59.64] PHP Warning:  Missing argument 2 for AIOWPSecurity_User_Login::wp_login_action_handler() in /var/www/vhosts/sammyteseproductions.com/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-user-login.php on line 268, referer: http://www.sammyteseproductions.com/

    Thanks.

  4. wpsolutions
    Member
    Plugin Author

    Posted 11 months ago #

    I can't reproduce your error on my test sites.

    It might be that another plugin you have active on your site is also using the "wp_login" hook (but possibly in an incorrect manner) and is hence interfering with the AIOWPS plugin.

    Do you have any other plugin which is related to some kind of login functionality which is currently active on your site?
    If so, can you try deactivating that plugin to see if the error goes away?

  5. wpsolutions
    Member
    Plugin Author

    Posted 11 months ago #

    Since I haven't heard back from you in over 3 weeks I am assuming you don't have this issue any more and will set this post to resolved.
    Feel free to open another one if you need to.

  6. premkumar
    Member
    Posted 7 months ago #

    me to getting same error...

    here my sample Code for login

    $user = get_user_by('email', "xxxx.xxxxx@gmail.com");
    $user_id = $user->ID;
    $user_login = $user_id;

    wp_set_current_user($user_id);
    wp_set_auth_cookie($user_id,false);
    do_action('wp_login', $user_login);

    Please help me...thanks

  7. jcglover27@gmail.com
    Member
    Posted 6 months ago #

    Yes, I'm getting this:
    Warning: Missing argument 2 for wpdb::prepare(), called in /home3/mile28/public_html/wp-content/plugins/tinymce-signature/tinymce-signature.php on line 334 and defined in /home3/mile28/public_html/wp-includes/wp-db.php on line 992

  8. mbrsolution
    Member
    Posted 6 months ago #

    Hello @jcglover27@gmail.com, unfortunately for you that error has nothing to do with this plugin. You have to report that error under the correct plugin support forum for better support.

    Kind regards

Reply

You must log in to post.

About this Plugin

About this Topic