• Resolved psm9640

    (@psm9640)


    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?

    https://www.ads-software.com/extend/plugins/theme-my-login/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

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

    Thread Starter psm9640

    (@psm9640)

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

    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(); ?>
    
    				<?php
    					/* 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting an error on failed login with TML 6.3.6’ is closed to new replies.