Page 1 of 1

s2member pro 500 internal server error

PostPosted: May 27th, 2011, 4:59 am
by beetle
hi,

i've got s2member 3.5.8 and s2member pro 1.5.8 i am in australia and so can't use paypal pro but instead i'm using the express checkout method with paypal pro forms.

i've been developing the site and when testing i find that paypal's final confirmation goes through (in that payment is made) but then I get a 500 internal server error and on pressing 'refresh' the page goes back to the sign-up page....

the payment and user account are created fine but the user never gets a confirmation email.

thanks for any help!

bec :)

Re: s2member pro 500 internal server error

PostPosted: May 27th, 2011, 5:02 am
by beetle
Sorry, I should have mentioned i've already tried reinstalling s2member and s2member pro and this doesn't help :/

Re: s2member pro 500 internal server error

PostPosted: May 27th, 2011, 5:39 am
by beetle
i've now installed the latest dev release 110524RC for s2member and s2member pro and still get the same error upon return to my site:

http://XXX/sign-up/sign-up-member/?s2me ... ayerID=XXX

gives me the error (the XXX are from me replacing the values as i'm not sure if these are ok to share security wise!)

otherwise, refreshing the page then shows the http://XXX/sign-up/sign-up-member/
page as normal and the user is in the user list / the payment goes through.

thanks for any help,

bec

Re: s2member pro 500 internal server error

PostPosted: May 28th, 2011, 12:09 am
by Cristián Lávaque
Bec, could you please share the log entries for the transactions that give this trouble? /wp-content/plugins/s2Member-logs/

If it's not there, then you probably haven't enabled logging yet. WP Admin -> s2Member -> PayPal Options -> PayPal Account Details -> Enable Logging Routines

Regarding the email, it doesn't get sent if you're in PayPal's Sandbox.

Re: s2member pro 500 internal server error

PostPosted: June 1st, 2011, 3:49 am
by beetle
hi,

i sent this to administrators (days ago) as a private post as I didn't know if i'd removed all the private info from the log files ok..... a bit dissapointed not to get a reply from them but hopefully you can help cristian! (i tried to send you a private message but you have disabled this!)

i've tested this quite a bit now, and it seems that the EXACT same setup sometimes results in an error sometime not! arrrrrgh!!

but testing this WITHOUT s2member pro and using s2member buttons instead --> i NEVER get the error - so i think it's a s2member pro forms issue with the express checkout functionality (paypal pro is unfortunately not avail. in australia!). i'm starting to think i should give up on s2member pro if i can't use paypal pro too!?

p.s. i am not using paypal sandbox - just issuing refunds for myself when testing

as per this post:
viewtopic.php?f=4&t=6572

i've integrated idev affiliate now and use a custom value to pass through the affiliate's id (in %%cv1%%) as per this video:
http://www.s2member.com/idevaffiliate-i ... ion-video/

so that I get my charities to create an idevaffiliate account and then I create a page in wordpress with a sign-up s2member pro form with the custom cv1 value = their idev affiliate account id. so one problem solved!

but now it has gotten worse - because when the s2member return url isn't reached the fundraisers no longer get their commission as the notification to idevaffiliate is through the "Payment Notification URLs" - the fact that the return url from paypal is failing means the notification to idevaffiliate doesn't go through!?

i will have VERY unhappy members AND fundraisers if THIS happens!

i can get you some log files but i'd rather not post them publicly as i'm not sure what info is important security wise! i sent some log files to jason (adminstrators) so maybe you can grab them off him? otherwise if you enable private messages i can send you the log files?! (these log files are pre idevaffiliate login but this only affects the custom value anyway!)

im using latest dev release 110524RC but this didn't work for s2member 3.5.8 and s2member pro 1.5.8 either.

Re: s2member pro 500 internal server error

PostPosted: June 1st, 2011, 10:27 am
by Cristián Lávaque
Hello Beetle. :)

I respond all the support emails for s2Member and I didn't see yours. If you messaged Jason privately here, I can't see that, and I disabled my private messages in the forum because we have the contact form for private info and the forums for almost everything. I'm sorry you haven't received a reply yet, Jason has had his hands full these past days and can't get to everything yet.

You can edit the log file, remove your domain name (if you don't want it known), last names and addresses. The rest should be fine to post here, but if I spot anything else I'll edit your post to remove it.

It seems to be a problem with the IPN, certainly. Did you check your PayPal Account Details, IPN and PDT settings under s2Member -> PayPal Options to make sure everything is set up correctly?

Re: s2member pro 500 internal server error

PostPosted: June 1st, 2011, 9:26 pm
by beetle
hi,

attached are the log files from IE (pre idev integration) whereby one transfer worked, the other didn't (without settings changing at all between the two)!

bec :)

Re: s2member pro 500 internal server error

PostPosted: June 1st, 2011, 9:40 pm
by Cristián Lávaque
Thanks Beetle.

I'll remove them from the post and forward them to Jason by email to look at as soon as he has a chance (it may be a couple of days). I read them and couldn't see something wrong, but I'm still not great with the logs as Jason is.

Re: s2member pro 500 internal server error

PostPosted: June 1st, 2011, 9:40 pm
by beetle
hi Cristian,

do you think it could be a problem with my settings even though they don't change between the test sign-ups that pass/fail to complete??

bec :)

Re: s2member pro 500 internal server error

PostPosted: June 1st, 2011, 9:48 pm
by Cristián Lávaque
I honestly don't know, Bec. :|

Re: s2member pro 500 internal server error

PostPosted: June 1st, 2011, 10:09 pm
by beetle
it might be because i've got the slightly uncommon use of s2member pro without paypal pro.

the log files looked ok then?

bec :)

Re: s2member pro 500 internal server error

PostPosted: June 1st, 2011, 10:32 pm
by Cristián Lávaque
It may be related to your server configuration. Here are a couple of posts that may give a clue:

viewtopic.php?f=4&p=7463#p7463
viewtopic.php?f=4&p=2053#p2053

Re: s2member pro 500 internal server error

PostPosted: June 3rd, 2011, 12:54 am
by Jason Caldwell
Thanks for reporting this important issue.
~ and thanks for the heads up Cristián.

This statement you made earlier is very interesting to me. It sounds like your server doesn't care for the query string variables in this URL. Perhaps something to do with the .htaccess file in your WordPress directory. Please post a copy of your .htaccess file for review, and a list of other plugins that you're running in concert with s2Member.
beetle wrote:i've now installed the latest dev release 110524RC for s2member and s2member pro and still get the same error upon return to my site:

http://XXX/sign-up/sign-up-member/?s2me ... ayerID=XXX

gives me the error (the XXX are from me replacing the values as i'm not sure if these are ok to share security wise!)

otherwise, refreshing the page then shows the http://XXX/sign-up/sign-up-member/
page as normal and the user is in the user list / the payment goes through.

thanks for any help,

bec

Also, I would be suspicious of a plugin conflict here too, as another possible source of the issue. If another plugin is somehow conflicting with functionality introduced by s2Member, 500 internal servers errors are a common response. Unfortunately, 500 internal server errors are very difficult to troubleshoot, because there is no error reporting returned by PHP. Instead, errors will be logged by Apache ( i.e. your web server itself ). If your host can provide you with the Apache error log, that may shed some light.

If all else fails, please send me a Dashboard login and FTP access through this private contact form.
http://www.s2member.com/contact/