List of steps to reproduce (step by step, including full links if applicable):
- Install MediaWiki 1.36 and AccessControl 4.1.
- Create Template:Stub.
- Create a page that transcludes this template but refers to it in short form as {{Stub}}.
- Open the page.
What happens?:
The page is completely inaccessible: to view, but also to edit or search.
InvalidArgumentException: The given PageIdentity does not represent a proper page Backtrace: from /app/includes/page/WikiPageFactory.php(59) #0 /app/includes/page/WikiPage.php(211): MediaWiki\Page\WikiPageFactory->newFromTitle() #1 /app/extensions/AccessControl/AccessControl.hooks.php(946): WikiPage::factory() #2 /app/extensions/AccessControl/AccessControl.hooks.php(408): AccessControlHooks::getContentPage() #3 /app/extensions/AccessControl/AccessControl.hooks.php(281): AccessControlHooks::allRightTags() #4 /app/includes/HookContainer/HookContainer.php(338): AccessControlHooks::onuserCan() [...]
What should have happened instead?:
If the page instead transcludes the template by its full form {{Template:Stub}}, it will be displayed correctly.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Product | Version |
---|---|
MediaWiki | 1.36.1 |
PHP | 7.4.22 (fpm-fcgi) |
MySQL | 8.0.23 |
ICU | 66.1 |
Lua | 5.1.5 |
Extension | Version |
AccessControl | 4.1 |