Topic-icon Login Fails Breadcrumbs Behave Strangely

Active Subscriptions:

None
6 years 9 months ago - 6 years 9 months ago #62059 by webdevtim
When I try to log into the front end I get the mesasage:

The security token did not match. The request was aborted to prevent any security breach. Please try again.

And in the breadcrumbs I get:

You are here: Home - 9/11 Movement Presents Evidence for a Legal Case:


Breadcrumbs problem went away after I uninstalled RegularLabs "Modules Anywhere," I use MaximenuCK which allows me to install modules in a menu position and having both installed causes some collisions, and refreshed all the caches several times. I was then able to log in. But when I logged out and tried to login in again I again got:

The security token did not match. The request was aborted to prevent any security breach. Please try again.

again.

Everything was working correctly and then someone brought this to my attention today.

The HTML for the login drop-down looks as below, I see nothing wrong here:
<div id="jfbcLoginModal" class="sourcecoast modal" style="display:none">
  <div class="modal-body">You are now being logged in using your Facebook credentials</div>
</div>
<script src="/plugins/system/equalheights/js/equalheights.min.js" type="text/javascript">
  jQuery.fn.equalHeights=function(){var maxHeight=0;var windowWidth=jQuery(window).width();this.each(function(){var $this=jQuery(this);$this.height("auto");if($this.outerHeight(false)>maxHeight){maxHeight=$this.outerHeight(false)}});if(windowWidth>750){this.each(function(){var $this=jQuery(this);$this.height(maxHeight)})}};function ddResizeClass(selector){jQuery(selector).equalHeights()}function ddEqualizeHeights(){if(ddClasses!="undefined"){jQuery.each(ddClasses,function(index,selector){ddResizeClass(selector)})}}
</script>
<script type="text/javascript">

  var ddClasses = new Array(".equal-heights" );
  jQuery(window).load(function() {
    ddEqualizeHeights();
  });
  var resizeTimer;
  jQuery(window).resize(function() {
    clearTimeout(resizeTimer);
    resizeTimer = setTimeout(ddEqualizeHeights, 50);
  });
