I don't know if the category is correct but we have a client which currently is somehow able to produce the following error:
He can't save a page because Drupal is telling him that untranslatable fields can't be changed while editing not the current revisions.
I had a look at the revisions and saw what is also on the screenshot. Drupal thinks there are 2 concurrent current revisions.
Clearing the cache solved this problem.
The project is using Redis for all caches. Could this be the problem?
Workflows and content moderation is not used.
We have ~ 20 projects using Redis for caching and none has this problem.
I don't know where to start and look here.
Is there someone which has experienced the same?
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | Screenshot 2024-05-30 154958.png | 32.6 KB | nathan tsai |
| #5 | Screenshot 2018-10-05 12.10.14.png | 121.73 KB | bmarti44 |
| Bildschirmfoto 2018-07-25 um 17.06.20.png | 43.87 KB | yobottehg |
Comments
Comment #2
timmillwoodCan you provide some more information around how you were able to produce this and if you can easily reproduce it?
It sounds like you have a multilingual site? Can you confirm, and give details about that?
"untranslatable fields can't be changed while editing not the current revisions." is a valid error when using a module such as Content Moderation to create pending revisions, then untranslatable fields (fields that are the same across all translations) can only be edited in the current revision.
Comment #3
yobottehg commentedHei,
yes sure here are some more details:
- there are like 10 authors concurrently working on the site.
- the site has 6 languages while english is the default language.
- Drupal core version is 8.5.6, content moderation and workflows is not used.
- I tried for 2 hours to reproduce this issue with no success.
IF i would be able to reproduce this i could provide more details but thats all i have. I was searching for ways it could theoretically happen that drupal thinks there are multiple concurrent current revisions as you can see in the screenshot which happened.
Then i would have a first approach to get to more details.
Comment #4
bmarti44 commentedSame problem on our site.
We are also using redis, content moderation, APCU, D 8.5.6, no multilingual though. We've been fighting this issue for a few years now (pretty much since D 8.0.0). It only happens in production, which makes me thing it requires the site either being under load, or it requires multiple people to be publishing concurrently on the site.
I would be more than happy to also share of list of all modules installed, and all services being used to help debug.
Comment #5
bmarti44 commentedAdding a screenshot. Also spoke with editorial, typically one editor will control one instance of a content type at a time. I'm also adding our composer.json to help triage.
Comment #15
pameeela commentedThank you for reporting this problem. We rely on issue reports like this one to resolve bugs and improve Drupal core.
There hasn't been any new info or reports of this in six years, and it never had clear steps to reproduce. Does anyone have updated info on whether it is fixed or steps to reproduce it? If not provided within ~3 months, this issue will be closed.
Thanks!
Comment #16
nathan tsai commentedOkay, I'm running into this problem with media.
Some specs:
When a user added 8 media items, only 3 of them experienced this bug.
And even after clearing the cache, this problem remained.
Comment #17
heikkiy commentedWe have encountered this issue in at least two client projects. While investigating the issue, the issue can be fixed temporarily by clearing caches and this allows the content to be saved again. But after the content is saved again, the second revision is visible again and it blocks saving the content a second time with the same error related to untranslated fields not being editable.
Comment #18
nathan tsai commentedMore details re: media revisions numbers not being accurate.
(Note: I'm using Drupal 10.3.)
So, what's happening is that when a media item is loaded, it's not loading the latest revision.
E.g. When there are two revisions 454 and 455, for some reason the system is loading 454 by default (instead of 455).
--
Also, this code makes the system act really strange. Specifically, after running this code, the newest revision ID is not displayed on the new media revision UI (mentioned here: https://www.drupal.org/node/3366630).
Comment #19
smustgrave commentedCan issue summary be updated with steps to reproduce if still an issue.
Comment #20
bdunphy commentedThis is an issue as reported by 2 of our clients. I haven't been able to determine the exact process / steps to reproduce based on the information received. I'll update here once I'm able to reproduce.
Comment #21
smustgrave commentedGoing to close out but if anyone has concrete steps to reproduce we can re-open.
Comment #22
bdunphy commentedI know this has closed but yet again - here I report that this happened again with a couple client websites. Trying to track down a way to reliably reproduce but the bug is there. Multiple concurrent current revisions creates issues in content management.