WordPress.org

Ready to get started?Download WordPress

Forums

Login Security Solution
[resolved] Warning: Missing argument 2 for... (6 posts)

  1. Herbert
    Member
    Posted 2 years ago #

    On a multisite install I will get an error when logging in on any blog, the plugin is network activated:

    Warning: Missing argument 2 for login_security_solution::wp_login()....

    If then manually go to the /wp-admin I am logged in, but how to get rid of the error. Any suggestions out there...

    http://wordpress.org/extend/plugins/login-security-solution/

  2. Daniel Convissor
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Herbie:

    I am not seeing that. My guess is an unexpected interaction with another plugin or something. To figure out what's happening on your system, can you please place the following line of code on the first line inside the wp_login() method in my class? It logs a backtrace to a file. Adjust the path to the file as needed. Then post the resulting file.

    file_put_contents('/var/tmp/lss-wp_login', var_export(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), true));

    Which versions of WordPress and Login Security Solution are you using?

    Thanks,

    --Dan

  3. Daniel Convissor
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Again Herbie:

    Ah, the forum system shows your WP version as 3.2.1 in the right column. I took a look at the source code of wp-includes/user.php in that branch. It turns out the second argument to the wp_login action was added in 3.3. So I need to change my plugin's minimum version. to 3.3.

    Thanks for bringing this to my attention,

    --Dan

  4. Herbert
    Member
    Posted 2 years ago #

    Thanks Dan. Yes, I am using WP 3.2.1 so now the error is clear to me. When I switch of error reporting it works fine. So for now it is solved. Thank you for the quick response.

  5. Daniel Convissor
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Herbie:

    That second argument is required for the plugin to work properly. The error can't be ignored, sorry to say. I suggest either disabling this plugin or upgrade WP to 3.3.

    --Dan

  6. Herbert
    Member
    Posted 2 years ago #

    Thanks Dan. I did an update to wp 3.3.2. All looks fine now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic