Page MenuHomePhabricator

Use of Title::userCan was deprecated in MediaWiki 1.33. [Called from PFHelperFormAction::displayTab
Closed, ResolvedPublic

Description

[2020-02-25 08:51:01] error.WARNING: [7ea97cd16a36e2cea91029b6] /wiki/Template:Translatable_template/en   ErrorException from line 333 of /home/developer/mediawiki/workdir/includes/debug/MWDebug.php: PHP Deprecated: Use of Title::userCan was deprecated in MediaWiki 1.33. [Called from PFHelperFormAction::displayTab in /home/developer/mediawiki/workdir/extensions/PageForms/includes/PF_HelperFormAction.php at line 79] {"exception":"[object] (ErrorException(code: 0): PHP Deprecated: Use of Title::userCan was deprecated in MediaWiki 1.33. [Called from PFHelperFormAction::displayTab in /home/developer/mediawiki/workdir/extensions/PageForms/includes/PF_HelperFormAction.php at line 79] at /home/developer/mediawiki/workdir/includes/debug/MWDebug.php:333)
[stacktrace]
#0 [internal function]: MWExceptionHandler::handleError(16384, 'Use of Title::u...', '/home/developer...', 333, Array)
#1 /home/developer/mediawiki/workdir/includes/debug/MWDebug.php(333): trigger_error('Use of Title::u...', 16384)
#2 /home/developer/mediawiki/workdir/includes/debug/MWDebug.php(265): MWDebug::sendMessage('Use of Title::u...', Array, 'deprecated', 16384)
#3 /home/developer/mediawiki/workdir/includes/GlobalFunctions.php(1047): MWDebug::deprecated('Title::userCan', '1.33', 'MediaWiki', 3)
#4 /home/developer/mediawiki/workdir/includes/Title.php(2414): wfDeprecated('Title::userCan', '1.33')
#5 /home/developer/mediawiki/workdir/extensions/PageForms/includes/PF_HelperFormAction.php(79): Title->userCan('edit')
#6 /home/developer/mediawiki/workdir/includes/Hooks.php(174): PFHelperFormAction::displayTab(Object(SkinVector), Array)
#7 /home/developer/mediawiki/workdir/includes/Hooks.php(234): Hooks::callHook('SkinTemplateNav...', Array, Array, NULL, 'PFHelperFormAct...')
#8 /home/developer/mediawiki/workdir/includes/skins/SkinTemplate.php(1154): Hooks::runWithoutAbort('SkinTemplateNav...', Array)
#9 /home/developer/mediawiki/workdir/includes/skins/SkinTemplate.php(452): SkinTemplate->buildContentNavigationUrls()
#10 /home/developer/mediawiki/workdir/includes/skins/SkinTemplate.php(219): SkinTemplate->prepareQuickTemplate()
#11 /home/developer/mediawiki/workdir/includes/OutputPage.php(2593): SkinTemplate->outputPage()
#12 /home/developer/mediawiki/workdir/includes/MediaWiki.php(978): OutputPage->output(true)
#13 /home/developer/mediawiki/workdir/includes/MediaWiki.php(991): MediaWiki->{closure}()
#14 /home/developer/mediawiki/workdir/includes/MediaWiki.php(534): MediaWiki->main()
#15 /home/developer/mediawiki/workdir/index.php(47): MediaWiki->run()
#16 {main}

Event Timeline

Restricted Application added subscribers: Liuxinyu970226, Aklapper. · View Herald TranscriptFeb 25 2020, 10:00 AM
Restricted Application added a project: User-DannyS712. · View Herald TranscriptFeb 25 2020, 6:27 PM
DannyS712 moved this task from Unsorted to Next on the User-DannyS712 board.Feb 25 2020, 6:27 PM

Sorry about that. I fixed this, and the other calls to useCan and isAllowed(), in 47c680f124e8.

Yaron_Koren closed this task as Resolved.Feb 25 2020, 7:08 PM
DannyS712 added a subscriber: DannyS712.