latest stable versions: v140409 (changelog)

Old Forums (READ-ONLY): The community now lives at WordPress.org. If you have an s2Member® Pro question, please use our new Support System.

Google Recurring problem.

Home Forums Community Forum Google Recurring problem.

This topic contains 13 replies, has 5 voices.
Last updated by  Cristián Lávaque 12 months ago.

Topic Author Topic
Posted: Monday Apr 22nd, 2013 at 6:04 pm #48111
Michael Toomey
Username: siath

I don’t what’s wrong but my recurring buttons stopped working. The non-recurring are still working fine.

It looks like the “time” isn’t getting the time and returning %%rrt%% instead of a time. But, I don’t know why.

Here’s the error

XML failed to validate against the schema at line: 1, column 1, with error: cvc-datatype-valid.1.2.1: '%%rrt%%' is not a valid value for 'integer'. XML failed to validate against the schema at line: 1, column 1, with error: cvc-attribute.3: The value '%%rrt%%' of attribute 'times' on element 'subscription-payment' is not valid with respect to its type, 'null'. Error parsing XML; message from parser is: Invalid value for attribute times in checkout-shopping-cart/shopping-cart/items/item/subscription/payments/subscription-payment: This is not a number

Here is my button code when copying link of course I removed the web addy…

http://www.********.com/wordpress/?s2member_pro_google_co=1&co%5Blevel%5D=1&co%5Bccaps%5D&co%5Bdesc%5D=Basic+Subscriber+access%2C+Recurring+Monthly&co%5Bcc%5D=USD&co%5Bcustom%5D=www.*******.com&co%5Bta%5D=0&co%5Btp%5D=0&co%5Btt%5D=M&co%5Bra%5D=7.50&co%5Brp%5D=1&co%5Brt%5D=M&co%5Brr%5D=1&co%5B

rrt%5D=%25%25rrt%25%25

&co%5Bimage%5D=default&co%5Boutput%5D=anchor&_s2member_sig=1366668009-ea38e767f9a545eabe688f0193eb5bc1

The button generated code looks like it always does. I enlarged the part I think there is something wrong with. By the way, it was working up until at least the 11th of this month. Could this be a code error as all this started happening after I did an update.

List Of Topic Replies

Viewing 13 replies - 1 through 13 (of 13 total)
Author Replies
Author Replies
Posted: Monday Apr 22nd, 2013 at 8:10 pm #48137
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

Could you post the Shortcode you’re using? Also, could the first two steps in this article?

See: Knowledge Base » Common Troubleshooting Tips

Posted: Monday Apr 22nd, 2013 at 8:39 pm #48139
Michael Toomey
Username: siath
[s2Member-Pro-Google-Button level="1" ccaps="" desc="Basic Subscriber access, Recurring Monthly" cc="USD" custom="www.*********.com" ta="0" tp="0" tt="M" ra="7.50" rp="1" rt="M" rr="1" rrt="" image="default" output="anchor" /]

That’s the button code, which hasn’t changed. It’s the same As I’ve been using for past 2 years.

The theme hasn’t changed in a year or so and it was working up until the 11th of this month, changed to default and still wasn’t working. As far as the other plugins well I’ve not added any for over a half year. However, I turned off ALL plugins and even removed them from the folder except for S2 Member and I still get the same error.

In addition I ran the S2 server scanner and passed all but the memory setting, which I applied the fix for. (And still get same error).

Posted: Tuesday Apr 23rd, 2013 at 7:52 am #48175
Staff Member

Thanks for the info and tests. Did you try every tip in the troubleshooting article, including reproducing the problem in a clean test installation of WP with just s2Member?

Could you submit your site’s info so we can look at it? Let us know when you sent it. Thanks! s2Member® » Private Contact Form

Could this be a code error as all this started happening after I did an update.

What did you update? s2Member? What version?

Posted: Tuesday Apr 23rd, 2013 at 9:27 am #48190
Michael Toomey
Username: siath

I don’t know when it happened, I.E. what update and version of S2/WP. I do know I have two sites, One is up to date and the other is running an update or two behind and I have the same problem on that site too, same error and everything. The sites are on two different servers too.

I’m not saying it’s something you all caused or such. It could be a conflict that WP caused.

