Page MenuHomePhabricator

/w/api.php Exception from line 104 of /www/translatewiki.net/w/includes/WikiPage.php: Invalid or virtual namespace -1 given.
Closed, ResolvedPublic

Description

/w/api.php Exception from line 104 of /www/translatewiki.net/w/includes/WikiPage.php: Invalid or virtual namespace -1 given.

Unfortunately API eats the backtrace.

I guess the cause is requests like these:
"POST /w/api.php HTTP/1.1" 200 313 "http://translatewiki.net/w/i.php?title=Special:NewMessages&lqt_method=reply&lqt_operand=27245"


Version: 1.21.x
Severity: major

Details

Reference
bz41168

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:59 AM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz41168.
bzimport added a subscriber: Unknown Object (MLST).

2012-10-23 14:23:25 mw70 enwiki: [238f8828] /w/api.php?action=parse&page=Special:WantedCategories&format=json&redirects&prop=text%7Cheaditems%7Cdisplaytitle%7Crevid%7Csections Exception from line 104 of /usr/local/apache/common-local/php-1.21wmf2/includes/WikiPage.php: Invalid or virtual namespace -1 given

It seems these errors are currently spamming the exception logs on fluorine. Seemingly only enwiki, but I'm not sure of that.

Some extension (?) is creating a load of requests... guess we could do with some referers...

Not quite sure it's an API bug.. Though, the API could handle the error and die properly. The invokers should be the things that need to be fixed...