Topic on Extension talk:AccessControl

Invalid or virtual namespace -1 given.

8
62.30.12.78 (talkcontribs)

I installed this extension today. Whenever a search is done, or a special page is accessed, I receive this error: [96a4e972bfebcd93cd713a17] /index.php?search=stop&title=Special%3ASearch&go=Go MWException from line 105 of /var/www/html/includes/page/WikiPage.php: Invalid or virtual namespace -1 given. The initial number in the [] is always different, but the rest of the error message is the same. What can I do? Do you need any more information to help?

Kghbln (talkcontribs)

What is your setup? PHP, MediaWiki, AccessControl?

86.159.31.132 (talkcontribs)

Yes, that is correct.

62.30.12.78 (talkcontribs)

Yes, that is correct. Sorry for confusion. I came on at home and at work. Both 86.159.31.132 and 62.30.12.78 are me

Kghbln (talkcontribs)

Hi, and no worries. I was asking about the versions of the software mentioned.

62.30.12.78 (talkcontribs)

Mediawiki 1.27.1 PHP 5.5.9-1ubuntu4.19 (apache2handler) Access Control 2.6

109.190.122.47 (talkcontribs)

I fixed this one by editing "includes/page/WikiPage.php", in function factory. On line 120, replace : } elseif ( $ns < 0 ) {

By : } elseif ( $ns < -1 ) {

PrinzQMP (talkcontribs)
Reply to "Invalid or virtual namespace -1 given."