An AJAX HTTP request terminated abnormally

markusd1984
Forums
I'm getting this error pop up when trying to add a jpg to a course, but also in other places using the upload feature. An AJAX HTTP request terminated abnormally. Path: /file/ajax/opigno_course_image/und/0/form-glidXlkNe_ukO-JYY_IKuDZ9-ZRS_A3Bil62LclOw8 StatusText: n/A ResponseText: ReadyState: , This is after a clean install and I had this one before in my other VM environment but can't remember how I fixed it :) Any Ideas or advise how to check?
admin

Hi markusd1984,

Hi markusd1984,

There is most probably an issue with the file permissions on the server with the webserver user. Please make sure the webserver user can read write files to all the files folders. (temp folder, sites/default/files) etc.

Also, you should have more detailed error log of the issue, either on platform reports or on the server logs.

 

Best regards

markusd1984

full permission and no errors in log - how can i check further?

I gave /tmp and opigno install folder (/var/www/html/opigno) full access to webserver user www-data and made sure it has writing permission but it didn't help. No errors in apache error.log and nothing in dblog, any advise how can i check further please?
admin

What details do you have in

What details do you have in the request and response if you use the inspect network in the browser?

There should be more detailed logs somewhere.

Are you sure the webserver user has access to write on all paths configured in admin/config/media/file-system? 

Is this browser related? Have you tried different browsers?

 

Best regards

markusd1984

Problem Solved! X-Frame Options was set to always DENY

As I enabled SSL on my server, the default ssl-params.conf was set to load Header always set X-Frame-Options DENYChanged it to **SAMEORIGIN** and now it works fine :) P.S. I only found the clue when I used **Developer Tools** in Chrome and that error was displayed in the **Console** after having clicked the upload button.