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.

Javascript error with Paypal Express Pro Form

Home Forums Community Forum Javascript error with Paypal Express Pro Form

This topic contains 7 replies, has 3 voices. Last updated by  Cristián Lávaque 3 years, 10 months ago.

Topic Author Topic
Posted: Sunday Mar 10th, 2013 at 9:57 am #44208
Alex Read
Username: lab41

Hi, I’m having trouble with javascript script s2member-o.php not working (syntax error). My Paypal pro forms as a result are not working. How do I delete the s2member plugins and reinstall without affecting my settings?

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Sunday Mar 10th, 2013 at 12:10 pm #44211
Alex Read
Username: lab41

I should have looked at http://www.s2member.com/kb/common-troubleshooting-tips/ for reinstall. Will see if that solves problem.

Posted: Sunday Mar 10th, 2013 at 1:07 pm #44216
Alex Read
Username: lab41

Nope I re-installed but no luck. I also tried switching themes. I’m getting the following prefixed to my s2member-o.php code which is causeing the syntax error:

<br />
<b>Notice</b>:  Constant WP_MEMORY_LIMIT already defined in <b>/home/salearne/public_html/wp-config.php</b> on line <b>80</b><br />
<br />
<b>Notice</b>:  Undefined variable: cache_needs_updating in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/cache.inc.php</b> on line <b>94</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>89</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>90</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>91</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>92</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>93</b><br />

Thanks,

Posted: Monday Mar 11th, 2013 at 11:19 pm #44305
Eduan
Username: Eduan
Moderator

Hello Alex,

So you’re having problems with the pro-forms correct? Are you trying to use more than one pro-form in a single page or post?

– Eduan

Posted: Tuesday Mar 12th, 2013 at 5:51 am #44343
Alex Read
Username: lab41

Yes pro forms. Not using more than one.

Posted: Tuesday Mar 12th, 2013 at 10:37 am #44361
Alex Read
Username: lab41

Sorry, the issue I’m having with s2member-o.php is the javascript plugin

<script type='text/javascript' src='http://mysite.co.za/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=9614cb4440074464239bd7cf47012&#038;qcABC=1&#038;ver=130221-130221-4113923320'></script>

It spews out Warnings and Notices before the javascript starts – (function(a){if(typeof a.spr etc.
This is causing a syntax error according to firebug and the javascript is not being executed. The pro form is therefore not automatically filled in and not activated.

Posted: Tuesday Mar 12th, 2013 at 10:57 am #44367
Alex Read
Username: lab41

Hi, found that debug mode was on (in wp-config.php). Setting this to false suppresses the errors and the javascript works. Thanks…

Posted: Thursday Mar 14th, 2013 at 5:48 am #44584

Thanks for the update, Alex. Glad it’s working now. :)

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.