PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Page not directing correctly

s2Member Plugin. A Membership plugin for WordPress®.

Page not directing correctly

Postby hkalchemy » October 5th, 2011, 5:55 am

I've set up s2 member pro and everything is working fine, until I pay for the product (with a test CC) through clickbank and, instead of being directed to my 'thankyou' page, I get a page with this message. Also, I'm not getting an email telling me to register. Does anyone know what I might be doing wrong?

Oppss… It seems you have arrived here because of one of the below reasons:

Folder has no index file (index.html,index.htm,etc.)
Password protected folder
Trying to access a page with SSL
Access restricted for your IP address
If you are the website administrator, this is a great page to have to prevent folks from reviewing your sites folder contents!
User avatar
hkalchemy
Registered User
Registered User
 
Posts: 25
Joined: September 28, 2011

Re: Page not directing correctly

Postby hkalchemy » October 5th, 2011, 8:05 am

BTW, I have s2 member pro installed on another site - same settings, same host - everything works perfectly.

I have no idea why one installation works fine and the other doesn't.
User avatar
hkalchemy
Registered User
Registered User
 
Posts: 25
Joined: September 28, 2011

Re: Page not directing correctly

Postby hkalchemy » October 5th, 2011, 9:22 am

When I go to: http://ancientlawsofspirit.com/wp-conte ... ember-logs, I get my WP 'page not found' page

BUT

when I go to http://effortlessabundance.com/wp-conte ... ember-logs

I get an error 403 page.

Does this have something to do with it?
User avatar
hkalchemy
Registered User
Registered User
 
Posts: 25
Joined: September 28, 2011

Re: Page not directing correctly

Postby Cristián Lávaque » October 6th, 2011, 2:20 am

What WordPress, s2Member and s2Member Pro versions do you have in each installation?

Did you double check the ClickBank settings in the one that isn't working? Particularly the return URL. What URL are you being returned to after the checkout? WP Admin -> s2member -> ClickBank Options

Could you post the log entries related to the failed return? WP Admin -> s2member -> ClickBank Options -> Account Settings -> Enable Logging
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Page not directing correctly

Postby hkalchemy » October 6th, 2011, 2:40 am

Thanks. I have the latest version.

The Thank-You Page is:
http://effortlessabundance.com/?s2membe ... k_return=1

and I have added &s2member_pro_clickbank_return_success=http://effortlessabundance.com/thanks-for-your-purchase/

I contacted my host and got this response:

You really shouldn't pull in data based off what's in the URL. I assume you're using allow_url_fopen to do this and it's disabled for security reasons. If your site is using URL's like "http://effortlessabundance.com/?s2member_pro_clickbank_return=1&s2member_pro_clickbank_return_success=http://effortlessabundance.com/thanks-for-your-purchase" then you are very vulnerable to XSS attacks.

I'm not sure what log entries really are, but I found this. Does it help? Many thanks!

Code: Select all
WordPress® v3.2.1 :: s2Member® v110927 :: s2Member® Pro v110927
Memory 45.10 MB :: Real Memory 45.50 MB :: Peak Memory 45.21 MB :: Real Peak Memory 45.50 MB
effortlessabundance.com/?s2member_pro_clickbank_return=1
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1
array (
  's2member_log' =>
  array (
    0 => 'Unable to verify POST vars. This is most likely related to an invalid ClickBank¬Æ configuration. Please check: s2Member -> ClickBank¬Æ Options.',
    1 => 'If you\'re absolutely SURE that your ClickBank¬Æ configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect to ClickBank¬Æ over an HTTPS connection.',
    2 => 's2Member uses the WP_Http class for remote connections; which will try to use cURL first, and then fall back on the FOPEN method when cURL is not available. On a Windows¬Æ server, you may have to disable your cURL extension. Instead, set allow_url_fopen = yes in your php.ini file. The cURL extension (usually) does NOT support SSL connections on a Windows¬Æ server.',
    3 => 'array (
  \'s2member_pro_clickbank_return\' => \'1\',
)',
    4 => 'Redirecting Customer to the Home Page, due to an error that occurred.',
  ),
)

WordPress® v3.2.1 :: s2Member® v110927 :: s2Member® Pro v110927
Memory 45.07 MB :: Real Memory 45.50 MB :: Peak Memory 45.17 MB :: Real Peak Memory 45.50 MB
effortlessabundance.com/?s2member_pro_clickbank_return=1
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1
array (
  's2member_log' =>
  array (
    0 => 'Unable to verify POST vars. This is most likely related to an invalid ClickBank¬Æ configuration. Please check: s2Member -> ClickBank¬Æ Options.',
    1 => 'If you\'re absolutely SURE that your ClickBank¬Æ configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect to ClickBank¬Æ over an HTTPS connection.',
    2 => 's2Member uses the WP_Http class for remote connections; which will try to use cURL first, and then fall back on the FOPEN method when cURL is not available. On a Windows¬Æ server, you may have to disable your cURL extension. Instead, set allow_url_fopen = yes in your php.ini file. The cURL extension (usually) does NOT support SSL connections on a Windows¬Æ server.',
    3 => 'array (
  \'s2member_pro_clickbank_return\' => \'1\',
)',
    4 => 'Redirecting Customer to the Home Page, due to an error that occurred.',
  ),
)

