Last modified: 2014-10-18 18:35:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 72131 - PHP notice on every api page
PHP notice on every api page
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: noncoreapi 39480
  Show dependency treegraph
Reported: 2014-10-16 13:23 UTC by Niklas Laxström
Modified: 2014-10-18 18:35 UTC (History)
5 users (show)

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


Description Niklas Laxström 2014-10-16 13:23:08 UTC
Notice: Undefined index: preferences in /www/ on line 260

Started to happen with the new api.php.

#0 /www/ wfArrayInsertAfter(array, array, string)
#1 [internal function]: LqtHooks::onPersonalUrls(array, Title, SkinApi)
#2 /www/ call_user_func_array(string, array)
#3 /www/ Hooks::run(string, array, NULL)
#4 /www/ wfRunHooks(string, array)
#5 /www/ SkinTemplate->buildPersonalUrls()
#6 /www/ SkinTemplate->prepareQuickTemplate(OutputPage)
#7 /www/ SkinTemplate->outputPage()
#8 /www/ OutputPage->output()
#9 /www/ ApiFormatBase->closePrinter()
#10 /www/ ApiMain->printResult(boolean)
#11 /www/ ApiMain->handleException(UsageException)
#12 /www/ ApiMain->executeActionWithErrorHandling()
#13 /www/ ApiMain->execute()
#14 {main}
Comment 1 Brad Jorsch 2014-10-16 15:40:38 UTC
What's going on there is that the API codepath is calling the skin using a context with an anonymous user rather than $wgUser (so that language hacks don't break caching), while LQT is checking $wgUser and assuming that fields are present based on that.
Comment 2 Gerrit Notification Bot 2014-10-17 18:47:45 UTC
Change 167247 had a related patch set uploaded by Anomie:
API: Clean up skin handling
Comment 3 Gerrit Notification Bot 2014-10-18 18:32:51 UTC
Change 167247 merged by jenkins-bot:
API: Clean up skin handling

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