Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: AJAX error - The response was not a valid JSON object (302)

Status Resolved
Add-on / Version Custom System Messages
Severity Critical
EE Version 17

Dustin Hansen

Nov 01, 2012

When we submit our login form successfully, we are getting a 302 and the following error is displayed:

The response was not a valid JSON object.

Help??

{exp:system_messages:form message_on_success="no"}
    {exp:member:login_form form_class="login_form"}
     <div class="username">
      <label for="username">Username</label><br>
      <input type="text" id="username" class="username" name="username">
     </div>
     <div class="password">
      <label for="password">Password</label><br>
      <input type="password" id="password" class="password" name="password">
     </div>
     {if auto_login}
      <div class="auto_login">
       <input type="checkbox" id="auto_login" name="auto_login" class="auto_login" value="1">Remember me?
      </div>
     {/if}
     <div class="submit-button">
      <input type="submit" name="submit" class="submit" value="Login">
      <div class="clear"></div>
     </div>
     <div class="forgot_password">
      <a href="/forgot-password">Forgot your password?</a>
     </div>
    {/exp:member:login_form}
   {/exp:system_messages:form}
#1

BoldMinded (Brian)

If you look at your console what is the response content from the request? It sounds like its an HTML page, but it’ll have a message showing the error in there somewhere.

#2

Dustin Hansen

Yes, it is an HTML page. It’s the page I should be redirected to. I’ve looked but I can’t spot any error in there…

#3

Brian Litzinger

I went to the login page and it looks like you have removed the ajax functionality?

#4

BoldMinded (Brian)

Closing, been a month with no response. If this is still an issue please open a new ticket. Thanks.

Login to reply