Page MenuHomePhabricator

Missing message "jsonconfig-blocked-page-creation"
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
"You do not have permission to create this page, for the following reason:

⧼jsonconfig-blocked-page-creation⧽
"

What should have happened instead?:

A proper message was displayed

Event Timeline

Looking at includes/JCHooks.php $$481-482 this is meant to be displayed when the page title does not match the JSONConfig page title pattern configured for the wiki.

Something like The page title you have specified does not match any of the patterns configured in the JSONConfig extension for this wiki. would be correct from a technical point of view, but perhaps not too descriptive? The user would then wonder which are those patterns, and the answer is not in JSONConfig but in CommonSettings.php (look for $wgJsonConfigs).

Change 965886 had a related patch set uploaded (by MarcoAurelio; author: MarcoAurelio):

[mediawiki/extensions/JsonConfig@master] Add missing `jsonconfig-blocked-page-creation` message

https://gerrit.wikimedia.org/r/965886

MarcoAurelio changed the task status from Open to In Progress.Oct 15 2023, 4:00 PM
MarcoAurelio moved this task from unsorted/backlog to working on on the User-MarcoAurelio board.

Change 965886 merged by jenkins-bot:

[mediawiki/extensions/JsonConfig@master] Add missing `jsonconfig-blocked-page-creation` message

https://gerrit.wikimedia.org/r/965886