Share

MediaWiki - Hidden namespaces patch

Tracker: Bugs

5 Bug in User.php when accessed via api.php after patching - ID: 2018934
Last Update: Settings changed ( haevven )

After installing the patch any query to api.php fails with the following
error:

Call to a member function getNamespace() on a non-object in User.php on
line 1771


Owen Barritt ( obarritt ) - 2008-07-15 20:45

5

Closed

Fixed

Kristian Spilhaug

Functionality

All

Public


Comments ( 4 )

Date: 2009-02-13 15:54
Sender: haevvenProject Admin

Sweet!

I tested it and it seems to work for me as well. I'll include it in the
upcoming patch for 1.13.4 when it is done.


Date: 2009-02-07 14:45
Sender: roroProject Admin

I run into the same problem with 1.13.3.
As a workaround (I don't understand why this happens), I used the
following "patch" (sorry, I forgot to make a copy before I patched, so this
is created manually):

- $ns = $title->getNamespace();
+ if (is_object($title)) {
+ $ns = $title->getNamespace();
+ } else {
+ $ns = -1;
+ }

Tschoeeee
Roland


Date: 2008-12-11 10:10
Sender: haevvenProject Admin

This bug is related to the actual performance of the patch. It might be
fixed if hiddenwiki is changed to an extension, but an imminent solution is
not expected.

This bug also causes the MW search suggestion function to fail.


Date: 2008-07-18 14:20
Sender: haevvenProject Admin


Noted. I don't have time to look at it until August.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2009-03-06 13:34 haevven
allow_comments 1 2009-03-06 13:34 haevven
close_date - 2009-03-06 13:34 haevven
resolution_id None 2009-02-14 17:03 haevven
assigned_to nobody 2008-07-18 14:20 haevven