Closed (fixed)
Project:
Ajax
Version:
6.x-1.14
Component:
Miscellaneous
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2011 at 12:48 UTC
Updated:
8 Sep 2014 at 20:10 UTC
Jump to comment: Most recent
Hi there,
I just got round to installing the Ajax module and everything seemed to be working fine, until I logged out and tried to log back in to my website.
After inputting my details and hitting 'Login', I'm greeted with the following error:
ajax.module: An unknown error has occurred.
However, if I refresh the page I'm logged in. Is this a bug?
Thanks
Comments
Comment #1
TGReaver commentedJust to add, Ajax doesn't seem to be functioning what so ever on ANY of the enabled forms. Errors only seem to be appearing after refreshing the page.
After submitting the log in form, I notice the button reads "Loading" but then I receive the aforementioned popup error.
The following code is present in my page.tpl.php file, it was a long shot but I double checked.
Just to reiterate, all of the forms are ENABLED in Ajax Settings, Ajax UI and additional modules that I require are also enabled.
Any assistance would be fantastic, thank you for your time!
Comment #2
nizer commentedsubscribing
I have the same problem on form submit. It seems as if I get the error in every browser but IE...
Comment #3
hookdump commentedHey guys, I was going to ask for some help since I had this same problem... But suddenly I found the solution :D
This problem might have different causes depending on your environment/setup, but in my case it was this:
The ajax login form expects something to be returned after AJAX call (I'm not sure what, I didn't check), so if you have some module or rule doing a redirection after Login, that may be messing up the response the AJAX callback is receiving.
In my case, I had created a trigger to redirect the user after login (just an experiment), and this was breaking the AJAX login form.
Disabling the trigger solved the problem.
I hope this info helps someone else :D
Comment #4
brendoncrawford commentedhookdump, thanks for the suggestion. closing.
Comment #6
nagrgk commentedGuys , i understood where exactly this error is loading from. The ajax error due to parsing error. The function of form_set_ error is working with jquery 1.3 ver .Its doesnot support laest versions .So, W e need o add json_decode function in inc.php which will solve ajax login/register error. If you have more questions , reply on same
Comment #7
caspercash commentednagrgk,
can you elaborate and post here on how to solve this one?
Thanks!
Comment #8
gusCallado commentedHi there!
I don't know why but you can't do any change in some .php source files such as index.php. If you do that, you will get an AJAX ERROR!!!
Rgds,
Gus Callado