opencredit / BadgeOS-Community-Add-on

The "BadgeOS Community Add-on" integrates BadgeOS features into BuddyPress and bbPress. Site members complete achievements and earn badges based on a range of community activity and triggers. This add-on to BadgeOS also includes the ability to display badges and achievements on user profiles and activity feeds.
GNU Affero General Public License v3.0
11 stars 8 forks source link

Hijacks Home Site when activated #11

Closed brichards closed 10 years ago

brichards commented 11 years ago

Originally reported by @TechTcr at https://github.com/opencredit/badgeos/issues/113

I've network activated Badge OS. but when I activate the Community add-on it seems as though blog id number 1 (the main site) is assigned to some other random blog.

So, without the community add on I can click on my link for mycommons.net and it will go to the main website. If I activate the plug in I am taken to some random blog and it seems as though I can't navigate anywhere else other than that blog.

8c5ae1f0-2951-11e3-8643-8fd544506e6b d0bc618a-2950-11e3-9bde-6b0025e18519

halleg commented 10 years ago

Same here. My network is set for having buddypress root blog on ID7. When I activate the badgeOS plugin, no matter what I do, I get re-directed to the ID6. The ID7 is no more accessible (admin/front) and the only way to get control back is to remove it. I tried to network activate vs site activate and still the same. For your info if it might help, this appeared after I checked the possibility to push achievement across the network in BadgeOS menu settings.

tw2113 commented 10 years ago

I believe this may be happening with http://wordpress.org/support/topic/multisite-with-buddypress-community-add-on-crashing-top-site as well, for which I do have a super-admin account if we need it.

halleg commented 10 years ago

Looking forward to it. Is there a way to remove the network site visibility of the badge directly in the database when we deactivate the plugin? I remember I had the plugin working till I activated this function.

halleg commented 10 years ago

Hello Folks, I am happy to beta test and help. Do you have any progress on this issue please? You did really a good job with this script and it is the missing piece for my project ;) Cheers.

tw2113 commented 10 years ago

@halleg you could test and see if #17 fixes the issue.

tw2113 commented 10 years ago

I realize that I asked you to test it here, but the patch has since went in to the core plugin itself, so updating that will be how to test it now.

brichards commented 10 years ago

Closing this. As @tw2113 said above, this issue was actually the result of a bug in BadgeOS core. Confusing, I know, because the issue is only present while using the Community add-on. You can see the code fix here: https://github.com/opencredit/badgeos/commit/d7bf28312d6d3adc6fff60e9aa93b59cdac13439