Extension talk:Asirra

Comments are highly appreciated. Also help with the translations is. --Bachsau 01:22, 19 February 2011 (UTC)

Mysterious reload bug (Need more information)
It doesn't seem to be working for my wiki. Everything looks fine but after I select the kittens and press save, it simply reloads the page and asks me to select the kittens again. Thoughts? I'm using mediawiki 1.13.1 and I also use editwarning extension. March 10,2011
 * Thanks for reporting. Sorry, I couldn't reproduce it. Could you please post some more information on your browser, server and operating system? Please try to edit the Test Page to determine wether the problem belongs to your Browser or your Web Server. --Bachsau 04:46, 21 April 2011 (UTC)

Undefined property (Fixed since 0.5)
Same problem here with mediawiki 1.16.2. I also have this warning Notice: Undefined property: Asirra::$asirra_localscript in htdocs/wiki/extensions/ConfirmEdit/Asirra.class.php on line 30 --82.67.180.172 05:41, 5 April 2011 (UTC)
 * I have the same problem when trying to edit a page with a URL in it. --222.152.234.227 02:43, 13 April 2011 (UTC)
 * Fixed in Version 0.5. Thanks for reporting. --Bachsau 04:46, 21 April 2011 (UTC)

Off by 1 bug in Asirra.class.php (Fixed since 0.6)
I cam across this bug in version 0.5. The path to the scripts asirra_contentloaded.js and asirra_humanverify.js linked in the form had an extra character in front, from my server path. ie. I had  instead of  

I could fix it with this patch: $ diff -u /tmp/Asirra.class.php.orig /tmp/Asirra.class.php --- /tmp/Asirra.class.php.orig 2011-04-21 06:32:19.000000000 +0200 +++ /tmp/Asirra.class.php      2011-06-04 18:23:03.000000000 +0200 @@ -31,7 +31,7 @@               {                        if (strpos(__FILE__, $_SERVER['DOCUMENT_ROOT']) === 0) { -                              $this -> asirra_localpath = substr(dirname(__FILE__), strlen($_SERVER['DOCUMENT_ROOT']) - 1); +                              $this -> asirra_localpath = substr(dirname(__FILE__), strlen($_SERVER['DOCUMENT_ROOT'])); }                       else {

 — Albert25 16:33, 4 June 2011 (UTC)


 * Thanks for reporting. I'll look into this. Could you please tell me about the webserver you're using? --Bachsau 16:49, 4 June 2011 (UTC)


 * I'd bet this is due to the optional trailing slash on DocumentRoot in Apache's httpd.conf. Both of the following are valid for Apache:

DocumentRoot = "/home/www/xxx/" DocumentRoot = "/home/www/xxx"
 * In the first case, doing a substr at len(DocumentRoot) would remove the '/', which you want to keep as the leading slash for your script path, so you do len - 1. In the second case, doing that leaves you with an 'x' instead of a '/'.  I would recommend removing the full DocumentRoot, then adding a leading slash if necessary. (syntax not guaranteed as I'm not a PHP expert):

$this -> asirra_localpath = substr(dirname(__FILE__), strlen($_SERVER['DOCUMENT_ROOT'])); if ( strpos($this -> asirra_localpath, '/' != 1 ) {  $this -> asirra_localpath = '/' . $this -> asirra_localpath; }
 * —Dr ishmael 20:13, 8 June 2011 (UTC)


 * No, must be something server specific, as apache always includes the trailing slash, regardless of how the DocumentRoot ist set. Will release a new version soon. --Bachsau 21:52, 8 June 2011 (UTC)
 * Fixed in Version 0.6. --Bachsau 21:43, 11 June 2011 (UTC)