WordPress.org

Ready to get started?Download WordPress

Forums

Login Security Solution
[resolved] Fatal error: Call to a member function get_error_codes() (8 posts)

  1. skippywp
    Member
    Posted 1 year ago #

    I am using the Theme My Login plugin and Login Security Solution. Both are up-to-date. When I enter a valid username and password, no problem, but when I make a mistake on entering the username and/or password, I get the following: Fatal error: Call to a member function get_error_codes() on a non-object in .../wp-content/plugins/login-security-solution/login-security-solution.php on line 512.
    Interestingly,when I use the wordpress login for the same site, and I put in a bad name/password, I get the invalid username or password message which is okay.
    I found this link that says that maybe a misspelling in a class, but don't know if provides a clue on what's going on: http://www.wallpaperama.com/forums/fatal-error-call-to-a-member-function-call-on-a-non-object-in-remote-php-on-line-140-t1761.html
    Any help is welcomed so I can use this combination on a number of sites. Thanks!

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

  2. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    The Theme My Login plugin is doing something wrong, causing the $errors variable to not be available. Perhaps they're missing a global $errors; call at the top of a function or something similar.

  3. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm... Doing further analysis...

  4. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    Skippywp: I made some changes to my plugin. Can you please copy this file into place and see if it fixes the problem you're seeing?

    https://github.com/convissor/login-security-solution/raw/92753deb39ea07c89a1a80897a58c3cf2b1411c3/login-security-solution.php

  5. skippywp
    Member
    Posted 1 year ago #

    Wahoo! Daniel, your change fixed the error! I edited the revised plugin and tested on two different sites with two different hosting servers. Whew! Looking good!
    I really like both plugins, so I am glad it worked out.
    Thanks for taking the time!
    skippy

  6. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    Skippy:

    Thanks for the report and your testing. Glad I could help. The new release, 0.34.0, is out with the fix.

    The reason for the bug is there are multiple code paths into my login_errors() filter method and wp-login.php uses two conventions for naming the WP_Error object: $errors and $wp_error. I had only accounted for the paths that set $errors. Now the method handles both.

    --Dan

  7. Daniel Convissor
    Member
    Plugin Author

    Posted 1 year ago #

    Oh, yeah, Skippy: When you get a chance, I would be most appreciative if you can give the plugin a good rating and a "works" vote. Financial contributions are always welcome too. :) Thanks, --Dan

  8. skippywp
    Member
    Posted 1 year ago #

    Done! A 5 star rating and a contribution. :-) Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.