Page 1 of 1

Buddypress & s2Member Fatal Error/ JS Issue

PostPosted: October 19th, 2011, 4:48 pm
by karlwithak23
Hi everyone...setting up an s2Member site with the Paypal Pro Forms integration as well as a Buddypress install. Coming across an issue though - when Buddypress is turned on and I go to my s2Member Sign Up/Register page, the Pro Form doesn't load properly - there seems to be some PHP and JS issues. Here's what the Error Console in FF says:

Error: The stylesheet http://ginaaliotti.com/dev/wp-content/p ... 1222758178 was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://ginaaliotti.com/dev/fitness-netw ... -up-today/
Line: 0

Error: missing ; before statement
Source File: http://ginaaliotti.com/dev/wp-content/p ... 1222758178
Line: 2, Column: 9
Source Code:
<b>Fatal error</b>: Call to undefined function bp_is_register_page() in <b>/nfs/c08/h04/mnt/123249/domains/ginaaliotti.com/html/dev/wp-content/plugins/s2member/includes/classes/systematics.inc.php</b> on line <b>113</b><br />

I'm using s2Member version 111017, Buddypress version 1.5.1, and Wordpress 3.2.1.

I've turned off all plugins and the Pro Form works as expected EXCEPT when Buddypress is turned on. Any thoughts?

Thanks!
-Karl

Re: Buddypress & s2Member Fatal Error/ JS Issue

PostPosted: October 19th, 2011, 8:54 pm
by karlwithak23
For anyone else who's having this problem, I seem to have "fixed" this particular issue by commenting out the error-causing line (113 in v111017) in s2member/includes/classes/systematics.inc.php:

else if (c_ws_plugin__s2member_utils_conds::bp_is_installed () && (bp_is_register_page () || bp_is_activation_page ()))
{
return ($is_wp_systematic = apply_filters ("ws_plugin__s2member_is_wp_systematic_use_page", true, get_defined_vars ()));
}

Just commenting this section out stopped the problem. I'll have to test if processes properly, but it's a temporary solution! (until the next update)

Re: Buddypress & s2Member Fatal Error/ JS Issue

PostPosted: October 19th, 2011, 9:13 pm
by Eduan
Okay glad you were able to solve it, I would inform Jason of this bug with this form: http://www.s2member.com/contact/

P.S. Please tell me when you have reported him.

Re: Buddypress & s2Member Fatal Error/ JS Issue

PostPosted: October 20th, 2011, 10:27 am
by karlwithak23
Hi Eduan,

Just reported the bug through the form now!

Re: Buddypress & s2Member Fatal Error/ JS Issue

PostPosted: October 20th, 2011, 10:39 am
by Eduan
Great!

Re: Buddypress & s2Member Fatal Error/ JS Issue

PostPosted: October 20th, 2011, 5:32 pm
by Jason Caldwell
Thanks for bringing this thread to my attention.
Thanks for reporting this important issue.

I believe we have this issue corrected in s2Member v111017+.
If the problem persists on your installation, please DO let me know. Thank you!