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™

proforms not working

s2Member Plugin. A Membership plugin for WordPress®.

proforms not working

Postby s1r0n » November 26th, 2011, 11:17 am

I need help, my proforms aren't working. all that happens when users sign in is that they are redirected back to the same page

https://curriculum.thelightningpath.com ... s2-ssl=yes

can somebody help me figure out what's the problem? they were working before
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 26th, 2011, 12:38 pm

i'll pay 25 bucks an hour for somebody to help me with this. i need it up fast
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby Eduan » November 26th, 2011, 1:05 pm

No need to pay, did you in any place configure in any way some re-direction settings?
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: proforms not working

Postby s1r0n » November 26th, 2011, 1:24 pm

no I didn't. i recently moved to a new server, and I am using a wp multi-domain plugin, but not on this blog instance. i notice that when I try it myself, it is not getting to the point of creating a new users (checked my database users table).

these are the apache logs for a single request. i tried enabling s2member logging but can't figure that out


Code: Select all
198.53.93.6 - - [26/Nov/2011:13:18:43 -0500] "GET /how-to-subscribe/regular-rate-lifetime/?s2-ssl=yes HTTP/1.1" 200 130924 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0"
198.53.93.6 - - [26/Nov/2011:13:18:47 -0500] "GET /how-to-subscribe/regular-rate-monthly/ HTTP/1.1" 302 - "https://curriculum.thelightningpath.com/how-to-subscribe/regular-rate-lifetime/?s2-ssl=yes" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0"
198.53.93.6 - - [26/Nov/2011:13:18:47 -0500] "GET /how-to-subscribe/regular-rate-monthly/?s2-ssl=yes HTTP/1.1" 200 130695 "https://curriculum.thelightningpath.com/how-to-subscribe/regular-rate-lifetime/?s2-ssl=yes" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0"
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 27th, 2011, 9:29 am

is there anybody out there?
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby Cristián Lávaque » November 27th, 2011, 7:11 pm

Did you actually receive the payment? Is the user upgrading or creating a new account?

Have you tried the success attribute to customize the page the user returns to? WP Admin -> s2Member -> PayPal Pro-Forms -> Custom Return URLs On Success

Could you please post the log entries related to the transactions that didn't create the user? x'ing out any private info, please.

Could you also post the shortcode you're using for the pro-form?

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

Re: proforms not working

Postby s1r0n » November 27th, 2011, 7:39 pm

Cristián Lávaque wrote:Did you actually receive the payment? Is the user upgrading or creating a new account?

Have you tried the success attribute to customize the page the user returns to? WP Admin -> s2Member -> PayPal Pro-Forms -> Custom Return URLs On Success

Could you please post the log entries related to the transactions that didn't create the user? x'ing out any private info, please.

Could you also post the shortcode you're using for the pro-form?

Thanks!

it doesn't matter either way, upgrade or create new account, it fails.

i just started using the success attribute. but it wasn't working before that.

where do I find the "log" entries

here is the short code

Code: Select all
[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="$299 USD / One Time ( for lifetime access, non-recurring, no trial )" ps="paypal" lc="" cc="USD" dg="0" success="http://curriculum.thelightningpath.com/how-to-subscribe/welcome-to-the-lightning-path/" ns="1" custom="curriculum.thelightningpath.com" ta="0" tp="0" tt="Y" ra="299" rp="1" rt="L" rr="BN" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 27th, 2011, 7:45 pm

this is what I'm getting. no transactions are being completed in paypal
Code: Select all
PHP v5.3.3 :: WordPress® v3.2.1 :: s2Member® v111105 :: s2Member® Pro v111105
Memory 33.37 MB :: Real Memory 33.75 MB :: Peak Memory 33.54 MB :: Real Peak Memory 33.75 MB
curriculum.thelightningpath.com/
curriculum.thelightningpath.com/?s2member_paypal_return=1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
array (
  'subscr_gateway' => 'paypal',
  's2member_log' =>
  array (
    0 => 'No Return-Data. Customer must wait for Email Confirmation.',
    1 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation.',
    2 => 'Note. This can sometimes happen when/if you are offering a free Trial Period. There are times when a Payment Gateway will NOT supply s2Member with any data immediately after checkout. When/if this happens, s2Memb$
    3 => 'array (
  \'s2member_paypal_return\' => \'1\',
)',
  ),
)

User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 27th, 2011, 7:51 pm

actually when I just tried to do it now, creating a new user, I get no log entries in the s2member logs. it just quietly reloads the form
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 27th, 2011, 8:08 pm

