Page MenuHomePhabricator

"Call to a member function getContent() on a non-object" when saving banner
Closed, ResolvedPublic

Description

I seem to be getting this error increasingly often when saving changes to a banner. The changes actually seem to be saved okay.

PHP fatal error in /usr/local/apache/common-local/php-1.23wmf9/extensions/CentralNotice/includes/BannerMessage.php line 55:
Call to a member function getContent() on a non-object


Version: unspecified
Severity: normal

Details

Reference
bz59871

Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz59871.
bzimport added a subscriber: Unknown Object (MLST).
Pcoombe created this task.Jan 9 2014, 5:09 PM
Reedy added a comment.Jan 9 2014, 5:14 PM

[09-Jan-2014 16:42:02] Fatal error: Call to a member function getContent() on a non-object at /usr/local/apache/common-local/php-1.23wmf9/extensions/CentralNotice/includes/BannerMessage.php on line 55
Server: mw1106
Method: POST
URL: http://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/FR2014_translations
Backtrace:
#0 /usr/local/apache/common-local/php-1.23wmf9/extensions/CentralNotice/includes/BannerMessage.php(55): BannerMessage::getContents()
#1 /usr/local/apache/common-local/php-1.23wmf9/extensions/CentralNotice/includes/HtmlFormElements/HTMLCentralNoticeBannerMessage.php(58): BannerMessage->getContents('en')
#2 /usr/local/apache/common-local/php-1.23wmf9/includes/htmlform/HTMLFormField.php(272): HTMLCentralNoticeBannerMessage->getInputHTML('Credit Card')
#3 /usr/local/apache/common-local/php-1.23wmf9/includes/htmlform/HTMLForm.php(1165): HTMLFormField->getDiv('Credit Card')
#4 /usr/local/apache/common-local/php-1.23wmf9/includes/htmlform/HTMLForm.php(1183): HTMLForm->displaySection(Array, 'mw-htmlform-ban...', 'cn-formsection-...', true)
#5 /usr/local/apache/common-local/php-1.23wmf9/extensions/CentralNotice/special/SpecialCentralNoticeBanners.php(810): HTMLForm->displaySection(Array, '', 'cn-formsection-')
#6 /usr/local/apache/common-local/php-1.23wmf9/includes/htmlform/HTMLForm.php(714): CentralNoticeHtmlForm->getBody()
#7 /usr/local/apache/common-local/php-1.23wmf9/includes/htmlform/HTMLForm.php(688): HTMLForm->getHTML(NULL)
#8 /usr/local/apache/common-local/php-1.23wmf9/extensions/CentralNotice/special/SpecialCentralNoticeBanners.php(336): HTMLForm->displayForm(NULL)
#9 /usr/local/apache/common-local/php-1.23wmf9/extensions/CentralNotice/special/SpecialCentralNoticeBanners.php(75): SpecialCentralNoticeBanners->showBannerEditor()
#10 /usr/local/apache/common-local/php-1.23wmf9/includes/specialpage/SpecialPage.php(674): SpecialCentralNoticeBanners->execute('edit/FR2014_tra...')
#11 /usr/local/apache/common-local/php-1.23wmf9/includes/SpecialPageFactory.php(488): SpecialPage->run('edit/FR2014_tra...')
#12 /usr/local/apache/common-local/php-1.23wmf9/includes/Wiki.php(298): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#13 /usr/local/apache/common-local/php-1.23wmf9/includes/Wiki.php(596): MediaWiki->performRequest()
#14 /usr/local/apache/common-local/php-1.23wmf9/includes/Wiki.php(460): MediaWiki->main()
#15 /usr/local/apache/common-local/php-1.23wmf9/index.php(49): MediaWiki->run()
#16 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...')
#17 {main}

Change 122222 had a related patch set uploaded by Hoo man:
Be more persistent in trying to load a Revision in BannerMessage

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

Change 122222 merged by Mwalker:
Be more persistent in trying to load a Revision in BannerMessage

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