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™

Problem With 110915 and other plugins with JS

s2Member Plugin. A Membership plugin for WordPress®.

Problem With 110915 and other plugins with JS

Postby godrob » September 16th, 2011, 4:33 pm

Hi Guys,

I've just uploaded the latest S2Member / S2Member Pro (110915) and now have compatibility problems with two plugins that are essential to my Wordpress/Buddypress community.

They are:

WPMUDEV's 'Chat' Plugin - http://premium.wpmudev.org/project/word ... hat-plugin
CD BuddyPress Avatar Plugin - http://buddypress.org/community/groups/ ... ar-bubble/

Both plugins rely heavily on Ajax or maybe jquery I believe. Everything else seems to be working okay, accept for these two plugins. Everything was working fine in the previous version of s2member. Is this a bug?

Thanks
Rob
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915

Postby godrob » September 17th, 2011, 4:56 am

Just to confim, if I disable S2Member, then both plugins work as normal. Something has changed that break these plugin. Please advise urgently.

Thanks
Rob

PS - I am unable to login to the members area: the error is:

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

Can you reset it for me please...
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915

Postby godrob » September 18th, 2011, 2:38 am

More info

I upgraded both my BuddyPress installation to 1.2.10 and S2Member/Pro to 119015 on Friday 16th September.

Since then, two plugin's that are essential to my site do not work properly anymore. They are:

WPMUDEV's 'Chat' Plugin - http://premium.wpmudev.org/project/word ... hat-plugin
CD BuddyPress Avatar Plugin - http://buddypress.org/community/groups/ ... ar-bubble/

Basically, they are no longer pulling the data from the database. It' just an empty space, where either the chat messages should be displayed, or the profile bubble whenever you hover the mouse over an Avatar. What's strange is that if I login as an Admin, then both plugins seem to still work OK! It only seems to affect users on ALL levels that are below Admin.

If I disable S2Member/Pro, then both plugins work again. So, the issue I believe is a combination of upgrading BuddyPress and S2Member to their latest versions. Is it compatible?

Can you please help me with this? I am stuck and desperately need to get this resolved as it's seriously affecting my community.

Thank you in advance.
Regards
Rob.
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915

Postby godrob » September 19th, 2011, 5:36 am

I'm starting to think that it is the BuddyPress upgrade to 1.2.10 that is afffecting S2Member. Please see below:

If it helps, turning Firebug on, in my local dev environment, (problems are exactly the same local and live) I can see the following errors/response with regards to both plugins when S2Member is activated. Remember, this all works fine when S2Member is deactivated or accessed from an Admin account.

Avatar Bubble Plugin:

Code: Select all
GET http://localhost/local/wp-admin/admin-ajax.php?ID=519&type=user&action=cd_ab_the_avatardata Aborted


WPMU DEV's Chat Plugin

Code: Select all
POST http://localhost/local/wp-admin/admin-ajax.php 302 Found 3.5s   
GET http://localhost/local/members/ben/profile/ 200 OK 2.46s


The above POST and GET for WMMU Dev's Chat Plugin keeps on repeating, but the messages are never posted to the page...

Now I might be totally wrong here, but is this problem likely to do with S2Member blocking access through to /wp-admin/admin-ajax.php?

Jason, Cristian can you please offer some much needed assistance here?

Thank you
Rob.
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915

Postby Cristián Lávaque » September 19th, 2011, 9:02 pm

Thanks Rob. I'll email Jason about this conflict you found and to see what could be done about it.

Could you post the errors you get from these plugins in Firefox' Error Console?
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: Problem With 110915 and other plugins with JS

Postby godrob » September 20th, 2011, 3:07 am

Hi Cristian,

There are no errors that I can see when testing both plugins with the Firebug error console, it's completely empty! This again leads me to believe that S2Member is restricting access to these two plugins.

I would really appreciate your urgent help with this with an ETA. My community are starting to get annoyed at not being able to use my site properly anymore and hopefully Jason can find a fix very soon?

Also, can you please reset my login details to the members area. Every time I try to login, I receive:

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

Hope to hear from you or Jason as soon as possible

Regards
Rob
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915 and other plugins with JS

Postby Jason Caldwell » September 20th, 2011, 3:06 pm

Hi Rob. Thanks for your inquiry.
I've had the IP Restriction issue cleared up on your account at s2Member.com.
I'll reply back in one moment regarding your other questions.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Problem With 110915 and other plugins with JS

Postby Jason Caldwell » September 20th, 2011, 3:37 pm

Now I might be totally wrong here, but is this problem likely to do with S2Member blocking access through to /wp-admin/admin-ajax.php?
Hmm, I suppose that's possible if there is a conflict between plugins. s2Member has not yet been thoroughly tested against the latest version of BuddyPress.