maybe it is a setting at paypal that is screwy. I'm using website payments pro. is that right? now that I'm reading around it seems that i should be using website payments standard. but then does that allow me to offer all the other credit card options?
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 28th, 2011, 9:59 am

Cristián Lávaque wrote:Did you actually receive the payment? Is the user upgrading or creating a new account?


also no I did not actually receive any payment. it just silently fails and reloads the form page
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 28th, 2011, 11:07 am

is this right

Code: Select all
<form id="s2member-pro-paypal-checkout-form" class="s2member-pro-paypal-form s2member-pro-paypal-checkout-form" method="post" action="http://curriculum.thelightningpath.com/how-to-subscribe/student-rate-monthly/?s2-ssl=yes">
   


in the action section of the form the form is saying to post the form entry back to the same page?!?!? shouldn't there be an s2member PHP program in that line?

i also notice that link isn't https? shouldn't it be
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 28th, 2011, 12:02 pm

could somebody point me to the PHP file that generates the PROFORM form from the shortcode please? i need to get this working and I can't wait like this
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 28th, 2011, 12:29 pm

ok. the form template is in paypal-checkout-form.php. the offending action is inserted in the form by a search on replace on %%action%% I am assuming

now, where does the search and replace functionality get carried out? can somebody help please?
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 28th, 2011, 12:38 pm

ok so here is the pregreplace

Code: Select all
   $code = preg_replace ("/%%action%%/", c_ws_plugin__s2member_utils_strings::esc_ds (esc_attr (remove_query_arg (array ("s2member_paypal_xco", "token", "PayerID"), $_SERVER["REQUEST_URI"]))), $code);


so can someone help me decode this?
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 28th, 2011, 1:10 pm

forensic analysis continues. time lost not worth the cost of the plugin

track the search and replace function to paypal-form.inc.php to a function called sc_paypal_form

Code: Select all

public static function sc_paypal_form ($attr = FALSE, $content = FALSE, $shortcode = FALSE)
               {
                  //print_r($content);print_r($attr);exit;
                  return c_ws_plugin__s2member_pro_paypal_form_in::sc_paypal_form ($attr, $content, $shortcode);
               }


a little forensic analysis reveals that while the array $attr is being passed, the $content attribute is totally empty. why is that since the content probably contains the search and replace values?

can anybody help?
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 28th, 2011, 2:59 pm

well I seem to have found the problem. this line of code on line 731 of paypal-=form-in.inc.php is not working.

Code: Select all
   $code = preg_replace ("/%%action%%/", c_ws_plugin__s2member_utils_strings::esc_ds (esc_attr (remove_query_arg (array ("s2member_paypal_xco", "token", "PayerID"), $_SERVER["REQUEST_URI"]))), $code);


in particular, if do this

Code: Select all
echo  c_ws_plugin__s2member_utils_strings::esc_ds (esc_attr (remove_query_arg (array ("s2member_paypal_xco", "token", "PayerID"), $_SERVER["REQUEST_URI"])))


all I get is this

/how-to-subscribe/regular-rate-monthly/?s2-ssl=yes

which tells me that there is a problem in the esc_ds function of class c_ws_plugin__s2member_utils_strings.

so, Can somebody now tell me where to find the object where the function esc_ds resides so I can see why its not returning a proper URL value for the action part of the PROFORMS. It should be because values are being passed
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby s1r0n » November 28th, 2011, 3:22 pm

well after wasting several hundred dollars in lost time trying to track it down, I'm still lost. I just checked the promothemes own use of the form and it turns out it is a self referential url. question still remains, why is the pro-form not working. it is particularily frustration since there appears to be absolutly no log information, either in apache logs, or in s2member logs.

oh wait, that just gave me an idea. turn on wp debug log and check. oh ****. a plugin called wordpress https is throwing all sorts of errors. wait, deactivate that plugin and voila, success. working again.

frack, frack, frack. beating head on desk, frack, frack.
more beating of head, gnashing of teeth. frack

now I've got a headache, but at lest the forms are working again.
User avatar
s1r0n
Registered User
Registered User
 
Posts: 57
Joined: May 12, 2011

Re: proforms not working

Postby Cristián Lávaque » December 1st, 2011, 1:15 am

Awesome job finding the problem. I'm sorry that other plugin gave you such a hard time. :(

I'm glad your forms are working again! And thanks a lot for reporting back what the problem was, that should help someone else with your problem when searching the forum.
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: Exabot [Bot] and 2 guests

cron