Last modified: 2014-04-07 21:02:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61871, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59871 - "Call to a member function getContent() on a non-object" when saving banner
"Call to a member function getContent() on a non-object" when saving banner
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-09 17:09 UTC by Peter Coombe
Modified: 2014-04-07 21:02 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Peter Coombe 2014-01-09 17:09:34 UTC
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
Comment 1 Sam Reed (reedy) 2014-01-09 17:14:07 UTC
[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}
Comment 2 Gerrit Notification Bot 2014-03-30 20:55:44 UTC
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
Comment 3 Gerrit Notification Bot 2014-04-07 21:00:28 UTC
Change 122222 merged by Mwalker:
Be more persistent in trying to load a Revision in BannerMessage

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links