Third party plugin functions uncallable

in my production site I have a custom plugin that calls the buddypress function groups_get_user_groups(), it functions totally fine in production.

I exported the website to a staging environment in Local by Flywheel. When it comes time for that function to fire though, it no longer works. instead yielding A critical error has occured. wp-content between the two sites are identical, what is going on?

I’m using Linux/Php 7.3/Mysql 8. Thanks in advance for any insight.

A stack trace and/or the complete error would be helpful.

Hello afragen,

In turns out that I hadn’t imported the database exactly right, so when I was configuring the settings in the admin panel (supposedly for the staging site), it was actually doing it for the production site!