Drupal Views: "An AJAX HTTP request terminated abnormally"

How to resolve "An AJAX HTTP request terminated abnormally" error on drupal?

As a regular Drupaller I come across quite a few errors now and again. Fortunately (although I get this one quite a bit in views) I do know what I am doing wrong. It is all down to the $base_url that you have set in settings.php. If you have set it (uncommented the # from http://www.example.com) and you attempt to use it from a non authenticated domain you will get this error. For example if you have set the $base_url as "http://www.mydomain.co.uk" but you are using views from the domain "http://mydomain.co.uk" then you will encounter problems. Simple change the url to the correct one!

I have written out the instructions in a process format for those looking for a walkthrough.

  1. Open /sites/$new_url/settings.php in your favourite text editor.
  2. Find this line # $base_url = 'http://www.example.com';
  3. Add the url of your domain in place of example.com. [http://www.domain.co.uk]
  4. Save the file.
  5. Clear cache (either from drush or Configuration > Performance > Clear Cache) and try again.
  6. Now make sure that you don't use the incorrect domain!

Happy drupalling.

Image

Comments

Submitted by Anna Harris (not verified) on

I have facing the same problem. By following your steps i got the solution. Thanks for giving solution for it.

Submitted by Dan M. (not verified) on

You saved me a ton of aggravation this afternoon, just after I updated to v7.22. I thought this would ruin my whole weekend. Thanks!

Submitted by ConwayJordan18 (not verified) on

It's well known that money makes people disembarrass. But how to act if someone does not have money? The one way only is to receive the <a href="http://goodfinance-blog.com/topics/home-loans">home loans</a> and just small business loan.

Add comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.