Page MenuHomePhabricator

PHP Deprecated: Use of TablePager::getBody Called from SpecialCentralNoticeBanners::showBannerEditor
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Use of TablePager::getBody was deprecated in MediaWiki 1.24. [Called from SpecialCentralNoticeBanners::showBannerEditor]
error.stack_trace
from /srv/mediawiki/php-1.41.0-wmf.24/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(539)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.41.0-wmf.24/includes/debug/MWDebug.php(383): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.41.0-wmf.24/includes/debug/MWDebug.php(354): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.41.0-wmf.24/includes/debug/MWDebug.php(235): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.41.0-wmf.24/includes/GlobalFunctions.php(774): MWDebug::deprecated(string, string, string, integer)
#5 /srv/mediawiki/php-1.41.0-wmf.24/includes/pager/TablePager.php(80): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.41.0-wmf.24/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(539): TablePager->getBody()
#7 /srv/mediawiki/php-1.41.0-wmf.24/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(95): SpecialCentralNoticeBanners->showBannerEditor()
#8 /srv/mediawiki/php-1.41.0-wmf.24/includes/specialpage/SpecialPage.php(701): SpecialCentralNoticeBanners->execute(string)
#9 /srv/mediawiki/php-1.41.0-wmf.24/includes/specialpage/SpecialPageFactory.php(1566): SpecialPage->run(string)
#10 /srv/mediawiki/php-1.41.0-wmf.24/includes/MediaWiki.php(344): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#11 /srv/mediawiki/php-1.41.0-wmf.24/includes/MediaWiki.php(942): MediaWiki->performRequest()
#12 /srv/mediawiki/php-1.41.0-wmf.24/includes/MediaWiki.php(591): MediaWiki->main()
#13 /srv/mediawiki/php-1.41.0-wmf.24/index.php(50): MediaWiki->run()
#14 /srv/mediawiki/php-1.41.0-wmf.24/index.php(46): wfIndexMain()
#15 /srv/mediawiki/w/index.php(3): require(string)
#16 {main}
Notes
  • Seems to have started when we moved meta to 1.41.0-wmf.24
  • Happens for many different URLs, not limited to any specific banner

Details

Request URL
https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/Edit/*

Event Timeline

Also called in CentralNotice::outputListOfNotices

Error
labels.normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Use of TablePager::getBody was deprecated in MediaWiki 1.24. [Called from CentralNotice::outputListOfNotices]
error.stack_trace
from /srv/mediawiki/php-1.41.0-wmf.24/extensions/CentralNotice/includes/specials/CentralNotice.php(141)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.41.0-wmf.24/includes/debug/MWDebug.php(383): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.41.0-wmf.24/includes/debug/MWDebug.php(354): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.41.0-wmf.24/includes/debug/MWDebug.php(235): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.41.0-wmf.24/includes/GlobalFunctions.php(774): MWDebug::deprecated(string, string, string, integer)
#5 /srv/mediawiki/php-1.41.0-wmf.24/includes/pager/TablePager.php(80): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.41.0-wmf.24/extensions/CentralNotice/includes/specials/CentralNotice.php(141): TablePager->getBody()
#7 /srv/mediawiki/php-1.41.0-wmf.24/extensions/CentralNotice/includes/specials/CentralNotice.php(107): CentralNotice->outputListOfNotices()
#8 /srv/mediawiki/php-1.41.0-wmf.24/includes/specialpage/SpecialPage.php(701): CentralNotice->execute(NULL)
#9 /srv/mediawiki/php-1.41.0-wmf.24/includes/specialpage/SpecialPageFactory.php(1566): SpecialPage->run(NULL)
#10 /srv/mediawiki/php-1.41.0-wmf.24/includes/MediaWiki.php(344): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#11 /srv/mediawiki/php-1.41.0-wmf.24/includes/MediaWiki.php(942): MediaWiki->performRequest()
#12 /srv/mediawiki/php-1.41.0-wmf.24/includes/MediaWiki.php(591): MediaWiki->main()
#13 /srv/mediawiki/php-1.41.0-wmf.24/index.php(50): MediaWiki->run()
#14 /srv/mediawiki/php-1.41.0-wmf.24/index.php(46): wfIndexMain()
#15 /srv/mediawiki/w/index.php(3): require(string)
#16 {main}

Change 954113 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/CentralNotice@master] Migrate calls to TablePager::getBody to ::getBodyOutput

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

Change 954113 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@master] Migrate calls to TablePager::getBody to ::getBodyOutput

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