No, I didn’t do the fresh install, I’m an over the road truck driver and to be honest I just don’t have the time.

The site you’re asking for access too isn’t my site, I’m just the webmaster. The site that is mine doesn’t use Google, however it is set up for it.

To be honest, I don’t know if the person who owns the website would be comfortable with someone having full access to his stuff. Yes, he’s a member here, so I’ll ask him and he can give you access if he likes.

All I know is something is broken somewhere.

Posted: Tuesday Apr 23rd, 2013 at 10:04 am #48193
Michael Toomey
Username: siath

I talked to the owner of the site having the problem. He’s not comfortable with allowing access to his site.

My version of pro is 130404 and his is 130406.

My guess is it would be version 130220 is where the error began, just wasn’t noticed until now. That is the one before my update and I have same issue he does.

In that update, lang stuff was changed for google and paypal and it makes me wonder if there was some type of error introduced. I really wish I could help more but I’ve done just about everything I know to do. This bug should be easy to reproduce like i said two different site two different servers and two different version give the same error when trying to do a recurring subscription through google. It’s sending %%rrt%% to google as a time instead of a time and it’s getting rejected.

Posted: Tuesday Apr 23rd, 2013 at 10:37 am #48194
JB ALPHA LLC
Username: jbalpha

Having this same problem after the 2 last updates

Posted: Tuesday Apr 23rd, 2013 at 10:49 am #48196
JB ALPHA LLC
Username: jbalpha

Seems to be a problem with recurring payments, non recurring payments still work

Posted: Tuesday Apr 23rd, 2013 at 5:39 pm #48218
JB ALPHA LLC
Username: jbalpha

Fixed the problem with &&rrt&& by restoring a older version of the google button file. File is google-checkout-button.php.
directory is: s2member-pro\includes\templates\buttons

this should be the code

<?php
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
	exit ("Do not access this file directly.");
?>

<a href="%%wpurl%%/?s2member_pro_google_co=1&amp;co[level]=%%level%%&amp;co[ccaps]=%%ccaps%%&amp;co[desc]=%%desc%%&amp;co[cc]=%%cc%%&amp;co[custom]=%%custom%%&amp;co[ta]=%%ta%%&amp;co[tp]=%%tp%%&amp;co[tt]=%%tt%%&amp;co[ra]=%%ra%%&amp;co[rp]=%%rp%%&amp;co[rt]=%%rt%%&amp;co[rr]=%%rr%%&amp;co[image]=%%image%%&amp;co[output]=%%output%%">
 <img src="https://checkout.google.com/buttons/checkout.gif?w=180&amp;h=46&amp;style=trans&amp;variant=text&amp;loc=<?php echo urlencode (_x ("en_US", "s2member-front google-button-lang-code", "s2member")); ?>" style="width:auto; height:auto; border:0;" alt="Google®" />
</a>
Posted: Tuesday Apr 23rd, 2013 at 10:31 pm #48254

@JB Alpha LLC – thank you! I started configuring s2Member for the first time last night and was stumped on this. Decided to Google the error today and found your solution posted just 5 hours earlier. I can confirm that this fixes the issue on my site.

s2Member – can we expect this to be patched in the next update?

Thanks,
Joe

Posted: Wednesday Apr 24th, 2013 at 12:52 am #48258
Staff Member

Thanks for the updates/reports, guys. I’m forwarding this to Jason.

Posted: Thursday Apr 25th, 2013 at 8:54 am #48355
Staff Member

Here’s what Jason said:

This bug has been fixed in the development copy.

I uploaded a PATCH file here they can use until the next release.
Unzip and upload the attached file, allowing it override your existing copy of;
/s2member-pro/includes/classes/gateways/google/google-buttton-in.inc.php

http://d1v41qemfjie0l.cloudfront.net/s2member/uploads/google-button-in.inc_.php_.zip

Posted: Thursday Apr 25th, 2013 at 3:29 pm #48389
Michael Toomey
Username: siath

I seen that I was wondering if it was missing from that file… Thanks for the quick fix. :)

Posted: Friday Apr 26th, 2013 at 9:10 am #48476
Staff Member

No problem. :)

Viewing 13 replies - 1 through 13 (of 13 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WordPress.org. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.