Theme My Login
[resolved] Getting an error on failed login with TML 6.3.6 (4 posts)

  1. psm9640
    Posted 3 years ago #

    So everything's working pretty well since upgrading to 6.3.6 but I've encountered something very strange if someone tries to login with the wrong username or password (or just clicks "Log In" with no credentials entered at all):

    Fatal error: Call to a member function get_option() on a non-object in [hosting root]/wp-content/plugins/theme-my-login/modules/custom-redirection/custom-redirection.php on line 93

    (The /login/ url is appended to /login/?instance=1)

    If you enter your correct information all's well and the proper member redirects ensue. Wondering if anyone else has seen this issue?


  2. Jeff Farthing
    Plugin Author

    Posted 3 years ago #

    An instance should not be appended to the URL on the TML page. Be sure that your theme is properly utilizing The Loop.

  3. psm9640
    Posted 3 years ago #

    Thanks Jeff -- Shortcode needed to be updated. Appreciate the response!

  4. mikargouillat
    Posted 2 years ago #

    hi psm9640 and Jeff,

    I have a similar problem to the one you mentioned above. when a user logs in with a wrong account or when they click login without fill in the fields, it is send to a URL ending ?instance=1.

    Which is misinterpreted by my theme and return the user to the posts page .

    I think the problem comes from the loop but I do not know how to fix it because I'm new in developing with wordpress.

    Could you give me some guidance on what should be changed?

    following my loop code of index.php.

    <?php if ( have_posts() ) : ?>
    			<?php /* Start the Loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    					/* Include the Post-Format-specific template for the content.
    					 * If you want to override this in a child theme, then include a file
    					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    					//get_template_part( 'content', get_post_format() );
    			<?php endwhile; ?>
    			<?php sixteen_content_nav( 'nav-below' ); ?>
    		<?php else : ?>
    			<?php get_template_part( 'no-results', 'index' ); ?>
    		<?php endif; ?>

    best regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic