[googlecheckout / Siriux] recieving 'The test failed...' error.

andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 10:24

Hello,
I'm trying to get the GoogleCheckout module working, I have SSL enabled (padlock visible in status bar in https urls), I have set up both Google Merchant and Sandbox Merchant Accounts - each with the settings specified in the module codex page.

Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.8 cgi-fcgi
Webserver = Apache/2.0.63 (FreeBSD) DAV/2 SVN/1.5.2 mod_python/3.3.1 Python/2.5.1 PHP/5.2.6 with Suhosin-Patch mod_ssl/2.0.63 OpenSSL/0.9.7e-p1 mod_fastcgi/2.4.6 mod_perl/2.0.3 Perl/v5.8.8
Database = mysqlt 5.0.51a-log, lock.system=flock
Toolkits = ImageMagick, LinkItemToolkit, Thumbnail, SquareThumb
Operating system = FreeBSD ash.34sp.com 6.3-RELEASE-p5 FreeBSD 6.3-RELEASE-p5 #2: Thu Oct 16 09:27:47 BST 2008
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Default theme = siriux

When I try the 'Test notification URL' button for this URL 'https://www.mysite.co.uk/gallery/main.php' I get the following error message:
The test failed. You cannot receive Google Checkout notifications at this url.
Security Violation
The action you attempted is not permitted.
Back to the Gallery

When I create an order and then try the Google Checkout payment button from the checkout page I get this error:
Apologies. There was a problem preventing you from transferring to the Google Checkout service. Please try again, or choose another method of payment.

And I receive an email containing the following (merchant id & key altered):

Administrative Notification:

GoogleCheckout: there was a problem preparing an order when a user tried to use Google Checkout.

We contacted Google at this url:
https://checkout.google.com/api/checkout/v2/merchantCheckout/Merchant/000000000000000

The response code was:
https://checkout.google.com/api/checkout/v2/merchantCheckout/Merchant/000000000000000HTTP/1.0 400 Bad Request

The Google Website returned the following response in the body:

<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://checkout.google.com/schema/2" serial-number="00000000-0000-0000-0000-000000000000">
  <error-message>Error parsing XML; message from parser is: The entity "Atilde" was referenced, but not declared.</error-message>
</error>

Help getting this to work would be greatly appreciated.
Andy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 12:22

Have you read (and acted upon) the section of the Codex Page (http://codex.gallery2.org/Gallery_2:Modules:checkoutgoogle) entitled "Configuring your Apache Webserver"?

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 14:23

I looked at that and I'd already added the suggested code (as below) to my .htaccess file located in: gallery/

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

RemoveHandler .php
AddType application/cgi-php php
Action application/cgi-php /cgi-bin/php.cgi

Is there another .htaccess file in a different folder I should have added the code to? Or is there anything else you can think of that I should modify too?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 14:33

Forget about the HTTPS for now - just use your regular gallery url in the box, to make sure the auth data is being decoded correctly. If you get the test working with a regular url then you stress about the HTTPS after.

If that doesn't work, add this at line 87 of CheckoutGoogleResponseHelper.class:

echo "Id recieved as $compareMerchantId and Key as $compareMerchantKey";

and see what the test failure message is.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 16:09

I changed the test URL to: http://www.mysite.co.uk/gallery/main.php
I added that line in CheckoutGoogleResponseHelper.class as per below,

	} else if(isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) {
            list($compareMerchantId, $compareMerchantKey) = explode(':', 
			base64_decode(substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'],
			strpos($_SERVER['REDIRECT_HTTP_AUTHORIZATION'], " ") + 1)));
	} else {
        return false;
	}
	echo "Id recieved as $compareMerchantId and Key as $compareMerchantKey";
	if($compareMerchantId != $gcMerchantId || $compareMerchantKey != $gcMerchantKey) {
        return false;
      }
      return true;
    }

I get the same error messages as before (see below), is the code above in the correct place?

When I hit the test URL button I get this error:
The test failed. You cannot receive Google Checkout notifications at this url.

