Hi all,
I'm just looking at upgrading to MW 1.25.1 but I'm getting an error
when running update.php for the ConfirmEdit extension, run in ReCaptcha
mode:
PHP Warning: require_once(ReCaptcha/recaptchalib.php): failed to open
stream: No such file or directory
in /srv/web/.../mediawiki-1.25.1/extensions/ConfirmEdit/includes/ConfirmEditHooks.php
on line 147
PHP Fatal error: require_once(): Failed opening required
'ReCaptcha/recaptchalib.php'
(include_path='.:/usr/share/php:/usr/share/pear')
in /srv/web/.../mediawiki-1.25.1/extensions/ConfirmEdit/includes/ConfirmEditHooks.php
on line 147
Line 147 in ConfirmEditHooks.php is the require_once line in this
function:
/**
* Callback for extension.json of ReCaptcha to require the recaptcha library php file.
* FIXME: This should be done in a better way, e.g. only load the libraray, if really
needed.
*/
public static function onReCaptchaSetup() {
require_once( "ReCaptcha/recaptchalib.php" );
}
Which looks like an include path problem. Is this a bug in the new
ConfirmEdit or is there some other option I need to set when
upgrading from 1.24.1 to 1.25.1?
I'm loading the extension from my old LocalSettings.php like this:
require_once("${IP}/extensions/ConfirmEdit/ReCaptcha.php");
$wgCaptchaClass = 'ReCaptcha';
$wgReCaptchaPublicKey = 'xxx';
$wgReCaptchaPrivateKey = 'xxx';
Many thanks,
Adam.