latest stable versions: v150827 (changelog)

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

About: David Martin

Sorry, I've not written a description yet. I'll get to it soon!


Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Registration Notification URL not working

By:  David Martin in: Community Forum

voices: 3
replies: 7

4 years, 7 months ago  Cristián Lávaque

Pro Form Not Assigning Correct User Role

By:  David Martin in: Community Forum

voices: 2
replies: 4

4 years, 7 months ago  Raam Dev

Custom PayPal Button – Multiple $ Values

By:  David Martin in: Community Forum

voices: 2
replies: 3

4 years, 7 months ago  Cristián Lávaque

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Monday Jul 9th, 2012 at 9:06 pm #18736

I am also interested in a solution to this – I am trying to do the same thing. Any ideas guys??

Posted: Saturday Jun 9th, 2012 at 5:31 am #16054

[SOLVED]

It was NONE of the above… it was a co-incidence that WP SendGrid was causing the error.

I am running a LAMP stack on a cloud server we had configured ourselves. We had not installed cURL for php5 – which controls the HTTP requests for s2member. So installing it solved the problem.

I use a FANTASTIC diagnose plugin called “Core Control” to find my issue.
LINK HERE: http://wordpress.org/extend/plugins/core-control/

I used this simple script to test if cURL was indeed disabled on my server by just uploading it to my ‘www’ folder and opening it in a browser:

<?php
function _iscurlinstalled() {
	if  (in_array  ('curl', get_loaded_extensions())) {
		return true;
	}
	else{
		return false;
	}
}
if (_iscurlinstalled()) echo "cURL is installed"; else echo "cURL is NOT installed";
?>

It allowed me to log HTTP requests made by WP and S2 and diagnose and resolve the problem. It also allows you to independently Test & Enable/Disable your HTTP protocols to rule out configuration issues.

For ANYONE having API URL problems / issues I would HIGHLY recommend installing this plugin to help pinpoint & solve your problem.

Cheers. Dave.

  • This reply was modified 4 years, 7 months ago by  David Martin.
Posted: Thursday Jun 7th, 2012 at 8:06 pm #15865

I have pin-pointed the issue after testing with the other site….

I exported all my settings and theme ect and imported them to my WP test install – all worked fine in terms of the API URL.

THEN – I installed a plugin called “WP SendGrid” for my SMTP emails via sendgrid.com – and then the API URL’s did not work. I uninstalled and deleted the plugin – but that did not fix it either (which is the same behaviour as my initial setup).

As far as I understand it – this SMTP plugin modifys the wp-mail() function – could this affect the API URL’s???

Do you guys use a SMTP plugin for emails that is compatible? or do you know of one? If so please recommend as I dont want this to happen again after I reinstall everything!

Here is the link to the plugin http://wordpress.org/extend/plugins/wp-sendgrid/

I would be interested to see if this error is replicated for you guys too. Also – if you could look at the plugin code and see if you can pin-point HOW not only does this plugin stuff the API URL up when it is installed… but even worse manages to KEEP it stuffed after it is deleted!

ALSO – I noticed a HUGE decrease in the speed of my administration area when performing ALL tasks after I installed this plugin. It caused my site to take anywhere from 2-5 minutes to process a subscription via paypal and present the thankyou screen – where on my other site (before I installed WP SendGrid) it happen in seconds.

WP SENDGRID IS THE DEVIL!

  • This reply was modified 4 years, 7 months ago by  David Martin.
  • This reply was modified 4 years, 7 months ago by  David Martin.
  • This reply was modified 4 years, 7 months ago by  David Martin.
  • This reply was modified 4 years, 7 months ago by  David Martin.
Posted: Thursday Jun 7th, 2012 at 6:28 pm #15850

Hi Cristian,

I just installed ran a test on another domain where I had WP and S2/S2Pro installed with the same URL and the Registration Notification has worked.

SO… I am not sure what the issue is, but I am thinking I will just un-install and re-install WordPress and s2/s2pro again which will HOPEFULLY resolve the issue.

I will post back after I have done it to let you (and anyone else interested) if it is fixed.

Thanks for you help mate.

Posted: Thursday Jun 7th, 2012 at 12:57 am #15758

Hi Cristián,

I have followed your instructions and I ran a manual test of that link – which successfully created and logged a new user registration – however I tested it (by manually adding a user in WordPress) and it didn’t work. Once again I recieved the email API notification but it doesnt seem to be processing the URL.

Given PayPal doesn’t effect the Registration API URL’s – I am getting worried that something else it wrong. Can you provide any other advice – or let me know how I can trouble shoot this a little further?

BTW – thanks for that great little php script… I will use that one if I ever get this thing working!

Thanks!!

Ah yes, if its of any use to you – here is the result of the manual test I did of the URL you supplied.

array (
‘type’ => ‘registration’,
‘role’ => ‘%%role%%’,
‘level’ => ‘%%level%%’,
‘ccaps’ => ‘%Ìaps%%’,
‘auto_eot_time’ => ‘%%auto_eot_time%%’,
‘user_first_name’ => ‘%%user_first_name%%’,
‘user_last_name’ => ‘%%user_last_name%%’,
‘user_full_name’ => ‘%%user_full_name%%’,
‘user_email’ => ‘%%user_email%%’,
‘user_login’ => ‘%%user_login%%’,
‘user_pass’ => ‘%%user_pass%%’,
‘user_ip’ => ‘%%user_ip%%’,
‘user_id’ => ‘%%user_id%%’,
)

——————————————————–

UPDATE:
I also tried de-activating ALL my other plugins and running the registration and again to no avail.

  • This reply was modified 4 years, 7 months ago by  David Martin.
  • This reply was modified 4 years, 7 months ago by  David Martin.
  • This reply was modified 4 years, 7 months ago by  David Martin.
  • This reply was modified 4 years, 6 months ago by  David Martin.
Posted: Tuesday Jun 5th, 2012 at 3:29 am #15430

FOUND IT!!!

See here.

This was a replication of EXACTLY my issues. I have disabled the WC3 Database Cache and viola!

Posted: Monday Jun 4th, 2012 at 5:56 pm #15401

Hi Raam,

Thanks, I was thinking something like that may be the issue. Also something else I am suspecting due to some unusul behavior – I am using Google Chrome as my browser for testing, I noticed that the first time it registered correctly, then every time after that it got processivly worse.

A few other theories to consider….

1) I tried the same registration process in Firefox, and recieved none of the errors. I am thinking that perhaps the browser is caching something that is messing with return IPN (if that is possible?).

2) I have been clearing the wordpress cache quite regularly throughout the process – is this something that can affect the registration process also?

I will try the normal PayPal account today and let you know how I get on, it would however be nice to pinpoint the issue so I know I am preventing it!

Post back soon with results.

Posted: Wednesday May 23rd, 2012 at 2:35 am #14287

Hi Cristian,

Thanks for you quick response mate. I did see that extra ‘trial period’ allowance in the paypal site when I was playing around with the buttons… and you know what? I didn’t even click that I use it in that way!

I’ve created a button and ‘theoretically’ it does exactly what I need it to do. I will cross my fingers and hope it integrates into s2member cleanly – I’ll post back to let anyone else with the same problem know if it works for me.

Thanks a Tonne!!

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

Old Forums (READ-ONLY): The community now lives at WP Sharks™. 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.