Search Results for 'wordpress'
-
Search Results
-
Topic: Problem when deleting terms
Hi,
I’ve run into an issue that appears to be caused by BuddyPress when deleting terms (categories, tags, and custom taxonomies) in WordPress admin.
When I delete a term in wp-admin (for example a category or a custom taxonomy term), I get the following error message:
“An error occurred while processing your request. Please try again later.”
However, after reloading the page, the term is actually deleted successfully.
– Deleting posts and comments works without any issues
– The problem affects:
– Categories (category)
– Tags (post_tag)
– Custom taxonomies (e.g. from PublishPress Series)
– No errors are logged in:
– wp-content/debug.log
– Apache error logWhen deleting the same term using WP-CLI, everything works perfectly:
bash wp term delete category <term_id>
– No errors
– Term is deleted correctlyI disabled all plugins and then re-enabled them one by one. The issue only occurs when BuddyPress is active. With BuddyPress deactivated, term deletion works normally in wp-admin (no error message)
In our system we use PublishPress Series, which registers a custom taxonomy called series. We have currently ~440 terms in this taxonomy
– The number is continuously growing
– The issue started appearing when the number of terms became relatively largeThis might indicate a scaling issue or something triggered by higher term counts.
– The term is deleted successfully via wp_delete_term
– Something in BuddyPress interferes with the response afterward
– Possibly an issue with AJAX response (invalid JSON, unexpected output, etc.)Has anyone seen this behavior before?
Is there anything in BuddyPress that hooks into term deletion (e.g. activity, notifications, or other components) that could break the admin AJAX response without triggering a PHP error?
Could this be related to the number of terms in a taxonomy?
We have also a similar problem when creating terms. No error messages in wp-admin but when clicking create it doesn’t look like that the term has been created. But when reloading the page the term is there.
Any pointers on where in BuddyPress this might happen would be greatly appreciated.
– WordPress: latest version
– BuddyPress: latest version
– PHP: 8.3 (PHP-FPM)Thanks!
Does anyone know how to add xprofile fields into the Activity form?
I would like to add a dropdown field, populated with 6 xprofile fields, that when a member s posting they can choose from the dropdown field, and add their choice to the activity they are posting.
I’m almost have it, I’m stuck at this first stage, but the names aren’t showing up:
add_action( 'bp_activity_post_form_options', 'render_pet_activity_fields' ); function render_pet_activity_fields() { echo '<label for="our-pets">Choose pet:</label>'; echo '<select name="our-pets" id="our-pets">'; $args = [ "field" => "137", "user_id" => bp_get_activity_user_id(), ]; $petnames = [bp_profile_field_data($args)]; if (!empty($petnames)) { foreach($petnames1 as $petname) { echo '<option value="' . strip_tags($petname) . '">' . strip_tags($petname) . '</option>'; } } $args = [ "field" => "138", "user_id" => bp_get_activity_user_id(), ]; $petnames2 = [bp_profile_field_data($args)]; if (!empty($petnames2)) { foreach($petnames2 as $petname2) { echo '<option value="' . $petname2 . '">' . $petname2 . '</option>'; } } echo '</select>'; }Using WordPress version 6.94.
Hello,
As my site is French-speaking, I use a custom slug for viewing messages.
In the slug configuration, for the “Messages” component, I have replaced the slug “view” (in English) with “afficher” (in French).
This slug is not recognized by the system and does not work, despite the permalinks being recreated, when the message number is specified.
For example:
The URL https://expatthailande.com/membres/utilisateurtest4/messages/view/7/ does not display the messages received, whereas https://expatthailande.com/membres/utilisateurtest4/messages/afficher/7/ does.
I am using BuddyPress version 14.4.0 on WordPress version 6.9.1.
Thank you for your help. Best regards.
Hello,
I’m unable to update the profile picture on a subscriber account.
When I attempt to upload an image via the BuddyPress profile page, I get the following message:
‘An error occurred. Please try again later.’No problem with the admin account.
This is my site:
If you wanted to see this behaviour please create an account by clicking the login link on the menu.Once logged in go to:
https://elearning.netmonics.com/members/admin/profile/
Then try to add a profile picture.WordPress version is 6.9.1.
Issue still occurs with the twenty twenty five theme installed.Any suggestions gratefully received.
Steve
Topic: Help Learning BuddyPress?
Hello,
Can I please ask what’s the best way to learn about BuddyPress.
I have looked for tutorials on Youtube but the ones I found are 7 or 8 years out of date. So difficult to get an overview.
I will install the BuddyPress plugin and try and figure things out from scratch if I have to but was just hoping for some background first.
Any suggestions greatly appreciated.
Best Regards,
Steve
P.S. Above the form that I’m using to make this request it says to include the wordpress, buddypress versions. I haven’t installed anything yet but they will be the latest as I’m starting from scratch.