I Can't add or remove an image via the ajax button while editing a node. I'm not sure if the ajax issue is because of Authcache but regardless of what settings i save in authcache page settings...the ajax error message continually shows [or i think it does] that the edited page is cached.

When I upload an image and try to save it via the ajax :attach" button I also get error message but when I save the edited node the image is saved. I am not able to remove the image, however....keep getting ajax error.

I've actually ploaced three different settings in the pages-not-to-be-cached area and this edited page still seems to be cached. I've also cleared all cache several times between settings.

See screenshots

Only local images are allowed.Only local images are allowed.



IWasBornToWin’s picture


IWasBornToWin’s picture

Issue summary:View changes

Corrected image files

znerol’s picture

The following message is hidden within the bunch of stuff displayed in the Ajax error:

An unrecoverable error occured. The uploaded file likely exceeded the maixmum file size (10 MB) that this server supports.


Another problem however is that the Authcache-JavaScript is errornously appended to the Ajax Response. Please try to add the following path to the list of pages ignored by authcache:

IWasBornToWin’s picture

I added the line...didn't correct image issue.

I disabled authcache module, was then able to remove the imabe but it still left me with the warning of the 10mb limit...these images are small.

I saved the node, the image was gone...and even with autch cache disabled it won't allow me to add other images.

I will look into media module, I updated a few weeks ago and the updated version added a table and deleted another one. I have a feeling something is going on there.

znerol’s picture

Status:Active» Fixed

I added the ajax-upload path to the list of paths excluded by default. The rest of the issue is unrelated to authcache, I assume.


Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary:View changes

tried to correct screenshots again

RAFA3L’s picture

Issue summary:View changes

I'm having the same problem, from the last week a few authenticated editors began to upload a lot of content and sometimes this is not saved.

This is the error in the log:

[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"mytheme","theme_token":"F-4fZswiEa9GQrYrThZeOPffOXvpnq__4tHhKiVKmds"},"authcache":{"q":"file\/ajax\/field_imagen_principal\/und\/0\/form-4UTs-2LZHQJ-BCROFEahBAqIVgVFDs_fDLBtH-4oSuw","cp":{"path":"\/","domain":".mydomain.com","secure":false},"cl":23.148148148148},"colorbox":{"transition":"none","speed":"350","opacity":"0.50","slideshow":false,"slideshowAuto":true,"slideshowSpeed":"2500","slideshowStart":"start slideshow","slideshowStop":"stop slideshow","current":"{current} of {total}","previous":"\u00ab Anterior","next":"Siguiente \u00bb","close":"Cerrar","overlayClose":true,"maxWidth":"98%","maxHeight":"98%","initialWidth":"300","initialHeight":"250","fixed":true,"scrolling":true,"mobiledetect":true,"mobiledevicewidth":"480px"},"simpleads":{"url":{"ckeditor":"\/simpleads\/dashboard\/ckeditor"},"modulepath":"sites\/all\/modules\/contrib\/simpleads"}},"merge":true},{"command":"insert","method":"replaceWith","selector":null,"data":"\u003Cdiv class=\u0022messages--error messages error\u0022\u003E\n\u003Ch2 class=\u0022element-invisible\u0022\u003EMensaje de error\u003C\/h2\u003E\nHa ocurrido un error irrecuperable. El archivo subido probablemente excede el tama\u00f1o de archivo m\u00e1ximo (2 MB) que admite este servidor.\u003C\/div\u003E\n","settings":null}]

At the end is the same message you say in #2 but in spanish.

I'm using Authcache 7.x-2.0-beta3 only for anonymous users and the line /file/ajax/* is in the ruleset

znerol’s picture

Ha ocurrido un error irrecuperable. El archivo subido probablemente excede el tama\u00f1o de archivo m\u00e1ximo (2 MB) que admite este servidor.

You have an upload file size of 2MB. If users try to upload files which are bigger than that, then you might get this message. You can increase the upload limit with the following PHP ini-values upload_max_filesize and post_max_size.

RAFA3L’s picture

Thanks for your quick response, yes, all the images are under 500KB and the problem persist randomly. The same image after a few attempts finally is uploaded.

RAFA3L’s picture

I did notice something weird, after upload some image this is temporarily stored in sites/default/files/ and not in the right file path. After save the content is when is moved from sites/default/files/ to sites/default/files/images/originals/ (for example)

I have a minimal drupal installed locally to test only authcache and in this the uploaded image is work fine (I think), at least is temporarily create in the right place when is uploaded.

Is a little dificult try this because the problem is in a live site and is random.

RAFA3L’s picture

@znerol you are right, I try this in a fresh Drupal without Authcache, and using the Statistics module I can see the same error in the user Track page visits after press the Upload button, but the page is saved fine. Maybe the problem is not Authcache. Sorry I thought was the same problem because in the error appear this:


and this

Ha ocurrido un error irrecuperable. El archivo subido probablemente excede el tama\u00f1o de archivo m\u00e1ximo (2 MB) que admite este servidor.