Hi, every time i try to choose and upload picture in content i get

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /mysite/?q=en/file/ajax/field_slideshow_image/und/form-ESe-qn-oh9D4OVpLClBz2wTv1mHUxaTWHmj2hi5V3aw
StatusText: n/a
ResponseText: The page cannot be displayed because an internal server error has occurred.
ReadyState: undefined

Can anyone help me? Google didn't help.

Comments

absoludo’s picture

Have a look in logs, is something there? (admin/reports/dblog)

M456’s picture

after unsuccesful operation i get two messages first is The specified file temporary://fil81B5.tmp could not be copied to public://js/wysiwyg/wysiwyg_tinymce_fDTU0foRbKCIwjnDXW9_gr_H1dQWVb_taZFDoFPRuWo.js. and second Warning: move_uploaded_file(C:\inetpub\wwwroot\mysite\sites\default\files/home_10.jpg): failed to open stream: Permission denied in drupal_move_uploaded_file() (line 1601 of C:\inetpub\wwwroot\mysite\includes\file.inc).

absoludo’s picture

You should check if your webserver has enough rights to the public folder.
Both messages tell you that Drupal could not write to
C:\inetpub\wwwroot\mysite\sites\default\files

Also I noticed different usage of slashes in your filepaths. That should also be fixed.
Linux & OSX uses the /.
Windows uses the \.

M456’s picture

Thanks, problem was in rights.

alisoncc’s picture

Slightly resurrecting this issue with some more, what I think is, pertinent information.

I have been getting Ajax requests terminating abnormally at odd intervals, and it has taken me quite a few days to tie it down. Mod_fcgid.c is central to the Fast CGI interface used for uploading images etc. The Default setting in fcgid.conf is for a maximum transfer of 131,072 - bits, bytes whatever. Thus MaxRequestLen = 131072. This needs to be significantly increased to handle image uploads in Drupal. A figure quoted elsewhere is MaxRequestLen = 15728640.

Setting max file size to 4MB is all very well, but if the fcgid can only transfer 256KB without returning an error to the Ajax handler then an Ajax alert will be generated.

musthafa@matratech.com’s picture

Changing the fastcgi MaxRequestLen helped!

wes_mushir’s picture

just install the multiupload module the problem will solve.

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..

Satraa’s picture

Hi,

Did you get any solution to your problem? I'm facing a similar one.

m_dimitris’s picture

despite my efforts I havent been able to resolve it yet..The only error I see in my logs is this one:

Exception: Google API returned bad status.\nStatus: REQUEST_DENIED in geocoder_google() (line 69 of /var/www/vhosts/atractos.com/httpdocs/sites/all/modules/geocoder/plugins/geocoder_handler/google.inc).

So I assume it has to do something with this but again I cant be sure.Did you have any solution or any idea where we could look over?

amonphp’s picture

Dear Sir,
Try to make the php version at the website similar to the one on your localhost, this works with me

Sahil Gupta’s picture

It can be due to filename and also you can resolve it by a contributed module. Here is the posted solution
http://techrappers.com/post/327/ajax-http-request-terminated-abnormally-...

Nathan Tsai’s picture

I got an error when I tried uploading two files with the same file name, that might be it.

SebaZ’s picture

I think it's a problem with X-Frame-Options as I mentioned there
https://www.drupal.org/node/2876109#comment-12230334