Forum Replies Created
I think I finally understand what is going wrong here. If you pass a bad group object to
bp_group_has_moderators()or don’t pass a group object and the global
$groups_template->groupisn’t set, this error can occur.
If you’ve had this problem, can you please respond telling me what theme you’re using? Furthermore, look in your theme where
bp_group_has_moderators()is called, and tell me if it’s being called with a
bp_group_has_moderators( $group_object )) or without an argument (like
Do you also see an entry in your error log like the following or not?
Trying to get property of non-object in /Users/dcavins/Sites/develop.git.wordpress.org/src/wp-content/plugins/buddypress/src/bp-groups/bp-groups-template.php on line 2576
Thanks for your help,
If you’re up for helping to root out this problem, please add this debugging info as mentioned above:
We’re closing in on the problem, I think. One more debug addition, this time to bp-core/bp-core-cache.php:
Pastie is broken at the moment, but hopefully it’ll be back up soon.
Thanks for you help with this!
The log-in page is a WordPress page. There is a guide on how to customize it:
The registration page is created by BuddyPress and can be modified in many ways. You’ll need to understand theme compatibility and overriding templates:
So you could create your own copy of
buddypress/members/register.phpin your theme to make big changes, or potentially hook into the action
bp_before_register_pageto just add some html to top of the BP page.
Best of luck.
Mail is complicated.
BP provides unsubscribe functionality, so you maybe don’t need to do that anymore. BP Email sends html emails when possible.
You might try filtering your messages in other ways. Have you read the “customizing emails” how-to? it includes an example of overriding the BP template so that the BP content is sent in your custom template.
Have you set up your BuddyPress pages?
If “Activate” is not set up, then WP will redirect you to your site’s home page.
I believe that there are conflicts between BP and Paid Memberships Pro. If you activate BP and deactivate Paid Memberships, does the page load?
What does your debug log say? https://codex.wordpress.org/Debugging_in_WordPress
@djpaul: Nope. I’ve added lots of
fwrite()statements to track behavior, but nothing in plugin form. Sorry.
No, we’ve not solved it, because most of us can’t recreate the issue. If you are comfortable doing some troubleshooting, please run the various
var_dumps and tracing code I’ve added further on up in this thread and let me know what you find. Or, grant me administrator access to your site via FTP for a short time when I’m able to dig into it myself.
Thanks! We’d love to have access to a broken site to see what’s up.
OK, maybe I could have administrator access to your site temporarily (or FTP access, whichever is easier for you)? You can find me on the buddypress channel in Slack, or email me at d_cavins76 [at] yahoo [dot] com.
You can remove the other statements if you want. We know what they’re doing. 🙂
We’re closing in on the problem, I think. One more debug addition, this time to
Thanks again for your help troubleshooting. Can you add a couple of debug statements to the function
prime_group_admins_mods_cache()in the same class? It looks like the cache item
bp_group_modsis not being set properly; I’m trying to understand why that would be.
Debug lines added here:
@jeffwilliams-1 Not at all! If you’re feeling like chasing it down, give it a try. When your code change last time failed, it was probably because somewhere along the line, a
<was encoded for the web as
& l t ;
so make sure that the changes to the file look visually like
Can you do the troubleshooting step requested above?
Unhappily, I’m not able to reproduce your problem on my servers. Can you test something for me in your environment where we know the problem exists? I’d like to know what the value of
$group_modsis before it’s passed to the
I’ve added a
var_dump()in this snippet: http://pastie.org/10962912
Please let me know what you find.
Hi, you have to enable WP registration at Settings > General > Anyone Can Register:
Within the same site, you could write a short code that would render the profile. Outputting profile data is pretty straightforward: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/
One another site, I’m less sure. You’d need BP API or similar, which we’re just now writing.
Check our Bowe Codes for some other useful short codes and examples for your own: https://wordpress.org/plugins/bowe-codes/screenshots/
I really have no idea, but checking the code base, that error is thrown when a field type supports options (like a dropdown or checkbox set) and the data posted at save is unpopulated or is not an array. If you’re familiar with the developer tools in Firefox or Chrome, visit that page and submit the form, then see what the
$_POSTpayload looks like.
I can’t see what moving hosts would change here, but the internet is a fragile thing. 🙂
You’ll have to be logged out to see the registration or activation page, otherwise they redirect to the home page. Have you tried it while logged out?
Since it’s theme specific, your best choice is to create a child theme and override that template part when you don’t want to see the image. (There are lots of conditional you can use, like
is_buddypress()which returns true on a BP page.)
It’s extremely unlikely that there will be a plugin that changes one aspect of a specific theme.
Child themes: https://codex.wordpress.org/Child_Themes
Your best bet is to start a new topic for support with your issue. In that topic, it would be helpful to know which version of bbPress you’re using, what version of BuddyPress you upgraded from (to 2.6.2) as well as the usual stuff.
Visit a forum, like https://buddypress.org/support/forum/how-to/ and scroll to the bottom of the topic list. The new topic form should be down there.
wadece1979- You should start a new topic for your support request. In that topic, describe your WP setup (single site, multisite) and whether the problem persists if you use a different theme. Thanks!
That’s the default behavior. If you’re not getting a list of matches, open your browser console to see what’s going wrong with the AJAX request that fetches the list of matches.
Note that if you type the @ symbol, you won’t find matches, so just start typing the username or display name.