Page MenuHomePhabricator

CentralNotice causes fatal error for mobile on beta labs
Closed, ResolvedPublic

Description

Fatal error shows as a 500 error. In logs find

[30-Dec-2013 21:34:22] Fatal error: Call to a member function addModules() on a non-object at /data/project/apache/common-local/php-master/extensions/CentralNotice/CentralNotice.hooks.php on line 360
Server: i-0000031a
Method: GET
URL: http://en.wikipedia.beta.wmflabs.org/wiki/Main_Page?useformat=mobile
Backtrace:
#0 /data/project/apache/common-local/php-master/extensions/CentralNotice/CentralNotice.hooks.php(360): efEnableMobileModules()
#1 [internal function]: efEnableMobileModules(NULL, 'stable')
#2 /data/project/apache/common-local/php-master/includes/Hooks.php(199): call_user_func_array('efEnableMobileM...', Array)
#3 /data/project/apache/common-local/php-master/includes/GlobalFunctions.php(4031): Hooks::run('EnableMobileMod...', Array)
#4 /data/project/apache/common-local/php-master/extensions/MobileFrontend/includes/skins/SkinMinerva.php(691): wfRunHooks('EnableMobileMod...', Array)
#5 /data/project/apache/common-local/php-master/includes/OutputPage.php(2074): SkinMinerva->outputPage()
#6 /data/project/apache/common-local/php-master/includes/Wiki.php(603): OutputPage->output()
#7 /data/project/apache/common-local/php-master/includes/Wiki.php(460): MediaWiki->main()
#8 /data/project/apache/common-local/php-master/index.php(49): MediaWiki->run()
#9 /data/project/apache/common-local/w/index.php(3): require('/data/project/a...')
#10 {main}


Version: unspecified
Severity: normal

Details

Reference
bz59143

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:37 AM
bzimport set Reference to bz59143.
bzimport added a subscriber: Unknown Object (MLST).

Change 104672 had a related patch set uploaded by MaxSem:
Ensure that EnableMobileModules hook always gets an OutputPage

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

Change 104672 merged by jenkins-bot:
Ensure that EnableMobileModules hook always gets an OutputPage

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

  • Bug 59163 has been marked as a duplicate of this bug. ***