Page MenuHomePhabricator

Fix MediaWiki 1.46 SpecialPage constructor deprecations
Closed, ResolvedPublic

Assigned To
Authored By
• HMonroy
Apr 22 2026, 1:43 AM
Referenced Files
F78589288: 2026-04-28_16-19-02.png
Apr 28 2026, 11:26 PM
F78589250: 2026-04-28_16-16-54.webm
Apr 28 2026, 11:26 PM
F78588521: 2026-04-28_15-43-37.webm
Apr 28 2026, 11:26 PM
F78588485: 2026-04-28_15-47-26.webm
Apr 28 2026, 11:26 PM
F78588380: 2026-04-28_15-38-43.webm
Apr 28 2026, 11:26 PM
F78588185: 2026-04-28_15-37-07.webm
Apr 28 2026, 11:26 PM
F78588142: 2026-04-28_15-59-55.webm
Apr 28 2026, 11:26 PM
F78588025: 2026-04-28_15-57-37.webm
Apr 28 2026, 11:26 PM

Description

Fix deprecation notice shown on wish and focus area pages:

Deprecated: Use of MediaWiki\SpecialPage\SpecialPage constructor parameters $restriction, $listed, $function, $file and $includable was deprecated in MediaWiki 1.46. [Called from MediaWiki\Extension\CommunityRequests\AbstractWishlistSpecialPage::__construct in /var/www/html/w/extensions/CommunityRequests/includes/AbstractWishlistSpecialPage.php at line 38] in /var/www/html/w/includes/Debug/MWDebug.php on line 372

Derived Requirement

  1. Wish and focus area pages must load without displaying any PHP deprecation warnings to the user.
  2. The system must not trigger deprecation warnings related to the MediaWiki\SpecialPage\SpecialPage constructor when accessing wishlist-related special pages.
  3. All wishlist and focus area special pages must render successfully without errors or debug output.
  4. The user experience on wishlist and focus area pages must remain unaffected while ensuring compatibility with MediaWiki 1.46.

**Test Result - Meta Beta*

Status: ✅ PASS / ❓ Need More Info / ❌ FAIL
Environment: Meta Beta
OS: macOS Tahoe 26.4.1
Browser: Chrome 147
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Verify no deprecation warning appears on wish pages

  1. Open the wiki.
  2. Navigate to a wish page under the CommunityRequests extension.
  3. Observe the page during load and after rendering completes.
  4. Check for any visible warning or debug message.
  5. ✅❓❌⬜ AC1: No deprecation warning related to SpecialPage constructor is displayed on the wish page.

Test Case 2: Verify no deprecation warning appears on focus area pages

  1. Open the wiki.
  2. Navigate to a focus area page under the CommunityRequests extension.
  3. Observe the page during load and after rendering completes.
  4. Check for any visible warning or debug message.
  5. ✅❓❌⬜ AC2: No deprecation warning related to SpecialPage constructor is displayed on the focus area page.

Test Case 3: Verify pages render without debug output

  1. Open the wiki.
  2. Navigate to multiple wishlist-related pages including wish and focus area pages.
  3. Observe page content and layout.
  4. Check for any debug output, stack traces, or PHP warnings.
  5. ✅❓❌⬜ AC3: Pages render fully without any debug output or PHP warnings.

Test Case 4: Verify no console or network errors related to deprecation

  1. Open the browser developer tools.
  2. Navigate to a wish page.
  3. Check the Console and Network tabs during page load.
  4. Look for any deprecation-related messages.
  5. ✅❓❌⬜ AC4: No deprecation-related errors or warnings appear in the console or network logs.

Test Case 5: Verify normal functionality of wishlist pages

  1. Open the wiki.
  2. Navigate to a wish page.
  3. Interact with page elements such as links or UI controls.
  4. Confirm that content loads and behaves as expected.
  5. ✅❓❌⬜ AC5: Wishlist and focus area pages function correctly without errors after the fix.

QA Results - Meta Beta

Event Timeline

Change #1276101 had a related patch set uploaded (by HMonroy; author: HMonroy):

[mediawiki/extensions/CommunityRequests@master] Fix depraction warning shown in wish and focus area pages

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

• HMonroy renamed this task from Fix deprecation warning to Fix Mediawiki 1.46 deprecation warning.Apr 22 2026, 1:49 AM
• HMonroy changed the task status from Open to In Progress.Apr 22 2026, 1:55 AM
• Aklapper renamed this task from Fix Mediawiki 1.46 deprecation warning to Fix Mediawiki 1.46 deprecation warning about Use of MediaWiki\SpecialPage\SpecialPage.Apr 22 2026, 7:54 AM

