Page MenuHomePhabricator

Getting Call to a member function isLoggedIn() on null Error in Extension:TimezoneSelector
Open, HighPublic

Description

[e6866b29fa85a000bb644dc8] /Dev/core/index.php/ Error from line 66 of C:\xampp\htdocs\Dev\core\extensions\TimezoneSelector\TimezoneSelector.class.php: Call to a member function isLoggedIn() on null

Backtrace:

#0 C:\xampp\htdocs\Dev\core\includes\Hooks.php(177): TimezoneSelector::onUserGetDefaultOptions(array)
#1 C:\xampp\htdocs\Dev\core\includes\Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#2 C:\xampp\htdocs\Dev\core\includes\user\User.php(1749): Hooks::run(string, array)
#3 C:\xampp\htdocs\Dev\core\includes\user\User.php(5460): User::getDefaultOptions()
#4 C:\xampp\htdocs\Dev\core\includes\user\User.php(537): User->loadOptions()
#5 C:\xampp\htdocs\Dev\core\includes\libs\objectcache\WANObjectCache.php(1092): User->{closure}(boolean, integer, array, NULL)
#6 C:\xampp\htdocs\Dev\core\includes\libs\objectcache\WANObjectCache.php(1240): WANObjectCache->{closure}(boolean, integer, array, NULL)
#7 C:\xampp\htdocs\Dev\core\includes\libs\objectcache\WANObjectCache.php(1097): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array, NULL)
#8 C:\xampp\htdocs\Dev\core\includes\user\User.php(559): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#9 C:\xampp\htdocs\Dev\core\includes\user\User.php(480): User->loadFromCache()
#10 C:\xampp\htdocs\Dev\core\includes\user\User.php(418): User->loadFromId(integer)
#11 C:\xampp\htdocs\Dev\core\includes\session\UserInfo.php(88): User->load()
#12 C:\xampp\htdocs\Dev\core\includes\session\CookieSessionProvider.php(119): MediaWiki\Session\UserInfo::newFromId(string)
#13 C:\xampp\htdocs\Dev\core\includes\session\SessionManager.php(488): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)
#14 C:\xampp\htdocs\Dev\core\includes\session\SessionManager.php(191): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
#15 C:\xampp\htdocs\Dev\core\includes\WebRequest.php(734): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#16 C:\xampp\htdocs\Dev\core\includes\session\SessionManager.php(130): WebRequest->getSession()
#17 C:\xampp\htdocs\Dev\core\includes\Setup.php(848): MediaWiki\Session\SessionManager::getGlobalSession()
#18 C:\xampp\htdocs\Dev\core\includes\WebStart.php(94): require_once(string)
#19 C:\xampp\htdocs\Dev\core\index.php(39): require(string)
#20 {main}

Event Timeline

Restricted Application added a project: User-Jayprakash12345. · View Herald TranscriptMar 21 2018, 11:36 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 422202 had a related patch set uploaded (by Jayprakash12345; owner: Jayprakash12345):
[mediawiki/extensions/TimezoneSelector@master] Fix isLoggedIn function call

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

Jayprakash12345 moved this task from Backlog to Configured on the User-Jayprakash12345 board.
Jayprakash12345 triaged this task as High priority.Mar 28 2018, 9:51 AM
Jayprakash12345 added a subscriber: Legoktm.

Setting High because of Fatal Error. It is not in working state. And Adding @Legoktm I wish to please review. Because extension owner has no activity since Feb 18, 2014 Sorry If doing wrong :)