Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When editing a node in a different language (say Swedish) and you have English as administration language, uploading a file to a field will cause the node to save instantly. If you try to save the node using the 'save' button you will get 'The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved." error message.
Comment | File | Size | Author |
---|---|---|---|
#11 | admin-language-causes-file-uploads-to-save-node-1337558-11.patch | 542 bytes | botris |
Comments
Comment #1
betadog CreditAttribution: betadog commentedI second that. The "Add new file" section disappears as well after adding one file/image. A reload of the page brings it back and files are being saved though.
Glad I found this post, I nearly lost my mind on this one. After disabling Admin Language the upload form behaves normal again.
Comment #2
liveflow CreditAttribution: liveflow commentedI also disabled the module, because it does not give the option to delete the file and upload the new one. The first time click on "Remove" - a message of success, but it appears the same field in a second (not admin) language. Click a second time to "remove" - and the file is deleted. After that, save the node fails.
Comment #3
dmitrit CreditAttribution: dmitrit commentedI fixed it by adding "file/ajax/*" pages to the module settings.
Comment #4
opi#3 works. Thanks for the tip. (But it's still strange... )
Comment #5
planctus CreditAttribution: planctus commented#3 worked for me too..
Da.
Comment #6
tsi CreditAttribution: tsi commentedJust spent a few hours figuring this out and stumbled upon the solution here.
I'd say, remove -
from the default list, at least until this is resolved.
Bumping up to major because this bug has implications on core functionality and because this is very hard to trace.
PS Marking #1648918: cant remove images from fields when admin_llanguage is active as dup.
Comment #7
hkirsman CreditAttribution: hkirsman commented#3 works!
Just a little shortcut - here's the admin page: admin/config/regional/language/admin_language
Comment #8
botrisConfirming #3 works
Comment #9
cesarmiquel CreditAttribution: cesarmiquel commentedThis is a nasty bug. I found if after a lot of lost time and once I tracked it to this module I found this issue quickly. Thanks for the workaround/fix @dmitrit! Indeed #3 works like a charm.
Not sure about #6. In my case I would have explicitely added node/add/* and would have stumbled into this bug anyway. Why not add file/ajax/* to the defaults? I can submit a patch quickly. It's still not fool proof but I think its a bit better. It can save others a lot of suffering. :-)
Comment #10
panayotis CreditAttribution: panayotis commentedHi!
Would like to implement #3. However on my fresh install (7.15) the settings page is not served. It keeps on displaying the admin/config/regional/language page.
UPDATE!
Fixed it! It's the overlay ...
Comment #11
botrisHereby a patch for the solution in #3
Even though is a very small patch, I think it's necessary to get this committed as it's a hard bug to track down.
Comment #12
wusel CreditAttribution: wusel commented#3 works for me too. Thanks for the tip. (But it's still strange... )
Please update soon.
Thank you very much for this great module.
Comment #13
tsi CreditAttribution: tsi commented#11 solves the issue.
Comment #14
wusel CreditAttribution: wusel commentedComment #15
wulff CreditAttribution: wulff commentedThanks for the patch. I've committed #11 to the 7.x-1.x branch.
Comment #17
HaiNguyen007 CreditAttribution: HaiNguyen007 commentednew issue related: Can't save node on node-edit-form when delete an image field in a node have language not same as admin lanuage