Change #1276101 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Fix Mediawiki 1.46 deprecation warning in wish and focus area pages

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

• HMonroy changed the task status from In Progress to Open.Apr 22 2026, 6:46 PM

@HMonroy Can you review AC5, regarding on why it's not translating?

Test Result - Meta Beta

Status: ✅ PASS / ❓ Need More Info
Environment: Meta Beta
OS: macOS Tahoe 26.4.1
Browser: Chrome 147
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/FA13
https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W50
https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W47

Test Steps

Test Case 1: Verify no deprecation warning appears on wish pages

  1. Open the wiki.
  2. Navigate to a wish page under the CommunityRequests extension.
  3. Observe the page during load and after rendering completes.
  4. Check for any visible warning or debug message.
  5. ✅ AC1: No deprecation warning related to SpecialPage constructor is displayed on the wish page.

Test Case 2: Verify no deprecation warning appears on focus area pages

  1. Open the wiki.
  2. Navigate to a focus area page under the CommunityRequests extension.
  3. Observe the page during load and after rendering completes.
  4. Check for any visible warning or debug message.
  5. ✅ AC2: No deprecation warning related to SpecialPage constructor is displayed on the focus area page.

Test Case 3: Verify pages render without debug output

  1. Open the wiki.
  2. Navigate to multiple wishlist-related pages including wish and focus area pages.
  3. Observe page content and layout.
  4. Check for any debug output, stack traces, or PHP warnings.
  5. ✅ AC3: Pages render fully without any debug output or PHP warnings.

Test Case 4: Verify no console or network errors related to deprecation

  1. Open the browser developer tools.
  2. Navigate to a wish page.
  3. Check the Console and Network tabs during page load.
  4. Look for any deprecation-related messages.
  5. ✅ AC4: No deprecation-related errors or warnings appear in the console or network logs.

Test Case 5: Verify normal functionality of wishlist pages

  1. Open the wiki.
  2. Navigate to a wish page.
  3. Interact with page elements such as links or UI controls.
  4. Confirm that content loads and behaves as expected.
  5. ❓AC5: Wishlist and focus area pages function correctly without errors after the fix.

✅ Creating New

WishFocus Area

❓ Translation is not working?

2026-04-28_16-19-02.png (1,330×534 px, 175 KB)
GMikesell-WMF changed the task status from Open to In Progress.Apr 28 2026, 11:27 PM
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from QA to In Development on the Community-Tech (Sea Lion Squad) board.
Reedy renamed this task from Fix Mediawiki 1.46 deprecation warning about Use of MediaWiki\SpecialPage\SpecialPage to Fix MediaWiki 1.46 SpecialPage constructor deprecations.Apr 28 2026, 11:28 PM

I'm dropping a phatility report here to make it easy for other log watchers to find this ticket

