Page MenuHomePhabricator

Variable wgContLang is null in ObjectCache.php and Title.php
Closed, DeclinedPublic

Description

Author: dan.polansky

Description:
Often, but not always, an error occurs saying that a method of non-object has
been called, in ObjectCache.php and in Title.php. An investigation shows that it
is because of $wgContLang being null.

At the same time, although the file caching is on, wiki almost does not respond.
This was not the case before upgrading from 1.4.5 to 1.4.9.

I am not sure about operating system and platform; we are running at SourceForge.

Thanks a lot.


Version: 1.4.x
Severity: normal
OS: other
URL: http://freemind.sourceforge.net/wiki/index.php/Main_Page

Details

Reference
bz3426

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:48 PM
bzimport set Reference to bz3426.
bzimport added a subscriber: Unknown Object (MLST).

I think, this is related to the problem which I reported in
http://bugzilla.wikimedia.org/show_bug.cgi?id=1805 "new User() objects see
undefined $wgContLang due to early call of loadfromsession() in Setup.php"

The problem can be solved by a slight delay (move) of a few lines of codes, see
the patch in 1805. (EnotifWiki has this problem solved.)

dan.polansky wrote:

I have downgraded the severity of this bug. Without any action on my side, our
wiki is working fine again. Also, the file cache seems to take effect now. My
guess is that the bug appears under rare circumstances, which is why it has not
been detected and removed before in the first place.

robchur wrote:

Reopen if this recurs in current trunk; suspect it was fixed ages ago.