danmichaelo / croptool

Tool for cropping images at Wikimedia Commons and other Wikimedia wikis
https://croptool.toolforge.org/
Other
46 stars 23 forks source link

Error message when cropping protected images #119

Open devsikander opened 6 years ago

devsikander commented 6 years ago

Upload failed! [api] Received error: cascadeprotected : This page has been protected from editing because it is transcluded in the following page, which is protected with the "cascading" option turned on: * [[:Commons:Auto-protected files/wikipedia/en]]

"Upload failed" is incorrect because the new cropped image did upload to Commons, but editing the source image to add the {{Image extracted}} information failed because of image page protection.

https://commons.wikimedia.org/wiki/File:Donna_Strickland_-_2017_(cropped).jpg from https://commons.wikimedia.org/wiki/File:Donna_Strickland.jpg

danmichaelo commented 6 years ago

Right, should be "Edit failed" or something more explanatory. Will fix