-
Steve Taylor replied to the topic Table 'wp_bp_optouts' doesn't exist in the forum How-to & Troubleshooting 8 months, 4 weeks ago
Actually there’s an issue running the SQL on our live server, which I didn’t get locally. With the first
ALTER TABLE
statement I get:‘Index column size too large. The maximum column size is 767 bytes.’
If I then run the next statement I get:
‘Incorrect table definition; there can be only one auto column and it must be defined as a key.’
Not…[Read more]
-
Steve Taylor replied to the topic Table 'wp_bp_optouts' doesn't exist in the forum How-to & Troubleshooting 8 months, 4 weeks ago
Thanks, that does the trick. I’ll let you know if we hit any problems down the line with this, but the table is there now at least.
-
Steve Taylor replied to the topic Table 'wp_bp_optouts' doesn't exist in the forum How-to & Troubleshooting 8 months, 4 weeks ago
Yes, all tables have the prefix
wp_
, as set in the config file.On the production site our hosts run a caching system, but I’m working locally on this, no caching. All minification etc. is done using Grunt build scripts – so nothing in plugins or otherwise as the site runs on the server.
The theme is quite a beefy custom theme, but I switched to…[Read more]
-
Steve Taylor replied to the topic Table 'wp_bp_optouts' doesn't exist in the forum How-to & Troubleshooting 8 months, 4 weeks ago
Sorry, no joy. I deactivated BP, updated from 9.0.0 to 9.1.1, re-activated, and still couldn’t see wp_bp_optouts in the DB. I tried re-running the tool mentioned, still no opt-outs table.
-
Steve Taylor replied to the topic Table 'wp_bp_optouts' doesn't exist in the forum How-to & Troubleshooting 9 months ago
Thanks, I hadn’t seen this tools page. However, even though running the last repair item reported as successful, I still don’t see the wp_bp_optouts table. And when I go to the ‘Manage Opt-Outs’ tab on the tools page, I get the same ‘table doesn’t exist’ error.
-
Steve Taylor started the topic Table 'wp_bp_optouts' doesn't exist in the forum How-to & Troubleshooting 9 months ago
I’m trying to solve an issue with replies to activity comments that aren’t appearing on the site (even though they’re in the database and not marked as spam). I tried posting a new reply to an activity comment as a test, and when the reply was posted, it came with 2 errors, SQL queries which failed because the table ‘wp_bp_optouts’ doesn’t…[Read more]
-
Steve Taylor replied to the topic updating from BP 2.9.4 in the forum Installing BuddyPress 1 year, 7 months ago
A note for anyone doing this. Sequential updating is probably best, at the very least if going through version 5.
I updated from 2.9.4 to 6.3.0 and got an error regarding a missing DB table (bp_invitations). This is new in BP 5.
Check bp-core-update.php, which contains functions for special actions updating to major versions. The one for…[Read more]
-
Steve Taylor replied to the topic updating from BP 2.9.4 in the forum Installing BuddyPress 1 year, 8 months ago
@shanebp Sure, we’ll be going through the process locally then on a staging space before applying to production.
If there’s no well-known red flags for updating through so many major versions at once, I’ll have a go with the all-at-once update and backtrack if we get stuck.
Thanks for the advice!
-
Steve Taylor started the topic updating from BP 2.9.4 in the forum Installing BuddyPress 1 year, 8 months ago
We have a site with quite a complex custom theme, a bunch of template- and hook-based BP modifications, and for various reasons we’ve not updated BP for a while – it’s on 2.9.4.
This is no longer viable, so we’re assessing updating to the latest version.
Are there any general tips for managing such a big update jump? Of course I’ll be reading…[Read more]
-
Steve Taylor replied to the topic how is the autocomplete list for mentions compiled? in the forum Creating & Extending 3 years, 8 months ago
Thanks. It turns out
bp_before_get_suggestions_parse_args
was the filter I was looking for, applied to thebp_core_get_suggestions()
function’s args. Since it’s called from AJAX, you need to parse$_SERVER[ 'HTTP_REFERER' ]
to find out where it’s being called from, but then you can pass args through toBP_Members_Suggestions
orBP_Groups_Member_Sug…
[Read more] -
Steve Taylor replied to the topic how is the autocomplete list for mentions compiled? in the forum Creating & Extending 3 years, 8 months ago
I was thinking of developer docs rather than guides to the user interface – but thanks anyway.
-
Steve Taylor replied to the topic how is the autocomplete list for mentions compiled? in the forum Creating & Extending 3 years, 8 months ago
As I said, it’s too erratic to replicate easily. At the moment I can’t get it to do anything other than suggest group members, which is what I expected. But before I posted this it was sometimes the list missed group members, sometimes it included all site members. Sometimes it was different in updates compared to comments, sometimes not.
I’m…[Read more]
-
Steve Taylor replied to the topic how is the autocomplete list for mentions compiled? in the forum Creating & Extending 3 years, 8 months ago
I’ve looked. I was looking for more information, and have searched to no avail. It’s not documented anywhere?
-
Steve Taylor started the topic how is the autocomplete list for mentions compiled? in the forum Creating & Extending 3 years, 8 months ago
I’m trying to work out the mentions functionality. I thought that in groups the autocomplete list was basically from other members of the group. This sometimes seems to be the case, but it’s erratic. Sometimes it’s different in activity comments compared to activity updates in the same group.
It’s so erratic that I can’t really provide steps to…[Read more]
-
Steve Taylor replied to the topic content not loading in custom Activity subnav item in the forum Creating & Extending 3 years, 8 months ago
That’s crazy. Why are there loads of code samples out there, very close variations on what I’ve got, with no mention of this need to stick code into the main activity template? I assume you mean members/single/activity.php – it’s the one being displayed despite me specifying members/single/plugins in the subnav screen function callback. I’ll work…[Read more]
-
Steve Taylor started the topic content not loading in custom Activity subnav item in the forum Creating & Extending 3 years, 9 months ago
I’m struggling to get some code working in a custom theme. Two points that may or may not be relevant: (1) it’s a child theme (parent is a ‘base’ we use for our projects), and (2) in the theme (child theme) we have all the BuddyPress templates (overriding the core templates).
I wondered if part of the problem was the code running in the theme. I…[Read more]
-
Steve Taylor replied to the topic user_id in code for custom members loop in the forum How-to & Troubleshooting 4 years, 9 months ago
This hack works, though not sure why it’s necessary. Just inside the loop:
global members_template;
if ( empty( $members_template->member->user_id ) ) :
$members_template->member->user_id = bp_get_member_user_id();
endif; -
Steve Taylor started the topic user_id in code for custom members loop in the forum How-to & Troubleshooting 4 years, 9 months ago
I’m creating a custom members loop to show a few active members. I pass query args to
bp_has_members()
, then include the usual members loop.Some member info is displayed correctly, e.g.
bp_group_member_link()
does show the member’s name, linked. But the link is missing. Also, the avatar isn’t showing.I’ve drilled down into the core functions…[Read more]
-
Steve Taylor replied to the topic are there potential issues with completely dequeuing legacy CSS? in the forum Creating & Extending 4 years, 9 months ago
Thanks @henrywright. I’m discovering a few bits that are ‘utility’ styles that I’m copying over (e.g. screen reader text class). It’d be really useful if things like this were in a separate ‘core’ include for people who want to strip back to a minimum. Anyway, I’m ploughing ahead, I’ll keep an eye on the markup.
-
Steve Taylor replied to the topic are there potential issues with completely dequeuing legacy CSS? in the forum Creating & Extending 4 years, 9 months ago
Thanks. I was wary because @danbp suggested otherwise: ‘Yes i understand (i’m also using a bootstrap theme), you can do like you want. But don’t claim after that that BP doesn’t work correctly.’ You’re saying that ‘doesn’t work correctly’ means ‘won’t be styled correctly’? There seems to be a confusion between functionality and presentation here.
- Load More
@gyrus
Active 2 months, 1 week ago