Page MenuHomePhabricator

Fatal error: Cannot declare class ParserOptions
Closed, InvalidPublicBUG REPORT

Assigned To
None
Authored By
Novem_Linguae
Oct 26 2024, 6:55 PM
Referenced Files
F57646531: image.png
Oct 26 2024, 6:55 PM
F57646536: image.png
Oct 26 2024, 6:55 PM
F57646534: image.png
Oct 26 2024, 6:55 PM

Description

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

  • LocalSettings.php config:
wfLoadExtension( 'SecurePoll' );
$wgGroupPermissions['sysop']['securepoll-create-poll'] = true;
$wgGroupPermissions['electionadmin'] = [];
$wgSecurePollSingleTransferableVoteEnabled = true;
  • Create a histogram range poll with the following settings

image.png (867×771 px, 29 KB)

image.png (914×796 px, 32 KB)

  • Wait until it opens
  • Try to vote

What happens?:

image.png (155×1 px, 25 KB)

What should have happened instead?:

  • Vote page loads

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

Other information (browser name/version, screenshots, etc.):

Event Timeline

This is likely not a problem specific to this extension. The ParserOptions name in the extension was recently updated to use namespaced name (c50f1e0dcbdf), so it's likely same issue with T378006. Please update your core checkout to include https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1082540 and see if it resolves it.

cd mediawiki; git checkout master; git pull didn't fix it. Neither did cd mediawiki/extensions/SecurePoll; git checkout master; git pull. However running my mediawiki-from-scratch.sh script fixed it. So I agree that something somewhere got out of sync with the latest alpha versions (composer? npm? Vector skin? database?).

Anyway, nothing to fix here. Closing.