Page 1 of 1

proforms not working

PostPosted: November 26th, 2011, 11:17 am
by s1r0n
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

Re: proforms not working

PostPosted: November 26th, 2011, 12:38 pm
by s1r0n
i'll pay 25 bucks an hour for somebody to help me with this. i need it up fast

Re: proforms not working

PostPosted: November 26th, 2011, 1:05 pm
by Eduan
No need to pay, did you in any place configure in any way some re-direction settings?

Re: proforms not working

PostPosted: November 26th, 2011, 1:24 pm
by s1r0n
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"

Re: proforms not working

PostPosted: November 27th, 2011, 9:29 am
by s1r0n
is there anybody out there?

Re: proforms not working

PostPosted: November 27th, 2011, 7:11 pm
by Cristián Lávaque
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!

Re: proforms not working

PostPosted: November 27th, 2011, 7:39 pm
by s1r0n
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" /]

Re: proforms not working

PostPosted: November 27th, 2011, 7:45 pm
by s1r0n
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\',
)',
  ),
)


Re: proforms not working

PostPosted: November 27th, 2011, 7:51 pm
by s1r0n
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

Re: proforms not working

PostPosted: November 27th, 2011, 8:08 pm
by s1r0n
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?

Re: proforms not working

PostPosted: November 28th, 2011, 9:59 am
by s1r0n
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

Re: proforms not working

PostPosted: November 28th, 2011, 11:07 am
by s1r0n
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

Re: proforms not working

PostPosted: November 28th, 2011, 12:02 pm
by s1r0n
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

Re: proforms not working

PostPosted: November 28th, 2011, 12:29 pm
by s1r0n
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?

Re: proforms not working

PostPosted: November 28th, 2011, 12:38 pm
by s1r0n
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?

Re: proforms not working

PostPosted: November 28th, 2011, 1:10 pm
by s1r0n
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?

Re: proforms not working

PostPosted: November 28th, 2011, 2:59 pm
by s1r0n
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

Re: proforms not working

PostPosted: November 28th, 2011, 3:22 pm
by s1r0n
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.

Re: proforms not working

PostPosted: December 1st, 2011, 1:15 am
by Cristián Lávaque
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.