When I try to checkout I get this error:
Apologies. There was a problem preventing you from transferring to the Google Checkout service. Please try again, or choose another method of payment.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 16:14
Quote:
When I try to checkout I get this error:

There's absolutely not point even trying that, until you get the test to succeed.
What url are you putting in the box?

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 16:18

This is the actual URL I have there at the moment:

http://www.andybeck.co.uk/gallery/main.php

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 16:53

Looks like your php installation isn't picking up the http auth data from the request. Unfortunately that's an Apache/php thing and I don't have the resources to debug individual installations, so you're going to have to fall back on your own resources to fix it or find a workaround. Your hosting provider might be able to help. With that extra line added to the file, you'll know when the required data is being picked up because you'll see something like this:

The test failed. You cannot receive Google Checkout notifications at this url.

Id recieved as <merchantId> and Key as <merchantKey>OK

If you get that, then take the debugging line out, and you should be hot to trot.

Let me know if you find out anything useful that I can put in the codex for other people. Oh, and definitely the nicest Gallery installation I've seen.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 17:31

OK, I'll get onto my host and see if they are able to offer any help, they are usually very good.
I'll report back here if I make any progress, and thanks for the compliment :)

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 18:15

I've already had a reply from my host(34SP):

Quote:
This is very correct, http_auth data is an apache thing as standard so under phpcgi this maybe an issue.

Could you ask the developer how we can pass a valid string too it so we can test this and ill see what i can do, it sounds like he has a debug script that we maybe able to make use of to look into this further for you.

Are you able to provide the above requested info?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 18:19

Hi Andy,

I've been reading up further. Useful info is at the codex page for the Gallery "http auth" module http://codex.gallery2.org/Gallery2:Modules:httpauth which faces the same issue as checkoutgoogle. This module defines a url-rewrite rule that (effectively) does the same thing as the the manual .htaccess (I'm looking at putting the rewrite rule into checkoutgoogle which would automate things a bit.)

I'll have a think what would narrow down the issue for your hosting provider to look at.

In the mean time you could try that module and if you get it to work let me know - that would be a good sign.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 19:39

Hi,

I installed that module from within my Firefox browser...

I then tried to login with IE but it wouldn't let me get in to the admin section, even though I was entering the correct username and password.

So I then went back to my open Firefox browser window and disabled then un-installed the HTTP Auth module.

I'm not very technical so didn't really know what to do to test if the module was working or not, and to be honest I was a bit worried about locking myself out of the admin section all together.

I can try installing the module again if you are able to give me more explicit instructions? Otherwise I'll wait and see what you come up with for me to ask my hosting provider to look at.

Thanks again for the help,
Andy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 18:57

I'm just hacking the http auth module's code into checkoutgoogle to see if that works. I might have something to try in about 20 minutes.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 20:24

