Happy New year to all. My configuration: __________________
MediaWiki https://www.mediawiki.org/
1.26.2 PHP https://php.net/ 5.3.29 (apache2handler) MySQL https://www.mysql.com/ 5.0.95 ConfirmEdit https://www.mediawiki.org/wiki/Extension:ConfirmEdit 1.4.0 ContactPage https://www.mediawiki.org/wiki/Extension:ContactPage 2.2 Semantic Maps https://github.com/SemanticMediaWiki/SemanticMaps/blob/master/README.md#semantic-maps 3.2 Semantic MediaWiki https://semantic-mediawiki.org/ 2.3
__________________
I'm a bit confused by the following:
My contact form works fine when logged in. But when not logged in, I get
*Catchable fatal error*: Argument 1 passed to QuestyCaptcha::getForm() must be an instance of OutputPage, none given, called in /www/htdocs/drebbel/wiki/extensions/ContactPage/ContactPage_body.php on line 433 and defined in */www/htdocs/drebbel/wiki/extensions/ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php* on line *44*
__________________
My LocalSettings.php:
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
require_once( "$IP/extensions/ConfirmEdit/QuestyCaptcha.php");
$wgCaptchaClass = 'QuestyCaptcha';
require_once "$IP/extensions/ContactPage/ContactPage.php";
$wgCaptchaTriggers['contactpage'] = true;
$wgContactConfig['default'] = array(
'RecipientUser' => 'xxxx', // a valid account which also has a verified e-mail-address added to it.
'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated
'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required
'RequireDetails' => true, // Either "true" or "false" as required
'IncludeIP' => true, // Either "true" or "false" as required
'AdditionalFields' => array(
'Text' => array(
'label-message' => 'emailmessage',
'type' => 'textarea',
'rows' => 20,
'cols' => 80,
'required' => true, // Either "true" or "false" as required
),
),
// Added in MW 1.26
'DisplayFormat' => 'table', // See HTMLForm documentation for available values.
'RLModules' => array(), // Resource loader modules to add to the form display page.
'RLStyleModules' => array(), // Resource loader CSS modules to add to the form display page.
);
_________________
If I change $wgContactConfig['*default*'] = array( into $wgContactConfig['*contactpage*'] = array( , I get Contact form error A contact form is either not configured for this page or is configured incorrectly. __________________
I've changed (in ReCaptcha.class.php) the function getForm( OutputPage $out ) into getform() and now it works fine apart from the fact that one often has to refresh the contactpage for the Captcha to appear. See http://drebbel.net/wiki/Special:Contact