-
Steve Taylor started the topic No last_activity even though activities have been logged for members in the forum How-to & Troubleshooting 5 months, 1 week ago
Out of about 6000 members, we have around 1000 who have no entry with the type
last_activity' in the
wp_bp_activity` table.I think some will be simply members who have yet to log in, but it doesn’t seem to be all of them.
For instance, if I search the data for members who have no
last_activity
but do have an entry with typeupdated_profile
, I…[Read more] -
Steve Taylor replied to the topic bp_core_catch_no_access no-caching member pages in the forum How-to & Troubleshooting 6 months, 1 week ago
I’ve had no luck debugging this. It seems the no-cache response header is being set in two places:
/wp-includes/class-wp.php:760 > nocache_headers()
(this seems to be WP core not recognising the member profile URL path (e.g. /community/directory/john-smith/)/wp-content/plugins/buddypress/bp-core/bp-core-catchuri.php:613 > bp_do_404() >…
-
Steve Taylor started the topic bp_core_catch_no_access no-caching member pages in the forum How-to & Troubleshooting 6 months, 3 weeks ago
Our hosts have reported that all BP pages in the member directory are being set to no-cache, and are taking up a lot of processing power.
There might be more than one issue here, but to focus on the caching… It seems that if I visit a member profile page, it’s got this response header:
Cache-Control: no-cache, must-revalidate, max-age=0
As…[Read more]
-
Steve Taylor replied to the topic 'Declined' email wrongly sent to registrant in the forum How-to & Troubleshooting 1 year, 3 months ago
Thanks I’ve worked out how to disable that email. I don’t think this solves my initial problem – in theory this email should be active so it’s sent when an admin turns the request down. However, I kind of agree with the view in https://buddypress.org/support/topic/membership-requests-email/ – that usually when an admin turns a request down, it…[Read more]
-
Steve Taylor started the topic 'Declined' email wrongly sent to registrant in the forum How-to & Troubleshooting 1 year, 3 months ago
We’re experimenting with manually approving signups for the first time after starting to get too many spam signups.
Under Settings > General I’ve unchecked ‘Anyone can register’. Then, under Settings > BuddyPress > Options > Members Settings, I’ve checked ‘Allow visitors to request site membership’.
Now, when I fill in the registration form, an…[Read more]
-
Steve Taylor replied to the topic Table 'wp_bp_optouts' doesn't exist in the forum How-to & Troubleshooting 2 years, 1 month 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 2 years, 1 month 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 2 years, 1 month 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 2 years, 1 month 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 2 years, 1 month 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 2 years, 1 month 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 3 years 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 3 years 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 3 years 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 5 years 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 5 years 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 5 years 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 5 years 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 5 years 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 5 years, 1 month 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]
- Load More
@gyrus
Active 5 months ago