Can you please try this version? Assuming you have url rewrites enabled via mod_rewrite (I think you do, and if you don't then please arrange it) can you check a) if it installs and b) if you see a a new rewrite rule offered to you in the url-rewrite admin page? if so, please activate it, and save. Then can you post or pm me a copy of your rewrite rules please?

If you get that far with no errors, then try the test page and see what happens.

I have no actual method to test this as at present I don't have a server running php-cgi that will use mod-rewrite. This is quite experimental, so please make sure you have a backup of your gallery installation.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 21:36

Alec,
I didn't actually have URL Rewrite installed, so I have now installed it and it seems to be working.
Just installing this version of CheckoutGoogle - uploaded the folder contained in the zip file to replace the one on my site.

So now in the plugins directory I have:

Checkout by Google
Complete checkout by Google Checkout
Incompatible plugin!
Core API Required: 7.34 (available: 7.18)
Plugin API Required: 3.0 (available: 3.5)

Does this mean I'll have to update those ?
I'm not going to be around until Sunday evening or Monday, can we pick up from here then?

Thanks for all the help so far,

Andy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 21:59

You'll need Gallery 2.3 to use it.

EDIT... oh... wait... the old version (the 'official' release) was only compatible with 2.3 as well, unless you updated one of the core files (see the codex page!) so that's one additional reason why it's not working.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Fri, 2008-11-14 22:25

I currently have Gallery version 2.2.3, should I upgrade this or just leave it as is?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-14 22:40

Well, you should definitely upgrade, 2.2.3 is ages old, and several serious security fixes have been applied up to 2.2.6. Then 2.3 is a major upgrade. But it's not something you want to do lightly. Definitely have backups first, and be prepared to use them if it doesn't go smoothly.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-11-15 17:16

New version of code attached.

This one should auto-generate a url-rewrite rule, if it's needed, so no need to edit .htaccess files any more. I'm waiting to hear from people if it works, particularly those with difficulties with this module up to now.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 12:21

Hi Alec,

I have successfully upgraded to gallery 2.3 and installed the newest updated checkoutgoogle module from your attached zip.

It looks like it has added 'Authorization Header' under a separate heading 'Checkout by Google' to the URL Rewrite module.

However, I still receive the same error below when trying the Test notification URL button:
The test failed. You cannot receive Google Checkout notifications at this url.

Do you have a list of files/settings I should check? (such as the .htaccess file for example)
Or anything I should ask my hosting provider to look into?

Thanks,
Andy

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 12:21

Hi Alec,

I have successfully upgraded to gallery 2.3 and installed the newest updated checkoutgoogle module from your attached zip.

It looks like it has added 'Authorization Header' under a separate heading 'Checkout by Google' to the URL Rewrite module.

However, I still receive the same error below when trying the Test notification URL button:
The test failed. You cannot receive Google Checkout notifications at this url.

Do you have a list of files/settings I should check? (such as the .htaccess file for example)
Or anything I should ask my hosting provider to look into?

Thanks,
Andy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 13:33

So the rewrite rules in your .htaccess should include this:

    RewriteCond %{HTTP:Authorization} (.+)
    RewriteCond %{QUERY_STRING} !g2_authorization=
    RewriteRule .   %{REQUEST_URI}?g2_authorization=%1   [QSA]

To copy the Authorization header into a request variable called "g2_authorization".

If your host is helpful and will enable rewrite logging (has to be done in the apache virtual-host configuration, can't be done locally in .htaccess, I read :-(, then you should see something like this. if it's working - and if you make a request with an authorization header to the right page.

Quote:
77.103.4.46 - - [17/Nov/2008:13:22:44 +0000] [mywebsite.co.uk/sid#81a92a0][rid#8315030/initial] (4) [perdir /var/www/mywebsite.co.uk/public_html/gallery2/] RewriteCond: input='g2_view=checkoutgoogle.HttpAuthWorks' pattern='!g2_authorization=' => matched
77.103.4.46 - - [17/Nov/2008:13:22:44 +0000] [mywebsite.co.uk/sid#81a92a0][rid#8315030/initial] (3) split uri=/gallery2/main.php?g2_authorization=xxxxxxx -> uri=/gallery2/main.php, args=g2_authorization=xxxxxxx&g2_view=checkoutgoogle.HttpAuthWorks

Now if that is working, it should be simple for Gallery to pick up the required info, which it isn't doing at the moment. It should be reflected straight back in the output, if you test to the ...main.php?g2_view=checkoutgoogle.HttpAuthWorks URI with an Authorization header - and at present that's giving nada.

So ... if your host will enable the logging temporarily we can see if the rewrite rule is doing anything useful.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 13:52

I have just asked my host for rewrite logging to be enabled.

My .htaccess file looks as below, let me know if anything needs altering:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>


# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /gallery/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   -   [L]

    RewriteCond %{HTTP:Authorization} (.+)
    RewriteCond %{QUERY_STRING} !g2_authorization=
    RewriteRule .   %{REQUEST_URI}?g2_authorization=%1   [QSA]
</IfModule>

# END Url Rewrite section

RemoveHandler .php
AddType application/cgi-php php
Action application/cgi-php /cgi-bin/php.cgi

By the way, in 'URL Rewrite Administration' I see the following:

Apache mod_rewrite
Testing if mod_rewrite is supported by the server. - Success

Gallery .htaccess file
Testing if Gallery can write to the .htaccess file. - Success

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 14:06

That's all good. Ok, so if you get a positive response on the "we've enabled logging" then let me know.

Oh, wait - can you *remove* the first section, the bit you added by hand - that's not needed any more (and in fact might well be screwing things up at this point.)

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 15:12

Good news... you can call off the Hosting Provider dogs - it looks like the right auth data is getting through now. (Did you just remove that entry?)

You can go ahead and try the test page again now...

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 15:25

I will let you know when I recieve a responce from my host.

One thing I just thought I should mention about the URL Rewrite module, although it appears to have installed correctly, it doesn't seem to be working!

If I activate 'Show Item' then try to click on a thumbnail in the gallery to open a descriptive URL, I always get a 404 error. If I activate 'Download Item' the thumbnail images fail to load in.

This is despite the Test tab showing 'success' for both 'Apache mod_rewrite' and 'Gallery .htaccess file'.

Does this point to something obvious that might be wrong with my gallery/server setup?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 15:38

You can turn off all the active rewrite rules in the admin page (download and show item I think are enabled by default) if they don't suit ... probably a good idea for now as that would be a problem for another thread (and probably another person!) - leave the checkoutgoogle one enabled of course.

Now, we don't need to wait for your host - try the test page again, as the auth data is getting through.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 15:46

Just had the following response from my host:

Quote:
We can do this - at what level debug does he want it set too - these can get very large so if you can let me know we can get this sorted for you.

Please note i did make a minor change to the fastcgi config earlier today it was missing the --pass-header function so this may help in this issue - let me know.

I've just tried Checkout Google, and yes, you're probably already ahead of me here, after hitting the test button I now get:

The test was succesful. You can receive Google Checkout notifications at this url.

And that was using https!

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 15:55

Hurrah. Nice to have a success story with this module, for once.

Quote:
Please note i did make a minor change to the fastcgi config earlier today it was missing the --pass-header function so this may help in this issue

Interesting. That might indeed have made the difference...it's worth checking - try disabling the checkoutgoogle rewrite rule, verify that the entry has been removed from the .htaccess file, and then try the test page again. If it still works, then it was probably the change to the fastcgi configuration.

Please thank your hosting provider from me - and it looks like we don't need the rewrite logging after all. (How nice to have a hosting provider who's prepared to push the boat out for a customer...)

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 15:59

However when attempting to submit an order to google sandbox I still get the following error:

Apologies. There was a problem preventing you from transferring to the Google Checkout service. Please try again, or choose another method of payment.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 16:01

Ok.. but that's still progress! You should get an email with info about the error. What does it say?

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 16:09

Alec,

After disabling the checkoutgoogle rule, I looked at the .htaccess file and all the rewrite stuff had gone, i tried the Checkout Google URL test button and it was back to its error state.

So it seems both the fastcgi configuration change and the URW Rewrite thing were required, i'll turn the URL rewrite back on now...

Andy

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 16:13

Administrative Notification:

GoogleCheckout: there was a problem preparing an order when a user tried to use Google Checkout.

We contacted Google at this url:
https://sandbox.google.com/checkout/api/checkout/v2/merchantCheckout/Merchant/000000000000000

The response code was:
https://sandbox.google.com/checkout/api/checkout/v2/merchantCheckout/Merchant/000000000000000HTTP/1.0 400 Bad Request

The Google Website returned the following response in the body:

<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://checkout.google.com/schema/2" serial-number="00000000-0000-0000-0000-000000000000">
<error-message>Error parsing XML; message from parser is: The entity "Atilde" was referenced, but not declared.</error-message>
</error>

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 16:26

Hmm... Atilde is a latin A with the ~ symbol over it.

Can you add these lines to SendData.inc at 163, please:

	    $statusMessage[] = array('domain' => 'modules_checkoutgoogle',
	    			     'data' => $gallery->i18n('The content of our message was:'));
	    $statusMessage[] = "\n" . $googleData . "\n\n";

And try again.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 17:03

Administrative Notification:

GoogleCheckout: there was a problem preparing an order when a user tried to use Google Checkout.

We contacted Google at this url:
https://sandbox.google.com/checkout/api/checkout/v2/merchantCheckout/Merchant/000000000000000000

The content of our message was:
<?xml version="1.0" encoding="UTF-8"?>
<checkout-shopping-cart xmlns="http://checkout.google.com/schema/2">
<shopping-cart><merchant-private-data>
<transactionId>268</transactionId>
<mainURL>http://www.andybeck.co.uk/gallery/main.php</mainURL>
</merchant-private-data><items><item>
<item-name>Smiling Husky</item-name>
<item-description>Gicl&Atilde;&copy;e Print on Paper</item-description>
<unit-price currency="GBP">33</unit-price>
<quantity>1</quantity>
</item></items>
</shopping-cart><checkout-flow-support>
<merchant-checkout-flow-support><shipping-methods>
<flat-rate-shipping name="Postage (please allow 7 days for delivery) ">
<price currency="GBP">8.00</price>
<shipping-restrictions>
<allowed-areas><world-area/></allowed-areas>
</shipping-restrictions>
</flat-rate-shipping>
</shipping-methods><edit-cart-url>http://www.andybeck.co.uk/gallery/main.php?g2_view=checkout.Confirm</edit-cart-url>
<continue-shopping-url>http://www.andybeck.co.uk/gallery/main.php?g2_controller=checkout.Complete&amp;g2_transactionId=268&amp;g2_verify1=0000000000&amp;g2_verify2=0000000000000000000.00000000&amp;g2_authToken=000000000000</continue-shopping-url>
</merchant-checkout-flow-support>
</checkout-flow-support></checkout-shopping-cart>

The response code was:
https://sandbox.google.com/checkout/api/checkout/v2/merchantCheckout/Merchant/00000000000000000HTTP/1.0 400 Bad Request

The Google Website returned the following response in the body:

<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://checkout.google.com/schema/2" serial-number="00000000-0000-0000-0000-000000000">
<error-message>Error parsing XML; message from parser is: The entity "Atilde" was referenced, but not declared.</error-message>
</error>

You can check the status of this order any time at this location:
http://www.andybeck.co.uk/gallery/main.php?g2_view=checkout.OrderStatus&g2_transactionId=268&g2_verify1=0000000000&g2_verify2=0000000000000000000000000.0000000

So does it mean it is the French word giclee which was in my item description with the accent on the first e that is causing a problem?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 17:14

The item you had in the basket (the Gicle s.p?) print - try renaming it without the international character. It appears there's a character encoding issue passing stuff to google. But I can look at that later.

Quote:
So does it mean it is the French word giclee which was in my item description with the accent on the first e that is causing a problem?

yes.

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Mon, 2008-11-17 17:18

It appears to be the case, Google Checkout doesn't seem to like characters with accents.

I take my hat off to you sir, you have the patience of a saint!

Checkout Google now seems working exactly as it should, that URL Rewrite add-on to the module might be worth including in your next release as it is certainly required for my particular set up.

Thanks once again for all your help with this Alec,

Andy :)

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-17 17:23

No problem. As I said, it's nice to have a success story. I'll look into the international characters issue, too.

I'll probably upgrade the checkoutgoogle code on the repository some time soon too.

If you want to do me a favour, and if your checkout installation isn't too precious (i.e. you don't mind uninstalling/reinstalling checkout if the worst comes to the worst) can you try the upgrade in this thread, and let me know (there) if it goes smoothly?

http://gallery.menalto.com/node/83562

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-24 14:05

I think the international characters issue is fixed; the code is in the Subversion repository, and it should be downloadable via "get new plugins" in a few hours.
You're looking for code revision 1686.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-26 15:54

After some extensive work with neilj, I've changed the rewrite rule, and added an extra option in the admin page.

It's for anyone using cgi-based php who needs to have the authorization data written into a url parameter using the URL Rewrite module, and who can't presently get the test to work.

The international characters issue is fixed.

@andy_uk: could you try updating to the new version and let me know if the test button works for you?
The newest version is code revision 1688 and should be available from the get more plugins page in about 5 hours from now.