New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buddypress follow plugin and buddypress 12.0.0 #125
Comments
I've merged #126 into master branch. Please give latest master branch a try to see if that fixes things. |
Hello @r-a-y I have updated the plugin but I am still getting errors this is message from my debug log file 2023-09-18T09:57:56+00:00 CRITICAL Cannot redeclare bp_follow_screen_followers() (previously declared in /var/www/wptbox/wp-content/plugins/buddypress-followers-master/_inc/users/screens.php:19) in /var/www/wptbox/wp-content/plugins/buddypress-followers-master/_inc/users/screens.php on line 17 2023-09-18T09:58:25+00:00 CRITICAL Cannot redeclare bp_follow_action_start() (previously declared in /var/www/wptbox/wp-content/plugins/buddypress-followers-master/_inc/users/actions.php:22) in /var/www/wptbox/wp-content/plugins/buddypress-followers-master/_inc/users/actions.php on line 21 Thanks |
I cannot duplicate this problem. Can you try either renaming or deleting the Or if you are able to start on a fresh, test install of BP 12 beta with the latest version of |
Hi For this error 2023-09-18T09:58:25+00:00 CRITICAL Cannot redeclare bp_follow_action_start() (previously declared in /var/www/wptbox/wp-content/plugins/buddypress-followers-master/_inc/users/actions.php:22) in /var/www/wptbox/wp-content/plugins/buddypress-followers-master/_inc/users/actions.php on line 21 I tried using gpt and it provided me with an updated code and I no longer receive this error again. `<?php
// Exit if accessed directly. if ( ! function_exists( 'bp_follow_action_start' ) ) {
} if ( ! function_exists( 'bp_follow_action_stop' ) ) {
} if ( ! function_exists( 'bp_follow_my_following_feed' ) ) {
} In this corrected code, I've added conditional checks using `if ( ! function_exists( |
The only error left now in my log is 2023-09-21T12:58:02+00:00 CRITICAL Cannot redeclare bp_follow_screen_followers() (previously declared in /var/www/wptbox/wp-content/plugins/buddypress-followers-master/_inc/users/screens.php:19) in /var/www/wptbox/wp-content/plugins/buddypress-followers-master/_inc/users/screens.php on line 17 |
Are you sure you don't have two different copies of the plugin active? The plugin from the WP repo is in a directory named buddypress-followers, while the one from Github has "-master" at the end, so manually FTP'ing the plugin wouldn't replace the older version. I would check the wp-content/plugins folder for duplicates. |
@mrjarbenne im 100% sure I only have one copy. Im only using the copy from github |
And the error still exists if you deactivate all your other plugins and activated a default theme? All these re-declarations make it seem like perhaps another plugin or theme has tried to integrate bp-follow functions that are getting triggered first. |
Hello @r-a-y @mrjarbenne This issue is now resolved. The problem was caused by a plugin conflict with https://wordpress.org/plugins/mark-new-posts/ Thanks so much for your support |
…ng plugins. In BuddyPress 12, the 'bp_parse_query' hook can run twice if a plugin does weird things like fetching posts on the 'parse_query' again. See #125.
I looked into the "Mark New Posts" plugin and the problem is with this line: https://plugins.trac.wordpress.org/browser/mark-new-posts/trunk/mark-new-posts.php#L160 . The plugin is fetching posts on the |
Thank you all for doing this - I downloaded the zip file and it worked great on BP :) |
Hello R-A-Y/Buddypress-Followers, can you read me ? There is an error am
getting on my site and it's not letting users follow watch other.
Please check this screenshot for the errors code and help.
|
Hello @ray,
I decided to test buddypress 12.0.0 beta 1 & 2 and noticed that clicking the user navigation menu for following and followers tab triggers an error.
The plugin is not compatible with the upcoming buddypress 12.0.0
A resolution would be really appreciated
Thanks
The text was updated successfully, but these errors were encountered: