Page 1 of 1

Problem with link in Thank You email - TinyURL Generator?

PostPosted: August 25th, 2011, 6:12 pm
by myboxingcoach
Hey there

Has anyone experienced a problem with the %%registration_url%% replacement code in their Thank You email? All other replacement codes are working fine, but this one rather than directing the click to the registration page actually just deposits the user to the home page, from where registration is not possible. I have only become aware of this today, bit difficult to know as many could have registered directly after the PayPal payment. Could it be a problem with the generation of the TinyURL? My only option at this stage is to place a hard-coded link, not something I'm desperately eager to do.

Any help would be very much appreciated.

Thanks

PS running S2member Pro. This is the first issue I've encountered, absolutely top product that's given me great value for money :)

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: August 25th, 2011, 10:05 pm
by kevinsperrine
Does the registration url (full url not the tinyurl version) end in a tilde by any chance? I'm having the exact same issue, and I've determined that's the cause.

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: August 26th, 2011, 3:26 pm
by kevinsperrine
It's possible you are having the same problem I had.

http://www.primothemes.com/forums/viewtopic.php?f=4&t=14666

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: August 29th, 2011, 11:59 am
by Cristián Lávaque
myboxingcoach wrote:Hey there

Has anyone experienced a problem with the %%registration_url%% replacement code in their Thank You email? All other replacement codes are working fine, but this one rather than directing the click to the registration page actually just deposits the user to the home page, from where registration is not possible. I have only become aware of this today, bit difficult to know as many could have registered directly after the PayPal payment. Could it be a problem with the generation of the TinyURL? My only option at this stage is to place a hard-coded link, not something I'm desperately eager to do.

Any help would be very much appreciated.

Thanks

PS running S2member Pro. This is the first issue I've encountered, absolutely top product that's given me great value for money :)


Thank you for the kudos! :)

I received your email with more info about the problem, too.

I am running S2Member Pro. I have a set up integration with PayPal (not using ProForms.) Following successful payment via PayPal, the user is shown a dialogue box and then redirected to the WordPress user registration page. At the same time, the 'Thank You' email is sent containing a link (live for 3 days) that enables the user to gain access to the WordPress registration page. I assume that there are parameters that would allow the appropriate level of membership to be applied.

Unfortunately the link has ceased to work, depositing the user to the site homepage rather than the user registration page. I am unable to identify exactly when the email link stopped working, although can confirm that when the process went live on 18th July it was working appropriately.


The registration link sent by email does expire. Still, if the user was returned to the website after payment, s2Member set some cookies in his browser that will let him register with the level he paid for. The registration form can be found here /wp-login.php?action=register

If you feel he needs a new registration link, you can generate one from here: WP Admin -> s2Member -> PayPal Buttons -> PayPal Member Registration Access Links

I hope this helps. :)

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: August 29th, 2011, 3:34 pm
by myboxingcoach
kevinsperrine wrote:Does the registration url (full url not the tinyurl version) end in a tilde by any chance? I'm having the exact same issue, and I've determined that's the cause.


Thanks Kevin. No tilde, but I'll see if Christian's response can play a part in a solution.

Thank you both!

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: August 29th, 2011, 4:52 pm
by Cristián Lávaque
You're welcome! Let us know how if you need more help. :)

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: September 30th, 2011, 12:57 am
by swelle
I'm running free version and just did a couple tests and with each one the tinyurl link in the Thank You email was expired. Got this message when I clicked on it:

Your Link Expired:
Please contact Support if you need assistance.

Is this a mod security issue or is there something else I'm missing? No tilde and I host with iPage.

Thanks in advance :)

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: September 30th, 2011, 11:18 am
by swelle
Oh, and one more thing - I was clicking on the links immediately after the fact...not days afterwards where they'd be expired anyway.

THANKS :)

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 1st, 2011, 1:41 pm
by Cristián Lávaque
Thank you for reporting that. I'll notify Jason to look into it.

In the meantime, you may be interested in how to use another URL shortening service: viewtopic.php?f=4&t=1636&p=7331#p7677

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 1st, 2011, 10:24 pm
by Jason Caldwell
Thanks for the heads up on this thread.
Confirmed, this is fixed in the development copy, coming in public release shortly.

* (s2Member) **tinyURL® bug fix**. s2Member's handling of potential failures in the output of tinyURLs, generated by the tinyURL® API; was NOT considering all possibilities. A symptom of this bug was to see URLs in your Signup Confirmation Email (occassionally, upon connection failure to the tinyURL® API, when it was down for whatever reason) starting with: `Error#`. Corrected in this release.

