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 errorThanks
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
BrajeshCode 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">×</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 } }
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
BrajeshHello 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
Hi Tosin,
Thank you. It is good to know.Regards
Brajesh
The topic ‘ [Resolved] Branded login 403 forbidden error’ is closed to new replies.