[Mediawiki-l] Getting non-object error in Title::newFromText

Brion Vibber brion at pobox.com
Mon Feb 21 20:00:49 UTC 2005


John Straffin wrote:
> Error:
> Fatal error: Call to a member function on a non-object in
> /var/www/html/internal/wiki/includes/Title.php on line 1196
>
> Begin Code:
> (Note: $_SERVER["REMOTE_USER"] = jcstraff)
> (in modified User.php)
>     $name = $_SERVER["REMOTE_USER"];
>     $u = User::newFromName( $name );
[snip]
>         $t = $wgContLang->ucfirst( $r );   # # # # # # <== LINE 1196
[snip]

Is this mysterious contextless modified User.php code being run before
$wgLang and $wgContLang are initialized?

-- brion vibber (brion @ pobox.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20050221/6313fe8a/attachment.pgp 


More information about the MediaWiki-l mailing list