Topic on Extension talk:ContactPage

Captcha doesn't work: Exception encountered, of type "Error"

5
Summary by Loman87

Used a newer version of ContactPage on an older mw installation

Loman87 (talkcontribs)

Hi,

I can't use captcha on Special:Contact. I get this error:

Exception encountered, of type "Error"

[e9a51f9db6ebeb807e695cdb] /mediawiki/index.php/Special:Contact Error from line 492 of /var/lib/mediawiki/extensions/ContactPage/ContactPage_body.php: Call to undefined method SimpleCaptcha::getFormInformation()

Backtrace:

#0 /var/lib/mediawiki/extensions/ContactPage/ContactPage_body.php(198): SpecialContact->getCaptcha()

#1 /var/lib/mediawiki/includes/specialpage/SpecialPage.php(479): SpecialContact->execute(NULL)

#2 /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php(577): SpecialPage->run(NULL)

#3 /var/lib/mediawiki/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)

#4 /var/lib/mediawiki/includes/MediaWiki.php(735): MediaWiki->performRequest()

#5 /var/lib/mediawiki/includes/MediaWiki.php(509): MediaWiki->main()

#6 /var/lib/mediawiki/index.php(43): MediaWiki->run()

#7 {main}

I followed the guide on the extension page, adding $wgCaptchaTriggers['contactpage'] = true; to LocalSettings.php.

My installation is the following:

MediaWiki 1.27.4
PHP 7.0.25-0ubuntu0.16.04.1 (apache2handler)
MySQL 5.7.21-0ubuntu0.16.04.1
ICU 55.1
Lua 5.1.5
Elasticsearch 1.7.3

ContactPage version 2.2 (2b8ae0a)

ConfirmEdit version 1.4.0

Thanks for your help!

Lorenzo

Kghbln (talkcontribs)

It looks like SimpleCaptcha creates the problem. Did you try to use QuestyCaptcha. Anyways it looks like this one should be reported at Phabricator.

Loman87 (talkcontribs)

Hi, sorry for the late in my answer.

I tried with Questy Captcha and I am getting the same error

Exception encountered, of type "Error"

[2745d4b05d0642e5bf054b98] /mediawiki/index.php/Special:Contact Error from line 492 of /var/lib/mediawiki/extensions/ContactPage/ContactPage_body.php: Call to undefined method QuestyCaptcha::getFormInformation()

Backtrace:

#0 /var/lib/mediawiki/extensions/ContactPage/ContactPage_body.php(198): SpecialContact->getCaptcha()

#1 /var/lib/mediawiki/includes/specialpage/SpecialPage.php(479): SpecialContact->execute(NULL)

#2 /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php(577): SpecialPage->run(NULL)

#3 /var/lib/mediawiki/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)

#4 /var/lib/mediawiki/includes/MediaWiki.php(735): MediaWiki->performRequest()

#5 /var/lib/mediawiki/includes/MediaWiki.php(509): MediaWiki->main()

#6 /var/lib/mediawiki/index.php(43): MediaWiki->run()

#7 {main}

Should I report it on the Phabricator page of this extension or on the Confirm Edit one? I guess the first one, anyway, to be sure....

Kghbln (talkcontribs)

Hmm, I am totally puzzled why this extension is not working for you. I use it on my wikis (MW 1.27.4) without issues. However I just see that you use the version meant for MW 1.28.x Try using the version for MW 1.27.x

Loman87 (talkcontribs)

You're right! With 1.27 version everything works, my fault, as usual...

Thanks very much for the help!

Lorenzo