Braintree Fatal error plugin conflict
-
Hello,
I am using Braintree for WooCommerce plugin as well as another for paid memberships. When they are both loaded, neither checks to see whether it is already loaded and so it results in a fatal error because the function is being declared twice.
Wondering if it is possible to enclose the require_once function in an if statement?
if ( ! function_exists( 'requireDependencies' ) ) { require_once( '../lib/Braintree.php' ); }
Here is the error:
Fatal error: Cannot declare class Braintree, because the name is already in use in /home/customer/www/hearthandstonelht.com/public_html/wp-content/plugins/restrict-content-pro/includes/libraries/braintree/lib/Braintree.php on line 13
Please advise on an update or interim fix. Thank you!
The page I need help with: [log in to see the link]
- The topic ‘Braintree Fatal error plugin conflict’ is closed to new replies.