Extension talk:MassEditRegex
![]() Archives
|
---|
Bug for Mediawiki 1.43 users
editHi - I think there's a bug for Mediawiki 1.43 users. Claude says “MediaWiki 1.43 underwent some significant changes in its linking system. The Linker::commentBlock() method was fully removed in this version as part of MediaWiki's modernization efforts. Looking at the MassEditRegex extension's compatibility table, version 8.4.1 claims compatibility with MediaWiki 1.43, but this error suggests there's still a legacy method being called.”
Apparently, the required edit is to open /extensions/MassEditRegex/includes/MassEditRegexSpecialPage.php and find the line around 390 that's trying to use Linker::commentBlock() and replace it with the modern equivalent using CommentFormatter. The new code should look something like:
// At the top of the file, add these use statements if they're not already there: use MediaWiki\MediaWikiServices; // Then replace that code block with: Xml::tags( 'div', [ 'class' => 'mw-summary-preview' ], $this->msg( 'summary-preview' )->parse() . MediaWikiServices::getInstance()->getCommentFormatter() ->format( $this->massEditRegex->getSummary() ) ) .
Does this make sense? I am no great programmer. ElectricRay (talk) 17:41, 29 January 2025 (UTC)