</script>
<div class="autocomplete-suggestions" style="position: absolute; display: none; width: 300px; max-height: 400px; z-index: 9999;"></div>
<div class="jfbcsocialshare"></div>
<div id="login-modal" class="sourcecoast modal fade in" tabindex="-1" role="dialog" aria-labelledby="login-modalLabel" aria-hidden="false" style="margin-left: -280px;">
  <div class="modal-header">
    <button class="close" type="button" data-dismiss="sc-modal" aria-hidden="true">×</button>
    <span class="modal-title">9/11 TAP Login</span>
  </div>
  <div class="modal-body">
    <div id="sclogin-242" class="sclogin sourcecoast">
      <div class="row-fluid">
        <div class="sclogin-joomla-login vertical span12">
          <form id="sclogin-form242" action="https://www.911tap.org/" method="post">
            <fieldset class="input-block-level userdata">
              <div id="form-sclogin-username" class="control-group">
                <div class="controls input-block-level">
                  <div class="input-append input-block-level">
                    <input id="sclogin-username" class="input-block-level" name="username" tabindex="0" alt="username" placeholder="Username" type="text">
                  </div>
                </div>
              </div>
              <div id="form-sclogin-password" class="control-group">
                <div class="controls input-block-level">
                  <div class="input-append input-block-level">
                    <input id="sclogin-passwd" class="input-block-level" name="password" tabindex="0" alt="password" placeholder="Password" type="password">
                  </div>
                </div>
              </div>
              <div id="form-sclogin-submitcreate" class="control-group">
                <button class="btn btn-primary span12" type="submit" name="Submit">Log in</button>
              </div>
              <div id="form-sclogin-remember" class="control-group">
                <label for="sclogin-remember">
                  <input id="sclogin-remember" class="inputbox" name="remember" alt="Remember Me" type="checkbox">
                  Remember me
                </label>
              </div>
              <input name="option" value="com_users" type="hidden">
              <input name="task" value="user.login" type="hidden">
              <input name="return" value="aW5kZXgucGhwP0l0ZW1pZD0xMDE=" type="hidden">
              <input name="mod_id" value="242" type="hidden">
              <input name="d24bb9f9c46437759cada76ee69a0c34" value="1" type="hidden">
              <ul>
                <li>
                  <a href="/register-with-us?view=remind">Forgot Username?</a>
                </li>
                <li>
                  <a href="/register-with-us?view=reset">Forgot Password?</a>
                </li>
              </ul>
            </fieldset>
          </form>
        </div>
        <div class="sclogin-social-login span12 vertical bottom">
          <span class="sclogin-social-intro span12">
            Log in Quickly with 
            <i class="fa fa-hand-o-down" style="font-size:larger"></i>
          </span>
          <span class="sourcecoast login">
            <div class="row-fluid">
              <div class="social-login amazon scAmazonLogin pull-left">
                <a class="sc_amazonlogin" href="javascript:void(0)" onclick="jfbc.login.provider('amazon');">
                  <img src="/media/sourcecoast/images/provider/amazon/911truth_icon.png" alt="Login With Amazon" title="Login With Amazon">
                </a>
              </div>
              <div class="social-login facebook jfbcLogin pull-left">
                <a class="sc_fblogin" href="javascript:void(0)" onclick="jfbc.login.provider('facebook');">
                  <img src="/media/sourcecoast/images/provider/facebook/911truth_icon.png" alt="Login With Facebook" title="Login With Facebook">
                </a>
              </div>
              <div class="social-login github scGithubLogin pull-left">
                <a class="sc_githublogin" href="javascript:void(0)" onclick="jfbc.login.provider('github');">
                  <img src="/media/sourcecoast/images/provider/github/911truth_icon.png" alt="Login With Github" title="Login With Github">
                </a>
              </div>
              <div class="social-login google scGoogleLogin pull-left">
                <a class="sc_gologin" href="javascript:void(0)" onclick="jfbc.login.provider('google');">
                  <img src="/media/sourcecoast/images/provider/google/911truth_icon.png" alt="Login With Google" title="Login With Google">
                </a>
              </div>
              <div class="social-login instagram scInstagramLogin pull-left">
                <a class="sc_instagramlogin" href="javascript:void(0)" onclick="jfbc.login.provider('instagram');">
                  <img src="/media/sourcecoast/images/provider/instagram/911truth_icon.png" alt="Login With Instagram" title="Login With Instagram">
                </a>
              </div>
              <div class="social-login twitter scTwitterLogin pull-left">
                <a class="sc_twlogin" href="javascript:void(0)" onclick="jfbc.login.provider('twitter');">
                  <img src="/media/sourcecoast/images/provider/twitter/911truth_icon.png" alt="Login With Twitter" title="Login With Twitter">
                </a>
              </div>
            </div>
          </span>
        </div>
      </div>
      <div class="clearfix"></div>
    </div>
  </div>
