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
Comment | File | Size | Author |
---|---|---|---|
authcache settings.jpg | 333.45 KB | IWasBornToWin | |
authcache ajax.jpg | 598.21 KB | IWasBornToWin |
Comments
Comment #1
IWasBornToWin CreditAttribution: IWasBornToWin commentedComment #1.0
IWasBornToWin CreditAttribution: IWasBornToWin commentedCorrected image files
Comment #2
znerol CreditAttribution: znerol commentedThe following message is hidden within the bunch of stuff displayed in the Ajax error:
.
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:
Comment #3
IWasBornToWin CreditAttribution: IWasBornToWin commentedI 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.
Comment #4
znerol CreditAttribution: znerol commentedI added the ajax-upload path to the list of paths excluded by default. The rest of the issue is unrelated to authcache, I assume.
Commits:
Comment #5.0
(not verified) CreditAttribution: commentedtried to correct screenshots again
Comment #6
RAFA3L CreditAttribution: RAFA3L commentedI'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
Comment #7
znerol CreditAttribution: znerol commentedYou 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
andpost_max_size
.Comment #8
RAFA3L CreditAttribution: RAFA3L commentedThanks 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.
Comment #9
RAFA3L CreditAttribution: RAFA3L commentedI 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.
Comment #10
RAFA3L CreditAttribution: RAFA3L commented@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:
"authcache":{"q":"file\/ajax\/field_imagen_principal\/und\/0\/form-4UTs-2LZHQJ-BCROFEahBAqIVgVFDs_fDLBtH-4oSuw"
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.