BuddyDev

Search

[Resolved] Branded login 403 forbidden error

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #46480

    Hello,

    Please whenever I try to login to my site I keep getting 403 forbidden error, but I can only login successfully on the assigned login directory page.

    1. Login attempt on assigned directory page works
    2. Login attempt from any other page even using the branded login shortcode leads to a 403 forbidden error

    Thanks

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #46481

    When branded login is deactivated login attempts from any page works successfully

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #46482

    Please share the shortcode being used for login.
    Also, are you using another plugin/code to allow login from any page as Branded login only works for the assigned login page.

    Regards
    Brajesh

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #46487

    1. This is the shortcode [branded_login_form]

    2. My theme has a default inbuilt login popup form that hooks into this <?php wp_login_form(); ?>

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #46488

    Code for the popup login form

     if ( ! function_exists( 'klein_the_login_modal' ) ) {
    
    	/**
    	 * Log in Modal
    	 *
    	 * The template for the login modal
    	 *
    	 * @return void
    	 */
    	function klein_the_login_modal() {
    	?>
    	<div class="modal fade" id="klein_login_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    	<div class="modal-dialog">
    		<div class="modal-content">
    			<div class="modal-header">
    				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    				<h4 class="modal-title">
    					<?php esc_attr_e( sprintf( 'Login to %s', get_bloginfo( 'name' ) ),'klein' ); ?>
    				</h4>
    			</div>
    			<div class="modal-body">
    				<div class="row">
    					<div class="col-sm-push-6 col-sm-6 login-column">
    						<div id="klein-modal-body">
    							<?php do_action( 'klein_before_login_form_modal_body' ); ?>
    							<?php wp_login_form(); ?>
    							<strong>
    								<a href="<?php echo wp_lostpassword_url(); ?>" title="<?php esc_attr_e( 'Lost Password', 'klein' ); ?>">
    									<?php esc_attr_e( 'Lost Password', 'klein' ); ?>
    								</a>
    							</strong>
    							<?php do_action( 'login_form' ); // 3rd party applications/plugins support. ?>
    							<?php do_action( 'klein_after_login_form_modal_body' ); ?>
    						</div>
    					</div>
    					
    				</div>
    				<?php // Support 3rd party plugins. ?>
    				<div class="clearfix">
    					<?php do_action( 'login_footer' ); ?>
    				</div>
    
    			</div>
    		</div><!-- /.modal-content -->
    	</div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
    <?php
    	}
    }
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #46489

    Hi Tosin,
    It seems your theme has some kind of login handling mechanism too(redirect etc) and that is conflicting with Branded Login. I will suggest looking into your theme and checking if you can disable that.

    Regards
    Brajesh

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #46540

    Hello Brajesh,

    I finally found the culprit https://plugin-planet.com/bbq-pro/

    I had t disable a settings in the plugin (Enable Strict Mode)

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #46561

    Hi Tosin,
    Thank you. It is good to know.

    Regards
    Brajesh

The topic ‘ [Resolved] Branded login 403 forbidden error’ is closed to new replies.

This topic is: resolved