When calling any edit-page of my wiki, I get this error message
Warning: Parameter 1 to ConfirmEditHooks::showEditFormFields() expected to be a reference, value given in .../Hooks.php on line 195
Any idea what's going wrong, what to do?
TIA!
When calling any edit-page of my wiki, I get this error message
Warning: Parameter 1 to ConfirmEditHooks::showEditFormFields() expected to be a reference, value given in .../Hooks.php on line 195
Any idea what's going wrong, what to do?
TIA!
The ConfirmEdit extension on your wiki isn't compatible with your MediaWiki version. Please download and install a version that matches your MediaWiki version
Thank you, but this doesn't help. The ConfirmEdit was delivered with the MW-Version, so it should be compatible. Nevertheless I installed again a fresh downloaded version of this extension, but still get the same error message.
I had the same problem with the extension Visual Editor.
in the extension map there is probably a hooks.php file. Open it en delete the "&" at the public static function.
Thank you, same problem here with the Visual Editor, too! I've found VisualEditor.hooks.php, but there are many lines with public static function and "&" … I've no idea, where to delete one, could you perhaps specify this?
Don't know if you still need the answer but here it comes. In line 42 you have the following statement:
- - - - - -
public static function onBeforePageDisplay( OutputPage &$output, Skin &$skin ) {
- - - - - -
Removing the & before $output should be enough. So it will be:
- - - - - -
public static function onBeforePageDisplay( OutputPage $output, Skin &$skin ) {
- - - - - -
It's version 1.28.2: http://www.dirk-bechtel.de/wiki/index.php?title=Spezial:Version
With disabled ConfirmEdit it works fine (but I had 3 Spam-User within 20 minutes).
And I also get an error message with VisualEditor, which I had to disable.
Ugh, PHP 7.1. Yes, this is a known problem. See task T153505.
You need to do a change similar to https://gerrit.wikimedia.org/r/#/c/329341/2/includes/EditPage.php
Sadly, it hasn't been backported to 1.28
It is just a warning, it shouldn't affect functionality and can be ignored.
But you'll have to edit php.ini to disable error reporting for WARNINGs, otherwise they'll be puked all over the page :)