Topic on Extension talk:ConfirmAccount

ConfirmAccount not compatible with ConfirmEdit right now?

6
183.83.51.83 (talkcontribs)

I'm new to MediaWiki so maybe I'm missing something obvious - I just installed 1.26.2 with latest plugins for ConfirmEdit and ConfirmAccount and the "Request Account" page for ConfirmAccount started failing as soon as I setup ConfirmEdit with RecaptchaNoCaptcha following exact instructions for both extensions. This was the error message I got the on clicking "Request Account":

Catchable fatal error: Argument 1 passed to ReCaptchaNoCaptcha::getForm() must be an instance of OutputPage, none given, called in /home/<mydomain>/public_html/wiki/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php on line 231 and defined in /home/<mydomain>/public_html/wiki/extensions/ConfirmEdit/ReCaptchaNoCaptcha/ReCaptchaNoCaptcha.class.php on line 8

I managed to fix it by changing this line in RequestAccount_body.php

$form .= $captcha->getForm();

to

$form .= $captcha->getForm($this->getOutput());

This works, but I have absolutely no idea what I'm doing here frankly - I just made the parameters match by checking both files. Is this a known bug?

My thanks to all contributors for creating such a great piece of software in mediawiki and all these great extensions too!

58.233.10.17 (talkcontribs)

I have the same problem, and your quick fix seems to work for me. Thanks a lot for the suggestion. I hope that this problem is resolved sooner or later because I'm quite dependent on this extension.

87.123.33.215 (talkcontribs)

Please open a bugreport to get the fix integrated into the extension!

84.221.237.67 (talkcontribs)

Same error and same working solution.

Hope it will be fixed someday :-)

206.108.127.16 (talkcontribs)

I'm seeing a similar error:

```

PHP Catchable fatal error:  Argument 1 passed to SimpleCaptcha::getForm() must be an instance of OutputPage, none given, called in /<PATH TO WIKI>/wiki/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php on line 231 and defined in /<PATH TO WIKI>/wiki/extensions/ConfirmEdit/SimpleCaptcha/Captcha.php on line 42

```

I'll probably try the fix posted above, and probably file a bug report if I can't find an existing one to link to.

Kghbln (talkcontribs)

Indeed filing an issue and even providing the solution will be marvellous. Go for it!

Reply to "ConfirmAccount not compatible with ConfirmEdit right now?"