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.
I ran into problems using the admin_language module and the media popup selector on adding new nodes, see this topic: https://www.drupal.org/node/2401955
I tracked it down to being a missing administrative path in the Media module: media/ajax/*
Therefore I would like to suggest adding this as an administrative path to prevent issues with this.
Comment | File | Size | Author |
---|---|---|---|
#2 | media-add_admin_path-2401989-2.patch | 459 bytes | steinmb |
#1 | media-add_admin_path-2401989-1.patch | 640 bytes | Koen.Pasman |
Comments
Comment #1
Koen.Pasman CreditAttribution: Koen.Pasman at Aubergine IT commentedPatch added.
Comment #2
steinmb CreditAttribution: steinmb commentedHi.
Not able to apply patch, though this might fix.
Comment #3
Koen.Pasman CreditAttribution: Koen.Pasman commentedAh thanks, I guess I shouldn't let PHPStorm generate my patches :)
Comment #4
seanBI just spent 3 hours tracking an issue down to this as well. Would be nice to get this done, it was a real struggle to find this one :)
The error for end users was:
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.
Maybe this helps someone find the solution a little faster.
For now I added the admin path to the admin_language module settings manually on /admin/config/regional/language/admin_language.
Comment #5
valderama CreditAttribution: valderama at Form & Code GmbH commentedWhen using admin_language together with media one does really need this "media/ajax/*" marked as an admin path. Would be great to commit this soon.
Comment #6
seanBComment #7
spgd01 CreditAttribution: spgd01 commentedThis has not helped me. I still 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." and the node is then locked and I cannot edit it anymore. This happens more with nodes that have 200 or more images.
Comment #8
Koen.Pasman CreditAttribution: Koen.Pasman at Aubergine IT commentedAre you sure that your error is related to this problem?
Comment #9
MrMiso CreditAttribution: MrMiso commentedHad same problems as @spdg01 but adding media/ajax/* to admin_language page worked for me.
Comment #10
joseph.olstad@MrMiso , so you are confirming patch #2 is good? Want this committed?
Comment #13
joseph.olstadFixed, but I made a slight change, added if module exists for admin_language
so only adds this path if admin_language is enabled.
if this is not sufficient, please let me know.
Comment #14
MrMiso CreditAttribution: MrMiso commented@joseph.olstad I didn't apply the patch I just added the given media path through admin_language UI (for excluding) and it worked so in theory what you did should be the same.