Cannot edit protected pages with Bot in LockDown wiki

Jump to: navigation, search

Hello,

I have noticed that I cannot edit pages with Perl MediaWiki::Bot bots if they are protected ('protect' or 'autoconfirmed' protections). No problem when done using the same bot logged in as user from the browser. The error I get in the script: Error code 3: protectedpage: The ``autoconfirmed right is required to edit this page at myscript.pl line 189. Any idea?

Toniher20:18, 10 July 2011

Apologies, it's also failing with Lockdown disabled. So it must be another thing.

Toniher10:54, 11 July 2011

No, it still fails. Apart from the previous error, it does not get the bot flag: Mybot doesn't have a bot flag; edits will be visible in RecentChanges at /usr/local/share/perl/5.10.1/MediaWiki/Bot.pm line 1928.. No problem when logged from the browser, though. I'll continue researching.

Toniher07:03, 12 July 2011

The problem I comment is with hook SearchableNamespaces, once only this is disabled, bot is loaded with proper permissions. I suspect it must be MediaWiki bug therefore. I filled a bug. Unless you host private content, you can comment line: $wgHooks['SearchableNamespaces'][] = 'lockdownSearchableNamespaces'; to bring robots back to work.

Toniher15:50, 8 August 2011
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox