Fatal error after update
-
After updating Buddypress I got this message:
Fatal error: Call to undefined function bp_groups_update_meta_cache() in /www/htdocs/wfherman/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-group.php on line 988
Any idea what’;s wrong
-
Is it multisite?
Can you list the BuddyPress plugins you are using, @tintveld? Any specific steps that is triggering this? Is the error on all pages?
Can you try this fix and see if it resolves your problems?
https://buddypress.trac.wordpress.org/attachment/ticket/7140/7140.01.patchIf you’re using BP Group Hierarchy, you need to apply this patch:
https://github.com/ddean4040/BP-Group-Hierarchy/pull/21/filesNo @sharmavishal, @r-a-y
The message appears when I try to open the home page.
My hosting provider installed the last back up.Then as ray suggested
Can you list the BuddyPress plugins you are using, @tintveld?
Can you try this fix and see if it resolves your problems?
https://buddypress.trac.wordpress.org/attachment/ticket/7140/7140.01.patchHi,
I’ve faced the same problem. The patch https://buddypress.trac.wordpress.org/attachment/ticket/7140/7140.01.patch releaved me from the initial problem but now I have another one error message at the same place – Courses Group widget (it doesn’t allow to edit Courses):
Fatal error: Class ‘BP_Groups_Group’ not found in /path-to-project/wp-content/themes/lms/framework/buddypress/metaboxes.php on line 15Please advise.
@oddreal – Is this theme freely available on wordpress.org or Github so we can take a look? Or is this a premium theme?
@r-a-y, it’s a premium theme. Please see the link on it:
http://themeforest.net/item/lms-responsive-learning-management-system-wordpress-theme/7867581/supportHere can also be requested a backend demo.
Thank you for a prompt reply.
@oddreal – Without having access to the theme, it’s hard to tell what the problem is, but I’m guessing it’s a problem with not checking if the Groups component is active.
Tell the theme author to use
bp_is_active( 'groups' )
to check if the Groups component is active before doing whatever group check is applicable in the widget code.OK, thank you, we’ll try this.
[ SOLUCTION ]
error buddypress/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-group.php on line 988
update 988 line:
if ( ! empty( $r['update_meta_cache'] ) ) {
to:
if ( ! empty( $r['update_meta_cache'] && bp_is_active( 'groups' )) ) {
@metaverso – Your solution is a quick fix, but not the right solution.
We need to see what the underlying cause is.
If someone can pass me a copy of the LMS theme for solely debugging purposes, I can find out the problem. Contact me on wordpress.slack.com (r-a-y) or via email.
Resolved an error in Courses:
Fatal error: Class ‘BP_Groups_Group’ not found in /path-to-project/wp-content/themes/lms/framework/buddypress/metaboxes.php on line 15
A friend of mine – CMS developer – took a look at this and advised to just check User Groups at BuddyPress settings page (http://your.site/wp-admin/admin.php?page=bp-components)
Have a nice day to all.
@r-a-y does that mean user groups are compulsory?
@sharmavishal – No, it isn’t.
That’s more of a hacky way of fixing things. I still invite @oddreal to send me a copy of the theme so I can debug.
To really address this issue, plugin and theme developers should check out this development post for more info:
Class autoloading and what this means for plugin developersThanks a lot ray appreciate your feedback
@r-a-y I’ll provide you with developer’s contacts in a private message for more efficient work, because I’m just a newcomer and not sure I can be helpful here further.
- You must be logged in to reply to this topic.