Page MenuHomePhabricator

Invalid callback in hooks for UserLoadOptions
Closed, DeclinedPublic

Description

Author: karim.tsouli

Description:
So, i just added Echo to my media wiki and i'm getting this error. I have searched and found no answer to resolve this issue.

[34f946fd] /index.php Exception from line 181 of /home/karimht26/domains/cybermaid.net/public_html/includes/Hooks.php: Invalid callback in hooks for UserLoadOptions
Backtrace:

#0 /home/karimht26/domains/cybermaid.net/public_html/includes/GlobalFunctions.php(3877): Hooks::run(string, array)
#1 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(4646): wfRunHooks(string, array)
#2 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(356): User->loadOptions()
#3 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(336): User->saveToCache()
#4 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(294): User->loadFromId()
#5 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(2151): User->load()
#6 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(981): User->getToken(boolean)
#7 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(297): User->loadFromSession()
#8 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(1743): User->load()
#9 /home/karimht26/domains/cybermaid.net/public_html/includes/User.php(2847): User->getId()
#10 /home/karimht26/domains/cybermaid.net/public_html/includes/Wiki.php(546): User->isLoggedIn()
#11 /home/karimht26/domains/cybermaid.net/public_html/includes/Wiki.php(467): MediaWiki->main()
#12 /home/karimht26/domains/cybermaid.net/public_html/index.php(49): MediaWiki->run()
#13 {main}


Version: REL1_22-branch
Severity: critical
OS: Linux
Platform: PC
Whiteboard: aklapper-moreinfo

Details

Reference
bz61870

Event Timeline

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

Thanks for taking the time to report this!

Please provide exact version information for both MediaWiki and the Echo extensions, plus steps to reproduce. For general info, see https://www.mediawiki.org/wiki/How_to_report_a_bug

karim.tsouli wrote:

Mediawiki version: 1.22.2
Echo version: beta (2013-08-28) downloaded from: http://www.mediawiki.org/wiki/Extension:Echo

Steps to reproduce:

  1. Unzip files to extensions/Echo
  2. Add "require_once ( "$IP/extensions/Echo/Echo.php" );" to LocalSettings.php
  3. Update mediawiki (Via "../wm-config/index.php")
  4. Visit any page on the mediawiki

(In reply to karim.tsouli from comment #2)

Echo version: beta (2013-08-28) downloaded from:
http://www.mediawiki.org/wiki/Extension:Echo

When I click the "Download" link I end up on https://www.mediawiki.org/wiki/Special:ExtensionDistributor/Echo , and choosing "1.22" creates a compressed archive with all files having a time stamp of Dec 07, 2013.
It's unclear to me why your Echo version is from August instead.
Could you please elaborate?

karim.tsouli wrote:

My apologies. I thought the "latest" version stated on extension page would have been the one i downloaded. I just checked, and I too have the version of 07-12-2013

Is this still an issue? REL1_22 works fine for me.

Karim: Can you answer comment 5, please?