MediaWiki | 1.26.2 |
PHP | 5.3.29 (apache2handler) |
MySQL | 5.0.95 |
ConfirmEdit | 1.4.0 |
ContactPage | 2.2 |
Semantic Maps | 3.2 |
Semantic MediaWiki | 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 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.