Last modified: 2006-10-03 18:30:33 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 7458 - Unstub loop
Unstub loop
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.8.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://fr.wikipedia.org/w/index.php?t...
: patch, patch-need-review
: 7449 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-01 15:36 UTC by JeLuF
Modified: 2006-10-03 18:30 UTC (History)
1 user (show)

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


Attachments
patch (1 line) (546 bytes, patch)
2006-10-01 16:03 UTC, Dan Li
Details

Description JeLuF 2006-10-01 15:36:47 UTC
Got this when saving my preferences on the French Wikipedia:

Original exception: exception 'MWException' with message 'Unstub loop detected
on call of $wgUser->getOption from StubUserLang::_newObject
' in /usr/local/apache/common-local/php-1.5/includes/StubObject.php:54
Stack trace:
#0 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(31):
StubObject->_unstub('getOption', 5)
#1 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(114):
StubObject->_call('getOption', Array)
#2 [internal function]: StubUser->__call('getOption', Array)
#3 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(94):
StubUser->getOption('language')
#4 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(57):
StubUserLang->_newObject()
#5 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(31):
StubObject->_unstub('getCode', 5)
#6 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(87):
StubObject->_call('getCode', Array)
#7 [internal function]: StubUserLang->__call('getCode', Array)
#8 /usr/local/apache/common-local/php-1.5/includes/MessageCache.php(423):
StubUserLang->getCode()
#9 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(422):
MessageCache->get('readonly_lag', false, false)
#10 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(381):
wfMsgGetKey('readonly_lag', false, false, true)
#11 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(353):
wfMsgReal('readonly_lag', Array, false)
#12 /usr/local/apache/common-local/php-1.5/includes/LoadBalancer.php(164):
wfMsgNoDB('readonly_lag')
#13 /usr/local/apache/common-local/php-1.5/includes/LoadBalancer.php(345):
LoadBalancer->getReaderIndex()
#14 /usr/local/apache/common-local/php-1.5/includes/DatabaseFunctions.php(52):
LoadBalancer->getConnection(-1, true, Array)
#15 /usr/local/apache/common-local/php-1.5/includes/User.php(893): wfGetDB(-1)
#16 /usr/local/apache/common-local/php-1.5/includes/User.php(828):
User->loadFromDatabase()
#17 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(123):
User->loadFromSession()
#18 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(57):
StubUser->_newObject()
#19 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(31):
StubObject->_unstub('getOption', 5)
#20 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(114):
StubObject->_call('getOption', Array)
#21 [internal function]: StubUser->__call('getOption', Array)
#22 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(94):
StubUser->getOption('language')
#23 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(57):
StubUserLang->_newObject()
#24 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(31):
StubObject->_unstub('getCode', 5)
#25 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(87):
StubObject->_call('getCode', Array)
#26 [internal function]: StubUserLang->__call('getCode', Array)
#27 /usr/local/apache/common-local/php-1.5/includes/MessageCache.php(423):
StubUserLang->getCode()
#28 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(422):
MessageCache->get('readonly_lag', false, false)
#29 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(381):
wfMsgGetKey('readonly_lag', false, false, true)
#30 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(353):
wfMsgReal('readonly_lag', Array, false)
#31 /usr/local/apache/common-local/php-1.5/includes/LoadBalancer.php(164):
wfMsgNoDB('readonly_lag')
#32 /usr/local/apache/common-local/php-1.5/includes/LoadBalancer.php(345):
LoadBalancer->getReaderIndex()
#33 [internal function]: LoadBalancer->getConnection(-1, true, Array)
#34 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(32):
call_user_func_array(Array, Array)
#35 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(40):
StubObject->_call('getConnection', Array)
#36 [internal function]: StubObject->__call('getConnection', Array)
#37 /usr/local/apache/common-local/php-1.5/includes/DatabaseFunctions.php(52):
StubObject->getConnection(-1, true, Array)
#38 /usr/local/apache/common-local/php-1.5/includes/User.php(893): wfGetDB(-1)
#39 /usr/local/apache/common-local/php-1.5/includes/User.php(828):
User->loadFromDatabase()
#40 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(123):
User->loadFromSession()
#41 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(57):
StubUser->_newObject()
#42 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(31):
StubObject->_unstub('isAllowed', 5)
#43 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(114):
StubObject->_call('isAllowed', Array)
#44 [internal function]: StubUser->__call('isAllowed', Array)
#45 /usr/local/apache/common-local/php-1.5/includes/Title.php(1140):
StubUser->isAllowed('read')
#46 /usr/local/apache/common-local/php-1.5/includes/Wiki.php(109):
Title->userCanRead()
#47 /usr/local/apache/common-local/php-1.5/includes/Wiki.php(45):
MediaWiki->preliminaryChecks(Object(Title), Object(StubObject), Object(WebRequest))
#48 /usr/local/apache/common-local/php-1.5/index.php(47):
MediaWiki->initialize(Object(Title), Object(StubObject), Object(StubUser),
Object(WebRequest))
#49 /usr/local/apache/common-local/live-1.5/index.php(3):
require('/usr/local/apac...')
#50 {main}

Exception caught inside exception handler: exception 'MWException' with message
'Unstub loop detected on call of $wgLang->getCode from MessageCache::get
' in /usr/local/apache/common-local/php-1.5/includes/StubObject.php:54
Stack trace:
#0 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(31):
StubObject->_unstub('getCode', 5)
#1 /usr/local/apache/common-local/php-1.5/includes/StubObject.php(87):
StubObject->_call('getCode', Array)
#2 [internal function]: StubUserLang->__call('getCode', Array)
#3 /usr/local/apache/common-local/php-1.5/includes/MessageCache.php(423):
StubUserLang->getCode()
#4 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(422):
MessageCache->get('internalerror', true, false)
#5 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(381):
wfMsgGetKey('internalerror', true, false, true)
#6 /usr/local/apache/common-local/php-1.5/includes/GlobalFunctions.php(288):
wfMsgReal('internalerror', Array, true)
#7 /usr/local/apache/common-local/php-1.5/includes/Exception.php(37):
wfMsg('internalerror')
#8 /usr/local/apache/common-local/php-1.5/includes/Exception.php(96):
MWException->getPageTitle()
#9 /usr/local/apache/common-local/php-1.5/includes/Exception.php(63):
MWException->htmlHeader()
#10 /usr/local/apache/common-local/php-1.5/includes/Exception.php(82):
MWException->reportHTML()
#11 /usr/local/apache/common-local/php-1.5/includes/Exception.php(158):
MWException->report()
#12 /usr/local/apache/common-local/php-1.5/includes/Exception.php(192):
wfReportException(Object(MWException))
#13 [internal function]: wfExceptionHandler(Object(MWException))
#14 {main}
Comment 1 Dan Li 2006-10-01 15:41:12 UTC
*** Bug 7449 has been marked as a duplicate of this bug. ***
Comment 2 Dan Li 2006-10-01 16:03:37 UTC
Created attachment 2426 [details]
patch (1 line)

You didn't miss much; the databases were lagging anyways. ;)

Attached patch changes LoadBalancer::getReaderIndex(), which is called from
StubUser::_newObject(), to use wfMsgNoDBForContent instead of wfMsgNoDB.
Comment 3 JeLuF 2006-10-03 18:30:33 UTC
Committed patch as revision 16765.

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


Navigation
Links