That being said, please create this directory and file. Let me know if this helps please.
/wp-content/mu-plugins/s2-hacks.php
Code: Select all
<?php
add_filter
("ws_plugin__s2member_admin_lockout", "__return_false");
?>
Also, please post a screenshot of your s2Member options here:
SNAG-0001.png
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Problem With 110915 and other plugins with JS

Postby godrob » September 20th, 2011, 4:21 pm

Hi Jason,

I've created the s2-hacks.php file as suggested and uploaded to my server. Good news, this hack resolves the CD Avatar Bubble plugin, so thank you very much for that.

However, WPMU Dev's Chat Plugin is still not working...

I can confirm that my settings are the same as your screen dump above. I also tried setting it to "No (I want to use the WordPress default methodologies), but that didn't have any affect either.

Appreciate your help
Rob.
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915 and other plugins with JS

Postby Jason Caldwell » September 20th, 2011, 5:38 pm

Thank you. I'm having this bug related to AJAX requests fixed in the next official release.
Until then, I'm attaching a patch file. Unzip the attached file and let it override your existing copy of:
/s2member/includes/classes/admin-lockouts.inc.php
( patches an existing installation of s2Member v110915 )
admin-lockouts.inc.php.zip
(1.67 KiB) Downloaded 12 times

Regarding the other Chat plugin. After applying this hack, if the problem continues, please give me a list and/or a screenshot of your s2Member Restriction Options. In particular, do you have any URI Restrictions configured?
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Problem With 110915 and other plugins with JS

Postby godrob » September 20th, 2011, 5:42 pm

Jason,

Scrap my last post. Your hack has fixed it! Thank you so much, you guys are the best!

Turns out that the reason why the chat plugin wasn't working was because one of the tables hadn't installed properly. I just noticed it when comparing local to live in phpmyadmin. So, uploading the missing table has fixed it.

Together with your hack, my site is now working again...

Will this hack be included in a future release of S2Member? Thanks again for all your help with this

Regards
Rob.
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915 and other plugins with JS

Postby godrob » September 20th, 2011, 5:44 pm

Jason,

Do I upload admin-lockouts.inc.php.zip and then delete the s2-hacks.php file or does that still have to remain?

Thanks
Rob.
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915 and other plugins with JS

Postby Jason Caldwell » September 20th, 2011, 6:02 pm

Thanks for reporting back on this.
~ MUCH appreciated!

Yea, once the patch file is in place, you can delete the s2-hacks.php file and even modify your Profile Modification Options again, if you like. Yes, this will be included with the next official release.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Problem With 110915 and other plugins with JS

Postby godrob » September 21st, 2011, 5:56 am

Brilliant, thanks very much Jason.

Just on a side note, I see that BuddyPress 1.5 has now been officially released. You may want to check this link out:

http://buddypress.org/2011/09/buddypres ... available/

I know you guys are working on making S2Member compatible. I just wanted to offer my assistance as a Beta tester when you have something available.

Thanks again to you and Cristian for a great plugin. In my opinion it's sooooooooooooooooooo much better than WMPU's Dev's Membership.

All the best
Rob.
User avatar
godrob
Registered User
Registered User
 
Posts: 33
Joined: August 26, 2011

Re: Problem With 110915 and other plugins with JS

Postby Cristián Lávaque » September 25th, 2011, 6:13 pm

Thanks for the kudos! We're very glad you're happy with s2Member. :)
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: Problem With 110915 and other plugins with JS

Postby AspectWD » September 29th, 2011, 9:55 am

Hi guys, do we know when the s2member update will be ready for BuddyPress 1.5 I really need to try it working before submitting a proposal to a new client. I ahve never used s2member but have high hopes for it with BuddyPress, thanks.
User avatar
AspectWD
Registered User
Registered User
 
Posts: 1
Joined: September 29, 2011

Re: Problem With 110915 and other plugins with JS

Postby Cristián Lávaque » October 1st, 2011, 4:05 am

s2Member 110927 should work with BuddyPress 1.5. http://wordpress.org/extend/plugins/s2member/changelog/

The URI restriction may still need a little more work to get it right, according to some user reports. viewtopic.php?f=4&t=15284
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: Problem With 110915 and other plugins with JS

Postby Jason Caldwell » October 3rd, 2011, 7:13 pm

The issue with URI Restrictions was corrected in the release of s2Member v111003.
http://wordpress.org/extend/plugins/s2member/changelog/

* (s2Member) **BuddyPress v1.5 fix**. Issues with BuddyPress v1.5 and s2Member's URI Restrictions; corrected in this release. Hook priority updated, and `template_redirect` converted to `wp` at priority `2`, giving s2Member the ability to integrate with BuddyPress v1.5 properly in all scenarios.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

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

cron