Using the latest dev, I get "ajax module: an unknown error has occured" when I try to submit a login on a 403 redirected page. I have LoginToboggan set to enable the persistent login form on 403 pages. This doesn't occur during a normal login, doesn't happen if I turn off Ajax plugin - logintoboggan, and I tested on both Google Chrome and Firefox 3.06. It might be just me. As a simple test I logged out, then tried to go to /admin, which then gave me a 403, and asked me to login. Upon pressing the submit button, the above error message popped up and I never logged in.

Comments

brendoncrawford’s picture

Assigned: Unassigned » brendoncrawford

AllRoCol,

Thanks for the feedback. I will have a look at this.

brendoncrawford’s picture

AllRoCol,

Can you submit the ajax response for the form submission? You should be able to get it from the Firebug console log.

Thanks,
Brendon

Anonymous’s picture

It is saying something along the lines of 404( POST http://localhost/drupal//drupal/admin?destination=/drupal/admin
http://localhost/drupal//drupal/admin?destination=/drupal/admin
404 Not Found 1.27s
), not found. I don't know why it shows a second /drupal with an extra /. Maybe that is the way it is supposed to look in Firebug. What I am saying is that it should be http://localhost/drupal/admin, not http://localhost/drupal//drupal/admin. I'm only doing it to /admin, on a completely clean site.

I wiped the whole Xampp server install I was testing on, reinstalled it, then installed Drupal 6.9, along with just the latest Dev of Ajax and the latest stable LoginToboggan. Now I'm not a programmer and this is my first time using Firebug, so I might post the wrong stuff. I went to /admin and attempted to login with Firebug running, the output I got under the response section of console was:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  <head>
    <title>Page not found | localhost</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/drupal/misc/favicon.ico" type="image/x-icon" />
    <link type="text/css" rel="stylesheet" media="all" href="/drupal/modules/node/node.css?v" />
<link type="text/css" rel="stylesheet" media="all" href="/drupal/modules/system/defaults.css?v" />
<link type="text/css" rel="stylesheet" media="all" href="/drupal/modules/system/system.css?v" />
<link type="text/css" rel="stylesheet" media="all" href="/drupal/modules/system/system-menus.css?v" 
/>
<link type="text/css" rel="stylesheet" media="all" href="/drupal/modules/user/user.css?v" />
<link type="text/css" rel="stylesheet" media="all" href="/drupal/sites/all/modules/logintoboggan/logintoboggan
.css?v" />
<link type="text/css" rel="stylesheet" media="all" href="/drupal/themes/garland/style.css?v" />
<link type="text/css" rel="stylesheet" media="print" href="/drupal/themes/garland/print.css?v" />
    <script type="text/javascript" src="/drupal/misc/jquery.js?v"></script>
<script type="text/javascript" src="/drupal/misc/drupal.js?v"></script>
<script type="text/javascript" src="/drupal/sites/all/modules/ajax/jquery/jquery.form.js?v"></script
>
<script type="text/javascript" src="/drupal/sites/all/modules/ajax/ajax.js?v"></script>
<script type="text/javascript" src="/drupal/sites/all/modules/ajax/plugins/disable_redirect/ajax_disable_redirect
.js?v"></script>
<script type="text/javascript" src="/drupal/sites/all/modules/ajax/plugins/thickbox/ajax_thickbox.js
?v"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/drupal/" });
//--><!]]>
</script>
    <!--[if lt IE 7]>
      <link type="text/css" rel="stylesheet" media="all" href="/drupal/themes/garland/fix-ie.css" />
    <![endif]-->
  </head>
  <body>

<!-- Layout -->
  <div id="header-region" class="clear-block"></div>

    <div id="wrapper">
    <div id="container" class="clear-block">

      <div id="header">
        <div id="logo-floater">
        <h1><a href="/drupal/" title="localhost"><img src="/drupal/themes/garland/logo.png" alt="localhost"
 id="logo" /><span>localhost</span></a></h1>        </div>

                                                    
      </div> <!-- /header -->

      
      <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
                                        <h2>Page not found</h2>                                     
             <div class="clear-block">
            The requested page could not be found.          </div>
                    <div id="footer"><div id="block-system-0" class="clear-block block block-system"
>


  <div class="content"><a href="http://drupal.org"><img src="/drupal/misc/powered-blue-80x15.png" alt
="Powered by Drupal, an open source content management system" title="Powered by Drupal, an open source
 content management system" width="80" height="15" /></a></div>
</div>
</div>
      </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->

      
    </div> <!-- /container -->
  </div>
<!-- /layout -->

    </body>
</html>

Now.. The page is there if I turn off the Ajax module for LoginToboggan, so why won't it show up with the module on?

At the bottom of the console is this clickable link that says:
error [XMLHttpRequest readyState=4 status=404, "error", undefined]

If you need any info from that, let me know.

For LoginToboggan, I have the following settings:
Allow users to login using their e-mail address: enabled
Use two e-mail fields on registration form: enabled
Set password: checked
Non-authenticated role: authenticated user
Immediate login: checked
Redirect path on Registration: blank
Redirect path on Confirmation: blank
Present login form on access denied (403): enabled
Display login successful message: enabled
Minimum password length: 6
Delete unvalidated users after: 6 Months

brendoncrawford’s picture

Project: Ajax » LoginToboggan
Component: Miscellaneous » Code
Assigned: brendoncrawford » Unassigned

This is actually a result of a Logintoboggan bug, which I opened here:

http://drupal.org/node/436416

Reassigning this bug to logintoboggan.

hunmonk’s picture

Status: Active » Closed (duplicate)

let's finish this up in the other issue.