Conflict hook name (action / filter) “upgrader_post_install”
-
Hi,
I’m getting an error when visiting the Abandoned Cart page of the ActiveCampaign for WooCommerce plugin.
I believe the problem is due to the addition of an action hook with the same name as a WordPress filter hook: “upgrader_post_install”.
The file is:/plugins/activecampaign-for-woocommerce/admin/class-activecampaign-for-woocommerce-admin.php
. Line 743.The PHP error is:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Envato_Theme_Setup_Wizard::upgrader_post_install(), 1 passed in public_html/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in public_html/wp-content/themes/flatsome/inc/admin/envato_setup/envato_setup.php:235 Stack trace: #0 public_html/wp-includes/class-wp-hook.php(307): Envato_Theme_Setup_Wizard->upgrader_post_install('') #1 public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #2 public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #3 public_html/wp-content/plugins/activecampaign-for-woocommerce/admin/class-activecampaign-for-woocommerce-admin.php(743): do_action('upgrader_post_i...') #4 public_html/wp-content/plugins/activecampaign-for-woocommerce/admin/views/activecampaign-for-woocommerce-abandoned-cart-display.php(31): Activecampaign_For_Woocommerce_Admin->get_total_abandoned_ in public_html/wp-content/themes/flatsome/inc/admin/envato_setup/envato_setup.php on line 235
Line 235 of the envato_setup.php file is:
/** * After a theme update we clear the setup_complete option. This prompts the user to visit the update page again. * * @since 1.1.8 * @access public */ public function upgrader_post_install($return, $theme) { if ( is_wp_error( $return ) ) { return $return; } if ( $theme != get_stylesheet() ) { return $return; } update_option( 'envato_setup_complete', false ); return $return; }
The hook used:
add_action('upgrader_post_install', array($this,'upgrader_post_install'), 10, 2);
I have already contacted theme support. They suggested that I contact you.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Conflict hook name (action / filter) “upgrader_post_install”’ is closed to new replies.