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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Koen.Pasman’s picture

Patch added.

steinmb’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev
Status: Active » Needs review
FileSize
459 bytes

Hi.
Not able to apply patch, though this might fix.

Koen.Pasman’s picture

Ah thanks, I guess I shouldn't let PHPStorm generate my patches :)

seanB’s picture

I 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.

valderama’s picture

When 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.

seanB’s picture

Status: Needs review » Reviewed & tested by the community
spgd01’s picture

This 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.

Koen.Pasman’s picture

Are you sure that your error is related to this problem?

MrMiso’s picture

Had same problems as @spdg01 but adding media/ajax/* to admin_language page worked for me.

joseph.olstad’s picture

@MrMiso , so you are confirming patch #2 is good? Want this committed?

joseph.olstad’s picture

Status: Reviewed & tested by the community » Fixed

Fixed, 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.

MrMiso’s picture

@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.

Status: Fixed » Closed (fixed)

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