WordPress.org

Ready to get started?Download WordPress

Forums

Login Security Solution
[resolved] wp-login.php gives error after mistyped/bad login (7 posts)

  1. almasig
    Member
    Posted 1 year ago #

    Hi,

    if I mistype/ fail the password is there an error on wp-login page, is it normal?

    The error

    Warning: mysql_error(): 18 is not a valid MySQL-Link resource in /home/...../wp-includes/wp-db.php on line 1102

    and more lines

    Thanks

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

  2. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    That error happens when something (another plugin) is trying to access the database to generate the login page's footer.

    Which version of my plugin are you using?

    What other plugins are you using?

  3. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    Almasig:

    I'd love to help here, but need your help.

    --Dan

  4. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    No reply. Oh well...

  5. almasig
    Member
    Posted 1 year ago #

    Hi!

    Sry I was fulll with work and forget to reply.

    I use the latest version of your plugin and a lot of others for ex. WPML

    Thanks for the help

  6. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    Hi:

    Can you please edit wp-includes/wp-db.php, go to the query() method, and right above the mysql_query() call add the following snippet. Adjust the resulting file name to be whatever you want (I set it to /tmp/lss.log).


    if (!$this->dbh) {
    file_put_contents('/tmp/lss.log',
    var_export(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), true));
    }

    Then make a login attempt to your site using a bad user name and password. Send me the results at danielc@analysisandsolutions.com.

    Thanks.

  7. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    Version 0.37.0, released a moment ago, should fix this problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.