Error
  • mwversion: 1.46.0-wmf.26
  • timestamp: 2026-04-29T20:06:23.433Z
  • phpversion: 8.3.30
  • reqId: c3478f6e-a9b2-454b-b770-602b75e62769
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Use of MediaWiki\SpecialPage\SpecialPage constructor parameters $restriction, $listed, $function, $file and $includable was deprecated in MediaWiki 1.46. [Called from MediaWiki\SpecialPage\UnlistedSpecialPage::_
FrameLocationCall
from/srv/mediawiki/php-1.46.0-wmf.26/includes/SpecialPage/UnlistedSpecialPage.php(39)
#0[internal function]MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.46.0-wmf.26/includes/Debug/MWDebug.php(372)trigger_error(string, int)
#2/srv/mediawiki/php-1.46.0-wmf.26/includes/Debug/MWDebug.php(342)MediaWiki\Debug\MWDebug::sendRawDeprecated(string, bool, string)
#3/srv/mediawiki/php-1.46.0-wmf.26/includes/Debug/MWDebug.php(224)MediaWiki\Debug\MWDebug::deprecatedMsg(string, string, string, int)
#4/srv/mediawiki/php-1.46.0-wmf.26/includes/GlobalFunctions.php(525)MediaWiki\Debug\MWDebug::deprecated(string, string, string, int)
#5/srv/mediawiki/php-1.46.0-wmf.26/includes/SpecialPage/SpecialPage.php(215)wfDeprecated(string, string)
#6/srv/mediawiki/php-1.46.0-wmf.26/includes/SpecialPage/UnlistedSpecialPage.php(39)MediaWiki\SpecialPage\SpecialPage->__construct(string, string)
#7/srv/mediawiki/php-1.46.0-wmf.26/extensions/LiquidThreads/includes/Pages/ThreadActionPage.php(26)MediaWiki\SpecialPage\UnlistedSpecialPage->__construct(string, string)
#8/srv/mediawiki/php-1.46.0-wmf.26/vendor/wikimedia/object-factory/src/ObjectFactory.php(220)ThreadActionPage->__construct()
#9/srv/mediawiki/php-1.46.0-wmf.26/vendor/wikimedia/object-factory/src/ObjectFactory.php(130)Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#10/srv/mediawiki/php-1.46.0-wmf.26/includes/SpecialPage/SpecialPageFactory.php(1555)Wikimedia\ObjectFactory\ObjectFactory->createObject(string, array)
#11/srv/mediawiki/php-1.46.0-wmf.26/includes/SpecialPage/SpecialPageFactory.php(1625)MediaWiki\SpecialPage\SpecialPageFactory->getPage(string)
#12/srv/mediawiki/php-1.46.0-wmf.26/includes/Search/PrefixSearch.php(159)MediaWiki\SpecialPage\SpecialPageFactory->getListedPages()
#13/srv/mediawiki/php-1.46.0-wmf.26/includes/Search/PrefixSearch.php(224)MediaWiki\Search\PrefixSearch->specialSearch(string, int, int)
#14/srv/mediawiki/php-1.46.0-wmf.26/includes/Search/SearchEngine.php(709)MediaWiki\Search\PrefixSearch->defaultSearchBackend(array, string, int, int)
#15/srv/mediawiki/php-1.46.0-wmf.26/includes/Search/SearchEngine.php(538)MediaWiki\Search\SearchEngine->simplePrefixSearch(string)
#16/srv/mediawiki/php-1.46.0-wmf.26/extensions/CirrusSearch/includes/CirrusSearch.php(430)MediaWiki\Search\SearchEngine->completionSearchBackend(string)
#17/srv/mediawiki/php-1.46.0-wmf.26/includes/Search/SearchEngine.php(520)CirrusSearch\CirrusSearch->completionSearchBackend(string)
#18/srv/mediawiki/php-1.46.0-wmf.26/includes/Search/SearchEngine.php(552)MediaWiki\Search\SearchEngine->completionSearchBackendOverfetch(string)
#19/srv/mediawiki/php-1.46.0-wmf.26/extensions/CirrusSearch/includes/CirrusSearch.php(463)MediaWiki\Search\SearchEngine->completionSearch(string)
#20/srv/mediawiki/php-1.46.0-wmf.26/includes/Rest/Handler/SearchHandler.php(170)CirrusSearch\CirrusSearch->completionSearchWithVariants(string)
#21/srv/mediawiki/php-1.46.0-wmf.26/includes/Rest/Handler/SearchHandler.php(369)MediaWiki\Rest\Handler\SearchHandler->doSearch(CirrusSearch\CirrusSearch)
#22/srv/mediawiki/php-1.46.0-wmf.26/includes/Rest/Module/Module.php(472)MediaWiki\Rest\Handler\SearchHandler->execute()
#23/srv/mediawiki/php-1.46.0-wmf.26/includes/Rest/Module/Module.php(301)MediaWiki\Rest\Module\Module->executeHandler(MediaWiki\Rest\Handler\SearchHandler)
#24/srv/mediawiki/php-1.46.0-wmf.26/includes/Rest/Router.php(484)MediaWiki\Rest\Module\Module->execute(string, MediaWiki\Rest\RequestFromGlobals)
#25/srv/mediawiki/php-1.46.0-wmf.26/includes/Rest/Router.php(443)MediaWiki\Rest\Router->doExecute(string, MediaWiki\Rest\RequestFromGlobals)
#26/srv/mediawiki/php-1.46.0-wmf.26/includes/Rest/EntryPoint.php(181)MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#27/srv/mediawiki/php-1.46.0-wmf.26/includes/MediaWikiEntryPoint.php(180)MediaWiki\Rest\EntryPoint->execute()
#28/srv/mediawiki/php-1.46.0-wmf.26/rest.php(25)MediaWiki\MediaWikiEntryPoint->run()
#29/srv/mediawiki/w/rest.php(3)require(string)
#30{main}

❓ Translation is not working?

2026-04-28_16-19-02.png (1,330×534 px, 175 KB)

I think this is the same issue we've seen before with Translation jobs failing on Beta. It can be ignored, unless we observe it in production.

@GMikesell-WMF the translation issue is not related to the deprecation warnings. We can file a separate task if the translations keep getting inconsistent. Thank you :)

Marking this task as resolved since the deprecation notice has been addressed.