* (s2Member) **URL Shortening API (Preference)**. s2Member now includes a class method dedicated to URL shortening service APIs. Currently, s2Member will use the tinyURL® API first *(i.e. tinyurl.com )*, and then use the Google® URL Shortening API *(i.e. goo.gl )* as a backup when/if the tinyURL® API is down for whatever reason. In this release, a new configurable option is available, which allows advanced site owners to preference the Google® Shortening API over tinyURL®, if they desire. For further details, please check your Dashboard, under: `s2Member -> General Options -> URL Shortening API (Preference)`.

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 2nd, 2011, 7:10 pm
by swelle
Thank you, Jason! Greatly appreciate the response.

So, is there anything I can do in the short term to rectify the problem or should I wait for the public release? As of now I'm running regular version but there seems to be more and more compelling evidence for me making the upgrade to Pro :)

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 3rd, 2011, 10:49 pm
by Jason Caldwell
Very welcome. s2Member v111003 is now available:
http://wordpress.org/extend/plugins/s2member/changelog/

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 4th, 2011, 8:44 am
by swelle
Awesome - already installed, tested by a couple people and it's working beautifully. Yeah!

I would also like to say that your plugin, feedback, tutorials and support is absolutely top notch. I can't tell you how much coding newbies (like me) appreciate your responsiveness and everything you do. Kudos and thanks again.

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 8th, 2011, 7:36 pm
by Jason Caldwell
Thank you VERY much for the kudos, and you are very welcome. Great to hear that :-)

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 15th, 2011, 2:21 pm
by dspruyt
Cristián Lávaque wrote:
myboxingcoach wrote:Hey there

Has anyone experienced a problem with the %%registration_url%% replacement code in their Thank You email? All other replacement codes are working fine, but this one rather than directing the click to the registration page actually just deposits the user to the home page, from where registration is not possible. I have only become aware of this today, bit difficult to know as many could have registered directly after the PayPal payment. Could it be a problem with the generation of the TinyURL? My only option at this stage is to place a hard-coded link, not something I'm desperately eager to do.

Any help would be very much appreciated.

Thanks

PS running S2member Pro. This is the first issue I've encountered, absolutely top product that's given me great value for money :)


Thank you for the kudos! :)

I received your email with more info about the problem, too.

I am running S2Member Pro. I have a set up integration with PayPal (not using ProForms.) Following successful payment via PayPal, the user is shown a dialogue box and then redirected to the WordPress user registration page. At the same time, the 'Thank You' email is sent containing a link (live for 3 days) that enables the user to gain access to the WordPress registration page. I assume that there are parameters that would allow the appropriate level of membership to be applied.

Unfortunately the link has ceased to work, depositing the user to the site homepage rather than the user registration page. I am unable to identify exactly when the email link stopped working, although can confirm that when the process went live on 18th July it was working appropriately.


The registration link sent by email does expire. Still, if the user was returned to the website after payment, s2Member set some cookies in his browser that will let him register with the level he paid for. The registration form can be found here /wp-login.php?action=register

If you feel he needs a new registration link, you can generate one from here: WP Admin -> s2Member -> PayPal Buttons -> PayPal Member Registration Access Links

I hope this helps. :)


Is there a way that the link doesn't expire? I want to bring them to an upsell page after they do purchase my initial product. So they will be brought to a different sales page after they purchase my product, and they receive an email with the password. Ideas?

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 17th, 2011, 4:48 pm
by Jason Caldwell
I believe the issue reported here was related to a bug fix in the release of s2Member v111002, so this should be working properly now in all cases. Here is an excerpt from the Changelog.

SNAG-0034.png
SNAG-0034.png (48.02 KiB) Viewed 486 times

By default, s2Member gives each Customer up to 2 days to complete registration. If you want to increase this, you can create this directory and file please.

/wp-content/mu-plugins/s2-hacks.php
Code: Select all
<?php
add_filter
("ws_plugin__s2member_register_link_exp_time", "my_s2_register_link_exp_time");
function my_s2_register_link_exp_time($s2member_says = "2 days"){
    return ($i_say = "2 weeks");
}
?>
Use anything compatible with PHP's strtotime() function.

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 18th, 2011, 11:00 pm
by dspruyt
Weird thing Jason.. I'm actually on v111011. Do you know what might be causing this issue?

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 20th, 2011, 2:34 pm
by Jason Caldwell
Thanks for the follow-up.
This thread was originally regarding tinyURL, but you're saying there is a different issue that you're having? Sorry, I'm just not sure exactly what the issue that you're reporting is. If it's unrelated to tinyURL, please start a new thread and I'll take a look asap.

Re: Problem with link in Thank You email - TinyURL Generator

PostPosted: October 20th, 2011, 2:58 pm
by dspruyt
Here's the thread Jason

viewtopic.php?f=4&t=15596

Thanks.