Steps to replicate the issue (include links if applicable):
Affected page: https://commons.wikimedia.org/wiki/File:Pronunciation_Cristiano_Ronaldo.wav
- IP adds caption "suuuuuuuuuuuu" in es-formal
- I click the revert button and get the error message "Caught exception of type Wikimedia\Rdbms\DBUnexpectedError"
- I try to use undo instead with the same error message
- I try to remove the text manually with the same error message
- I try to change the caption text in es-formal and is works
- I try to remove the changed caption using revert, undo and manual removal and is fails again
- I add a caption in en
- I try to remove the es-formal caption again and it works
- I try to remove the en caption and get the same error message
- I add caption in de and remove the en caption
- I try to remove the de caption and get the same error message
What happens?:
Removal of the last remaining caption on the page https://commons.wikimedia.org/wiki/File:Pronunciation_Cristiano_Ronaldo.wav is not possible. I could not replicate the error on other pages.
What should have happened instead?:
Removal the last remaining caption on a page should always work.