I've tried to upgrade D7 site from 7.0 alfa6 version to the 7.0 official release (wrong step? should I do a new clean installation instead?) and I am getting the error:

An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page
An AJAX HTTP request terminated abnormally. Debugging information follows. Path: http://www.complexsolutions.eu/....... ResponseText: ReadyState: 4

I have a snapshot of the full error report if needed, let me know please.

I've completed all the steps as usually, deleted all the files except "sites" folder and htaccess file. I've tried to run the update on Google Chrome and Mozilla Firefox.
I have no idea what's the error about, have never received an error while updating before.
Could anybody point me to the problem?

Comments

aschiwi’s picture

Please check this issue: http://drupal.org/node/1012972

LonitaD’s picture

I know this is an old issue, but for anyone coming across this issue, double check your base_url in settings.php. If your .htaccess file redirects to the www.domain.com version of your site and the base_url is domain.com (or vice versa), you may run into AJAX errors. See http://drupal.org/node/1069800. I just found this same problem on my site and fixing the base_url worked.

abdulqadir028’s picture

You made my day :)

drumrwaldo’s picture

This was also my issue. Configured for use without 'www' in htaccess but other way around in settings.php.

saurabh.3009’s picture

Hi,

I tried this solution but strangely it works sometime and at time it doesn't.

Brief of the problem: I am using Ajax Register 7.x-4.0-rc15 on my Drupal 7 website.

I have enabled non www redirection to www and given specified base path (the URL of the website). But at times, the registration process gives AJAX error.

Thanks is advance,
Saurabh

dudepal’s picture

Thanks its perfect

hockey2112’s picture

Yep, this was my issue. My htaccess was redirecting all to non-www, but my cookie domain included the www. Thanks!

vivdrupal’s picture

You saved my day.!

mbahlol’s picture

Thank you very much, this really works.

Jaypan’s picture

---- message removed due to incorrect information ----

jjones150’s picture

You claimed previously to be a good coder. What was this all about?

defconjuan’s picture

In recent versions of FastCGI, the default value for MaxRequestLen has changed from 1GB to 130kB so any requests over that (which should include almost any file upload) will throw the "AJAX HTTP request terminated abnormally" error.

You may also see an error like this in your error.log:
[warn] [client 8.8.8.8] mod_fcgid: HTTP request length 131860 (so far) exceeds MaxRequestLen (131072)...

You'll need to add the following as an Apache directive (e.g. to vhost file):

<IfModule mod_fcgid.c>
  # 50MB
  MaxRequestLen 52430000
</IfModule>

All thanks to TheOptimizer for this solution via his comment to another post.

UPDATE: You can also "fix" the problem by switching from fast-cgi, to mod_php or php-fpm if you have that kind of server/control panel access.

jjones150’s picture

Perhaps you could be more specific. This issue contains many answers that offer little to no solution. Users encountering this problem are already having to treasure hunt. Is there a specific part of this referenced problem that contains a solution?

joshuautley’s picture

doh! You'd think after all my years I would have caught this myself. Sometimes its the simple things. Thank you (creative180) for the fix.

Josh Utley, President & CEO
Intrepid Network Inc. | Multimedia Services & Business Solutions

"Our mission is to provide a more personable multimedia service along with the highest quality business solutions."

geidorei’s picture

Hi folks - this has just started to happen with me.

An AJAX HTTP request terminated abnormally - on installation and/or update of the Google Analytics module, I have as has been explained over done the following:

1. edited .htaccesss and pointed to non www domain
2. edit base_url and now points to www
3. have also disabled overlay module, as has been mentioned to

I am pulling my hair out! Any suggestions, looks like this has just started again. Thanks.

geidorei’s picture

Update to above post - seams to be connected with authorize.php - fails on any module install.

I've looked everywhere for an answer to no avail, does anybody have any suggestions?

I have checked all folder permissions, and they are correct. Happening on three sites, looks like started after last security update the other day.

9802008’s picture

In Drupal 7, check that 'Securepages' has the 'Secure Base URL' set to match .htaccess and base url in settings.php

/admin/config/system/securepages

Configuration -> System -> Secure Pages

In my case .htaccess and settings.php where set to https://mysite.com but 'Secure Pages' had base URL set to https://www.mysite.com

When attempting to update modules, the AJAX error presented.

m_dimitris’s picture

I have a similar issue I think:

In drupal 7 where I use an adding node form which uses ajax for form submission (I use the modal module or the ajax_entity module). In both case when I submit the code the node is not create and I receive the following error in a popup:

"An AJAX HTTP request terminated abnormally. Debugging information follows. Path: http://demo/q=modal/node/add/TestType/ajax/0" Status text:n/a ResponseText:Skip to main content"

I dont if this is important but the node form is divided in vertical tabs and it is opening in modal window. Also it includes textboxes,textareas and file upload field, but in this case still I havent used the file upload fields.

I also tried to change settings php and htaccess but I am not sure how exactly my base_url must be. The site so far exists in a domain with the following form: http://mydomain.com/demo. What should I write in settings and in htaccess? (especially in htaccess).

Thanks in advance-I am pulling my hair trying to do this..

robbdavis’s picture

This fixed the ajax error for me.

deanflory’s picture

Thanks for the hint. Reducing jQuery Update down from 1.7 to 1.4 (Drupal default) removed the error. This seems to have come about around D7.43 and continues to D7.50. Not sure if it's a Drupal bug/shortcoming or a contrib module but I never had this problem until recently.

tontoman’s picture

Thank you all for your comments.

I'm running D7.50 & I had the same Ajax Http error with All Autocomplete Taxonomy select list on all content types.

I narrowed down the error and in my case its was the base_url in the settings.php page & by hashing out / comment the Base_Url line it seemed to have fix my problem .... This has now made me curious as to why & any ideas and or reason would be appreciated. Thanks in advance.

Liam Morland’s picture

I recently had an error like this. It was caused by Content Security Policy. The Ajax request was blocked by "default-src 'none'". To make it work, I had to add:

connect-src 'self'