Any advice on debugging the error below?
WordPress 5.9.2, BuddyPress 10.1.0, bbPress 2.6.9
(I haven’t upgraded to 10.2.0 yet, but I don’t see any fixes that seems to apply to this.)
It happens “once in a while” since upgrading to 10.1.0. (Four times since March 9th.)
It *might* be related to email notifications (mentions?) in a bbPress closed topic.
[09-Mar-2022 17:13:53 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new' at line 1 for query UPDATE wp_bp_notifications SET is_new = 0 WHERE item_id IN () AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new_message'
made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/generatepress/page.php'), generate_do_template_part, get_template_part, locate_template, load_template, require('/themes/generatepress/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, bp_replace_the_content, apply_filters('bp_replace_the_content'), WP_Hook->apply_filters, BP_Members_Theme_Compat->single_dummy_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/single.php'), bp_thread_the_message, BP_Messages_Thread_Template->the_message, do_action('thread_loop_start'), WP_Hook->do_action, WP_Hook->apply_filters, bp_messages_screen_conversation_mark_notifications, bp_notifications_mark_notifications_by_item_ids, BP_Notifications_Notification::update_id_list
Hi I have the same problem as Stevecurrey. I can’t use the legacy because I’m using buddyx theme and the nuoveau is needed to the theme. I tried to implement the code from comminsky but unfortunately It is not working for me. Most probably I don’t paste it at the right place. Could someone give me the path and the name of the file and in which part of the file this code should go. Also if someone knows some plugin so we can edit the fields or text of the form would be great. Cheers
@shanebp thank you for the answer.
1- Friends component is active, it was active and i deactivate and reactive it for check.
2- I try to switch a theme like 2020 and the button is still missing.
I’ll be glad if you have more other advise to try.
Did you activate the Friends component? Settings > BuddyPress > Components ?
If you’ve already done that, then it is probably an issue with your theme.
Verify by switching momentarily to a WP theme like 2020.
Hi!
This code worked for me https://archived.seventhqueen.com/forums/topic/hide-members-without-avatars#post-15504
It would be nice to include it in the default theme settings.
Also, it appears that in the multisite mode, when accessing <subdomain>/members/<user> it does not pick up my child theme’s buddypress/members/single/front-member-type-type.php file. I have manually set the sub-site bp option to use the nouveau template, and the active theme is the correct child theme.
Thanks,
Hello, thank you for your response. I switched over to using the bp-legacy templates in my child theme dir and they seem to work as expected, verifying what you are saying.
Thanks again,
Chad
Hi,
That’s not a function defined into BP Core. It’s a function defined into the BP Template Pack « BP Nouveau ». My guess is your theme is not checking the BP Nouveau Template pack is active before using one of its functions. In WP Admin > Settings > BuddyPress options, Check what is the active template pack, there’s a good chance it’s BP Legacy, switch to BP Nouveau and it will fix the issue.
I found I didn’t have this in my header. Once I included this, it all worked great.
<?php wp_head(); ?>
Hope this helps someone else with a custom theme.
Hi @nihanthk @maleemuse,
I’m really having difficulties to reproduce the issue, cropping avatars works fine for me and all the BP Team Developers.
The feature we introduced in 10.0.0 is avatar’s history and the possibility for a user to recycle a previously uploaded avatar. There’s a way to deactivate the feature using this filter
<?php
add_filter( 'bp_disable_avatar_history', '__return_true' );
into a bp-custom.php file for example.
Using this filter solves your issue?
Otherwise, if you look into your server’s error_log file, do you see if a specific line is appearing once you tried to crop an avatar?
I just created my own social media website using metafans theme and buddypress plugins, along with the necessary plugins required. Everything seems to be working okay. I made a group for my community users, and clicked on it to see what appears on the page. But nothing but a blank page, saying “Page Not Found.” Is there anything I missed? I followed all the instructions for making groups, but I don’t know what to do next.
To make things clear. There’s no problem in “making” the groups. The real issue is that nothing appears when I visit the group page I just created.
Could you guys give me any help?
My Pleasure! Only found it out when trying out another Theme! Seems not every theme developer is ready for 8.0 php!
Why there is no message after registration like this:
https://prnt.sc/BhXgETtVlOZ1
I deactivated almost all plugins and switched to storefront theme, still like this
No, theme updates will not affect it. It goes in the plugins directory.
bp-custom.php
Thanks for your reply.
If i create bp-custom.php file, will it diseappear when i update my thème ?
Do you know where i could find an example of such a file ?
Thanks again for your help.
Fabien
It sounds like you could have a theme conflict. Your screenshot is gone, though, so I am not sure.
Totally understand your concern. Just suggesting you do a Live Preview with another free theme that you could install such as BuddyX and test it without publishing! Nothing will change on your live site!
Well I do not want to switch the theme, since I have many users online all the time
and I am afriad that afterwards some things will not work correctly anymore
Have you got another theme loaded that you could switch too in the Live Preview Customizer to see if its Gwangi thats the issue?
How frustrating! Which theme are you using?
Hi, thanks for your feedback, could you paste the last lines of your server’s error_log file after going again on the page so that the error happens?
Otherwise, what is the PHP version you are using? What’s the name of your active theme?
You need to contact the creators of the Hotsteel theme re ajax errors
Ok now it works with 2020 like you said, but why dnt it work on all themes? like hotsteel theme? why cant you make it work??
It is almost certainly due to your Hotsteel theme. To confirm, switch momentarily to a WP theme like 2020. If the issue does not persist, then you need to contact Hotsteel re ajax errors.