Topic on Extension talk:BlockAndNuke

1.29 error with newest BlockAndNuke and UserMerge patch

3
Jburk (talkcontribs)

Hi,

I have a Mediawiki install that's been patched up to 1.29 and I installed BlockAndNuke for the first time, along with the UserMerge patch mentioned in the BlockAndNuke article. I am getting the following error when trying to use the extension with my current set of spam users.

Catchable fatal error: Argument 3 passed to MergeUser::__construct() must be an instance of IUserMergeLogger, none given, called in /home/xxx/xxx/extensions/BlockAndNuke/BanPests.php on line 163 and defined in /home/xxx/xxx/extensions/UserMerge/MergeUser.php on line 33

Jburk (talkcontribs)

MediaWiki version 1.29

MySql version 5.6.34

OS Ubuntu 12.04

Jburk (talkcontribs)

I was able to fix this on my own by changing line 163 in BanPests.php:

FROM:

$um = new MergeUser( $spammer, $user );

TO:

$um = new MergeUser( $spammer, $user, new UserMergeLogger() );

Reply to "1.29 error with newest BlockAndNuke and UserMerge patch"