Topic on Extension talk:ConfirmEdit

ConfirmEdit/QuestyCaptcha causing 500 error.

4
173.184.192.53 (talkcontribs)

I have not had any issues in the past with any ConfirmEdit setup. I have had QuestyCaptcha set up on a mediawiki before. However, setting up Confirmedit and questycaptcha per the file, it gives me a 500 error.


SheldonBole (talkcontribs)

I was also receiving a 500 error. I am using MediaWiki 1.34 and was using require_once for QuestyCaptcha. When I removed this and added wfLoadExtensions my page loaded as expected.

This is explained at Extension:ConfirmEdit as follows:

// If your MediaWiki version is 1.25 or higher, use this line: wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]);

// Else use these lines: require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php"; require_once "$IP/extensions/ConfirmEdit/QuestyCaptcha.php";

173.184.192.53 (talkcontribs)

I also found the following errors

[Sun Mar 29 15:21:56.553998 2020] [php7:warn] [pid 10690] [client 46.229.168.129:4538] PHP Warning:  mt_rand(): max(-1) is smaller than min(0) in /var/www/v5homebrew.com/public_html/mw/extensions/ConfirmEdit/QuestyCaptcha/includes/QuestyCaptcha.php on line 61

[Sun Mar 29 15:21:56.554088 2020] [php7:notice] [pid 10690] [client 46.229.168.129:4538] PHP Notice:  Undefined offset: 0 in /var/www/v5homebrew.com/public_html/mw/extensions/ConfirmEdit/QuestyCaptcha/includes/QuestyCaptcha.php on line 61

[Sun Mar 29 15:24:49.180120 2020] [php7:emerg] [pid 19004] [client 207.46.13.219:2281] PHP Parse error:  syntax error, unexpected 's' (T_STRING), expecting ']' in /var/www/v5homebrew.com/public_html/mw/LocalSettings.php on line 216


Line 216 is one of the questions for QuestyCaptcha.

173.184.192.53 (talkcontribs)

I figured it out. There were some characters that were trying to be parsed that needed to be escaped.

Reply to "ConfirmEdit/QuestyCaptcha causing 500 error."