500 Error when editing using Visual Editor

Describe the issue / Steps to reproduce:
When I try and edit the main page I get a 500 error.

Expected behavior:
I would expect to be able to edit the content using Visual Editor.

What was the error message/error log?
[Thu Dec 21 14:31:55.621732 2023] [php:error] [pid 1513] [client ::1:54026] PHP Fatal error: Declaration of MediaWiki\Extension\Checklists\ParsoidExt\ChecklistProcessor::wtPostprocess(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI $extApi, Wikimedia\Parsoid\DOM\Node $root, array $options): void must be compatible with Wikimedia\Parsoid\Ext\DOMProcessor::wtPostprocess(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI $extApi, Wikimedia\Parsoid\DOM\Node $root, array $options, bool $atTopLevel): void in /var/www/html/bluespice/extensions/Checklists/src/ParsoidExt/ChecklistProcessor.php on line 21, referer: http://localhost/bluespice/index.php/Main_Page?veaction=edit
[Thu Dec 21 14:32:07.894716 2023] [php:error] [pid 1514] [client ::1:43166] PHP Fatal error: Declaration of MediaWiki\Extension\Checklists\ParsoidExt\ChecklistProcessor::wtPostprocess(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI $extApi, Wikimedia\Parsoid\DOM\Node $root, array $options): void must be compatible with Wikimedia\Parsoid\Ext\DOMProcessor::wtPostprocess(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI $extApi, Wikimedia\Parsoid\DOM\Node $root, array $options, bool $atTopLevel): void in /var/www/html/bluespice/extensions/Checklists/src/ParsoidExt/ChecklistProcessor.php on line 21, referer: http://localhost/bluespice/index.php/Main_Page?veaction=edit

Blockquote

Resolution
In the code specified:

/var/www/html/bluespice/extensions/Checklists/src/ParsoidExt/ChecklistProcessor.php

Change

public function wtPostprocess(
ParsoidExtensionAPI $extApi,
Node $root,
array $options
): void {
$wikiTextPostprocessor = new WikiTextPostProcessor( new ParsoidListItemProvider() );
$wikiTextPostprocessor->processDOM( $root );
}

To

public function htmlPostprocess(
ParsoidExtensionAPI $extApi,
Node $root,
array $options
): void {
$wikiTextPostprocessor = new WikiTextPostProcessor( new ParsoidListItemProvider() );
$wikiTextPostprocessor->processDOM( $root );
}

System info:
view system requirements

  • OS: Ubuntu 20.04
  • Server: Apache 2.4.41
  • PHP: PHP 8.2.13
  • Database: MariaDB 10.3.38
  • BlueSpice version: BlueSpice free 4.3.3
  • Browser version: Edge

Thanks for reporting. Very odd. BlueSpice 4.3.3 should have a MediaWiki 1.39, which should be compatible. We’ll investigate.