Title: &quot;PHP Warning:  Missing argument 2 for
Last modified: August 21, 2016

---

# "PHP Warning: Missing argument 2 for

 *  Resolved [terungwa](https://wordpress.org/support/users/terungwa/)
 * (@terungwa)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/)
 * 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/](http://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/#post-3988235)
 * 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?
 *  Thread Starter [terungwa](https://wordpress.org/support/users/terungwa/)
 * (@terungwa)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/#post-3988268)
 * 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.
 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/#post-3988330)
 * 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?
 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/#post-3988573)
 * 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.
 *  [premkumar](https://wordpress.org/support/users/premkuamr/)
 * (@premkuamr)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/#post-3988641)
 * 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
 *  [jcglover27@gmail.com](https://wordpress.org/support/users/jcglover27gmailcom/)
 * (@jcglover27gmailcom)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/#post-3988642)
 * 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
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/#post-3988643)
 * 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

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘"PHP Warning: Missing argument 2 for’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

 * [missing argument 2](https://wordpress.org/support/topic-tag/missing-argument-2/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 7 replies
 * 5 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-missing-argument-2-for/#post-3988643)
 * Status: resolved