Last modified: 2013-06-06 10:09:44 UTC
When a sysop tried to protect [[de:Kadhi (Gericht)]] for creation, a database error occured: A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: INSERT INTO `page_restrictions` (pr_page,pr_type,pr_level,pr_cascade,pr_expiry) VALUES ('0','aft','aft-noone','0','infinity') Function: DatabaseBase::insert Error: 1062 Duplicate entry '0-aft' for key 'PRIMARY' (10.64.32.28) For me this seems not to be an issue with upgrading, but with AFT. If AFT protections work on page ids it doesn't make sense to protect missing articles anyway.
Michael, thanks for copying this from https://de.wikipedia.org/w/index.php?title=Wikipedia:Fragen_zur_Wikipedia&oldid=119233377#Schutz_vor_Neuanlage - I was just about to do the same!
Related URL: https://gerrit.wikimedia.org/r/67065 (Gerrit Change I77320d6354d688c60f6fb5d2ebe8a42d4b46a3a7)
Thanks for the report. I just pushed a patch to gerrit (that will ignore the AFT protection for non-existing pages) & we'll aim to deploy it this week.
https://gerrit.wikimedia.org/r/67065 (Gerrit Change I77320d6354d688c60f6fb5d2ebe8a42d4b46a3a7) | change APPROVED and MERGED [by jenkins-bot]
*** Bug 49204 has been marked as a duplicate of this bug. ***