Page MenuHomePhabricator

Page creation log inserted even if $wgPageCreationLog is false
Closed, ResolvedPublicBUG REPORT

Description

Commons and Wikidata has $wgPageCreationLog disabled (see discussion at T12331), but page creation logs are still inserted. They displayed incorrectly because of T379527: Page creation log become unknown once $wgPageCreationLog is disabled

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

What happens?:

  • x performed unknown action "create/create" on Category:Stowe Pool
  • y performed unknown action "create/create" on File:Марына Васько. 2022 (02).jpeg

What should have happened instead?:
It should not be an unknown action

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
The log types also show no "Page creation log" listed in the menu.

Screenshot 2024-11-11 at 10.54.43.png (1×1 px, 183 KB)

See also: T379527: Page creation log become unknown once $wgPageCreationLog is disabled, T288346: Enable non-file page creation logs on Wikimedia Commons

Event Timeline

Bugreporter renamed this task from Commons missing its page creation log to Page creation log inserted even if $wgPageCreationLog is false.Mon, Nov 11, 10:44 AM
Bugreporter edited projects, added MediaWiki-Logevents; removed Commons.

Change #1089877 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@master] storage: restore passing of $wgPageCreationLog to PageUpdater

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

There was a deprecation and undeprecation of PageUpdater::setUsePageCreationLog() in T377229. The undeprecation was a partial revert and did not restore passing the $wgPageCreationLog to the PageUpdater, among other things. The default value in PageUpdater is true, so the log gets created always.

For the 'unknown action', it shows that because there's no formatter since the variable is false; but the entry is nonetheless erroneously created.

Ammarpad added a subscriber: daniel.

Change #1089877 merged by jenkins-bot:

[mediawiki/core@master] storage: restore passing of $wgPageCreationLog to PageUpdater

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

Not sure who can/should do that, maybe @Reedy. But if not, this will be out with wmf.4 next week.

Yes it was not in 1.43