</div>
<div id="login-modal" class="sourcecoast modal fade" tabindex="-1" role="dialog" aria-labelledby="login-modalLabel" aria-hidden="true" style="display:none">
  <div class="modal-header">
    <button class="close" type="button" data-dismiss="sc-modal" aria-hidden="true">×</button>
    <span class="modal-title">9/11 TAP Login</span>
  </div>
  <div class="modal-body">
    <div id="sclogin-242" class="sclogin sourcecoast">
      <div class="row-fluid">
        <div class="sclogin-joomla-login vertical span12">
          <form id="sclogin-form242" action="https://www.911tap.org/" method="post">
            <fieldset class="input-block-level userdata">
              <div id="form-sclogin-username" class="control-group">
                <div class="controls input-block-level">
                  <div class="input-append input-block-level">
                    <input id="sclogin-username" class="input-block-level" name="username" tabindex="0" alt="username" placeholder="Username" type="text">
                  </div>
                </div>
              </div>
              <div id="form-sclogin-password" class="control-group">
                <div class="controls input-block-level">
                  <div class="input-append input-block-level">
                    <input id="sclogin-passwd" class="input-block-level" name="password" tabindex="0" alt="password" placeholder="Password" type="password">
                  </div>
                </div>
              </div>
              <div id="form-sclogin-submitcreate" class="control-group">
                <button class="btn btn-primary span12" type="submit" name="Submit">Log in</button>
              </div>
              <div id="form-sclogin-remember" class="control-group">
                <label for="sclogin-remember">
                  <input id="sclogin-remember" class="inputbox" name="remember" alt="Remember Me" type="checkbox">
                  Remember me
                </label>
              </div>
              <input name="option" value="com_users" type="hidden">
              <input name="task" value="user.login" type="hidden">
              <input name="return" value="aW5kZXgucGhwP0l0ZW1pZD0xMDE=" type="hidden">
              <input name="mod_id" value="242" type="hidden">
              <input name="d24bb9f9c46437759cada76ee69a0c34" value="1" type="hidden">
              <ul>
                <li>
                  <a href="/register-with-us?view=remind">Forgot Username?</a>
                </li>
                <li>
                  <a href="/register-with-us?view=reset">Forgot Password?</a>
                </li>
              </ul>
            </fieldset>
          </form>
        </div>
        <div class="sclogin-social-login span12 vertical bottom">
          <span class="sclogin-social-intro span12">
            Log in Quickly with 
            <i class="fa fa-hand-o-down" style="font-size:larger"></i>
          </span>
          <span class="sourcecoast login">
            <div class="row-fluid">
              <div class="social-login amazon scAmazonLogin pull-left">
                <a class="sc_amazonlogin" href="javascript:void(0)" onclick="jfbc.login.provider('amazon');">
                  <img src="/media/sourcecoast/images/provider/amazon/911truth_icon.png" alt="Login With Amazon" title="Login With Amazon">
                </a>
              </div>
              <div class="social-login facebook jfbcLogin pull-left">
                <a class="sc_fblogin" href="javascript:void(0)" onclick="jfbc.login.provider('facebook');">
                  <img src="/media/sourcecoast/images/provider/facebook/911truth_icon.png" alt="Login With Facebook" title="Login With Facebook">
                </a>
              </div>
              <div class="social-login github scGithubLogin pull-left">
                <a class="sc_githublogin" href="javascript:void(0)" onclick="jfbc.login.provider('github');">
                  <img src="/media/sourcecoast/images/provider/github/911truth_icon.png" alt="Login With Github" title="Login With Github">
                </a>
              </div>
              <div class="social-login google scGoogleLogin pull-left">
                <a class="sc_gologin" href="javascript:void(0)" onclick="jfbc.login.provider('google');">
                  <img src="/media/sourcecoast/images/provider/google/911truth_icon.png" alt="Login With Google" title="Login With Google">
                </a>
              </div>
              <div class="social-login instagram scInstagramLogin pull-left">
                <a class="sc_instagramlogin" href="javascript:void(0)" onclick="jfbc.login.provider('instagram');">
                  <img src="/media/sourcecoast/images/provider/instagram/911truth_icon.png" alt="Login With Instagram" title="Login With Instagram">
                </a>
              </div>
              <div class="social-login twitter scTwitterLogin pull-left">
                <a class="sc_twlogin" href="javascript:void(0)" onclick="jfbc.login.provider('twitter');">
                  <img src="/media/sourcecoast/images/provider/twitter/911truth_icon.png" alt="Login With Twitter" title="Login With Twitter">
                </a>
              </div>
            </div>
          </span>
        </div>
      </div>
      <div class="clearfix"></div>
    </div>
  </div>
</div>
<div class="sourcecoast modal-backdrop fade in"></div>
Last edit: 6 years 9 months ago by webdevtim.
The topic has been locked.
Support Specialist
6 years 9 months ago #62065 by alzander
In the SCLogin module, there's an option for caching, please try disabling it.

If that doesn't work, disable all caching or optimizations on your site to see if the problem goes away. It's possible that something is caching the token on one page and then re-using it on future pages which would cause the error you're seeing.

That's just a guess. Of course, always try with the regular mod_login module to see if that doesn't have the issue as that will narrow things down as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
6 years 9 months ago #62066 by webdevtim
The module cache was already disabled.

I disabled the Joomla system cache and the problem went away including the problem with the breadcrumbs not referencing the correct page.

So I will have to set an exception for the SCLogin module, but I am not sure how to do that, will have to do some reading.
The topic has been locked.
Support Specialist
6 years 9 months ago #62072 by alzander
When you say the system cache, do you mean the System - Cache plugin? In that plugin, there's a setting for "Enable Browser Caching". If that is enabled, it should be turned of as that's likely the cause of your problem.
The topic has been locked.