Crash in wp-admin in Boostrap.php
-
The free plugin crashes when used together with the premium plugin with the following error:
[25-Nov-2024 13:20:10 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ACFWF\Models\ACFWP() in /home/customer/www/domain/public_html/wp-content/plugins/advanced-coupons-for-woocommerce-free/Models/Bootstrap.php:376
Free version Versie 4.6.3.2, Premium version 4.0.0
Models/Bootstrap.php:376
if ( $this->_helper_functions->is_plugin_active( Plugin_Constants::PREMIUM_PLUGIN ) && version_compare( ACFWP()->Plugin_Constants->VERSION, '2.2', '<' ) ) {
$href = admin_url( 'admin.php?page=wc-settings&tab=acfw_settings' );
}Fixed by changing this part to:
if ( $this->_helper_functions->is_plugin_active( Plugin_Constants::PREMIUM_PLUGIN ) && function_exists('ACFWP') && version_compare( ACFWP()->Plugin_Constants->VERSION, '2.2', '<' ) ) {
$href = admin_url( 'admin.php?page=wc-settings&tab=acfw_settings' );
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.