WordPress® v3.2.1 :: s2Member® v110927 :: s2Member® Pro v110927
Memory 45.09 MB :: Real Memory 45.50 MB :: Peak Memory 45.20 MB :: Real Peak Memory 45.50 MB
effortlessabundance.com/?s2member_pro_clickbank_return=1&s2member_pro_clickbank_return_success
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.187 Safari/535.1
array (
  's2member_log' =>
  array (
    0 => 'Unable to verify POST vars. This is most likely related to an invalid ClickBank¬Æ configuration. Please check: s2Member -> ClickBank¬Æ Options.',
    1 => 'If you\'re absolutely SURE that your ClickBank¬Æ configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect to ClickBank¬Æ over an HTTPS connection.',
    2 => 's2Member uses the WP_Http class for remote connections; which will try to use cURL first, and then fall back on the FOPEN method when cURL is not available. On a Windows¬Æ server, you may have to disable your cURL extension. Instead, set allow_url_fopen = yes in your php.ini file. The cURL extension (usually) does NOT support SSL connections on a Windows¬Æ server.',
    3 => 'array (
  \'s2member_pro_clickbank_return\' => \'1\',
  \'s2member_pro_clickbank_return_success\' => \'\',
)',
    4 => 'Redirecting Customer to the Home Page, due to an error that occurred.',
  ),
)

WordPress® v3.2.1 :: s2Member® v110927 :: s2Member® Pro v110927
Memory 45.09 MB :: Real Memory 45.50 MB :: Peak Memory 45.20 MB :: Real Peak Memory 45.50 MB
effortlessabundance.com/?s2member_pro_clickbank_return=1
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.187 Safari/535.1
array (
  's2member_log' =>
  array (
    0 => 'Unable to verify POST vars. This is most likely related to an invalid ClickBank¬Æ configuration. Please check: s2Member -> ClickBank¬Æ Options.',
    1 => 'If you\'re absolutely SURE that your ClickBank¬Æ configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect to ClickBank¬Æ over an HTTPS connection.',
    2 => 's2Member uses the WP_Http class for remote connections; which will try to use cURL first, and then fall back on the FOPEN method when cURL is not available. On a Windows¬Æ server, you may have to disable your cURL extension. Instead, set allow_url_fopen = yes in your php.ini file. The cURL extension (usually) does NOT support SSL connections on a Windows¬Æ server.',
    3 => 'array (
  \'s2member_pro_clickbank_return\' => \'1\',
)',
    4 => 'Redirecting Customer to the Home Page, due to an error that occurred.',
  ),
)

User avatar
hkalchemy
Registered User
Registered User
 
Posts: 25
Joined: September 28, 2011

Re: Page not directing correctly

Postby Cristián Lávaque » October 6th, 2011, 4:52 am

Thanks for the log entries. What log file were those from? Did you have other log files in there too? /wp-content/plugins/s2member-logs/

Could you check this thread too? viewtopic.php?f=36&t=2636
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Page not directing correctly

Postby hkalchemy » October 6th, 2011, 4:59 am

I got it from /wp-content/plugins/s2member-logs

The file is called: clickbank-rtn.log.

There is another one called paypal-rtn.log.

I did check the other thread but I don't know where to find php.ini!

Sorry - all this sounds like double dutch to me. I just want my site to work! Appreciate you help.
User avatar
hkalchemy
Registered User
Registered User
 
Posts: 25
Joined: September 28, 2011

Re: Page not directing correctly

Postby hkalchemy » October 6th, 2011, 6:19 am

I uploaded curl-test-https-paypal.php from the other thread and it worked. I got:

Test succeeded :-) Lookin' good here. Your cURL extension is functioning properly, with SSL enabled too.

But my site is still not working ...
User avatar
hkalchemy
Registered User
Registered User
 
Posts: 25
Joined: September 28, 2011

Re: Page not directing correctly

Postby hkalchemy » October 6th, 2011, 8:50 am

My host says:

According to php info at http://effortlessabundance.com/phpinfo.php you have PHP 5.2.17 and curl enabled, so this should be enough for your plugin to work correctly.

ancientlawsofspirit.com and effortlessabundance.com are on the same server, so plugin should be working on the last one as well. Please ask your webmaster to check your custom php configuration that you may have and maybe chekc your plugin settings to find out if there is an option to choose between curl or url_fopen (in this case choose curl).

What can be wong?
User avatar
hkalchemy
Registered User
Registered User
 
Posts: 25
Joined: September 28, 2011

Re: Page not directing correctly

Postby Cristián Lávaque » October 7th, 2011, 12:17 am

Thanks for the info.

Could you post the entries from paypal-rtn.log too, then, x'ing out any private info? Weren't there other logs ending with -ipn.log and -api.log?

I emailed Jason, hopefully he'll be around soon to comment on this. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Page not directing correctly

Postby hkalchemy » October 7th, 2011, 1:04 am

The paypal logs are blank. There are no other logs.
I'm looking in a folder called /wp-content/plugins/s2member-logs

Also, one of my members just tried to login and sent me this message:

Just wanted to let you know that I have tried logging into the ... admin site to post an article draft and it there is an error page that keeps coming up. It says:

503: Service Temporarily Unavailable
Too many IP addresses accessing one secure area/ please contact Support if you need assistance.

Is this relevant?
User avatar
hkalchemy
Registered User
Registered User
 
Posts: 25
Joined: September 28, 2011

Re: Page not directing correctly

Postby Cristián Lávaque » October 7th, 2011, 1:44 am

Got it. Thanks.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron