Fatal Error with Woo & Buddy Integration

I bought and installed: https://themekraft.com/wordpress-products/woocommerce-buddypress-integration/

Which works fine in itself. But, if I visit the Pro validation page I get the ugly fatal error below.

I contacted the developer who gave me this:

Unfortunately our plugin is not compatible with your theme. And what happens is that they both use the same library to manage extensions (addons), but at WordPress runtime the plugin files are read first than the theme files. Since the library is already initialized in our plugin, it is not initialized in your theme to avoid redeclaring functions and completely breaking the site. When it does not start, some custom methods and functions that the theme creates are not available and that is why you see these errors, because the library file that is taken into account is that of our plugin, which does not have all the functions of your theme.

I can’t just include the missing functions in our library because the instances are not the same, nor can I remove or modify our library because it would stop our plugin from working correctly and to correct it we would have to modify many files of our core. I tried other workarounds but unfortunately they didn’t work either.

I hope you can understand that the problem is not from our product, nor from your theme, simply the same WordPress dynamic makes them not compatible.


I tried switching off BuddyPress support in Theme Options, makes no difference.

I means that the plugin is overwriting your code to list the extensions. Is there anything you can do?

Best wishes, Bill

Error Details

An error of type E_ERROR was caused in line 224 of the file **/home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-content/themes/pro/framework/legacy/functions/updates/class-x-tgmpa-integration.php**. Error message: Uncaught Error: Call to undefined method TGM_Plugin_Activation::get_tgmpa_url() in /home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-content/themes/pro/framework/legacy/functions/updates/class-x-tgmpa-integration.php:224
Stack trace:
#0 /home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-content/themes/pro/framework/legacy/functions/admin/markup/page-home-box-extensions.php(33): X_TGMPA_Integration->bulk_manager_url()
#1 /home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-content/themes/pro/framework/legacy/functions/admin/markup/page-home.php(59): include(’/home/1071142.c…’)
#2 /home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-content/themes/pro/framework/legacy/functions/admin/setup.php(31): include(’/home/1071142.c…’)
#3 /home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-includes/class-wp-hook.php(308): x_addons_page_home()
#4 /home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#5 /home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /home/1071142.cloudwaysapps.com/dfepaaemar/public_html/wp-admin/admin.php(259): do_action()
#7 {main}
thrown

I checked and we are running the latest version of that library. I would tell them to update TGM so we can be compatible. I will remove the Fatal Error from happening and give a warning if you are loading an older version of this library. Have a great weekend!

Thanks Charlie - you can see from the vendor email above they’re not offering to do much. But fixing this in Pro would open up that plugin again. At the moment I asked for a refund.

Have a good weekend too, Bill.

Hello Bill,

Refunds are guaranteed within 30 days of purchase.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.