Last modified: 2013-03-22 14:01:59 UTC
It seems in the CN code that it takes for granted that it's running on metawiki in some locations of the code. This is wrong, and has been corrected in https://gerrit.wikimedia.org/r/#/c/52608/ Further, the API modules aren't really useful being enabled on client wikis, so should probably be disabled. Which also helps prevent these weird things happening, as the queries don't need to be run via enwiki