Conversation
supportHello, I’ve just encountered an issue with your plugin that was stopping my clients from buying upsells PHP Fatal error: Uncaught Error: Call to undefined function as_has_scheduled_action() in /public_html/wp-content/plugins/wp-marketing-automations/woofunnels/contact/class-woofunnels-db-updater.php:1163 Stack trace: 0 /home/710205.cloudwaysapps.com/kcctzesgcr/public_html/wp-content/plugins/wp-marketing-automations/woofunnels/contact/class-woofunnels-db-updater.php(1135): WooFunnels_DB_Updater->schedule_order_reindex_action() 1 /home/710205.cloudwaysapps.com/kcctzesgcr/public_html/wp-includes/class-wp-hook.php(310): WooFunnels_DB_Updater->bwf_update_cancel_order() 2 /home/710205.cloudwaysapps.com/kcctzesgcr/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 3 /home/710205.cloudwaysapps.com/kcctzesgcr/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /home/710205.cloudwaysapps.com/kcctzesgcr/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(397): do_action() 5 /home/710205.cloudwaysapps.com/kcctzesgcr/public_html/wp-content/pl in /home/710205.cloudwaysapps.com/kcctzesgcr/public_html/wp-content/plugins/wp-marketing-automations/woofunnels/contact/class-woofunnels-db-updater.php on line 1163 I added a check on this file wp-content/plugins/wp-marketing-automations/woofunnels/contact/class-woofunnels-db-updater.php to make sure the function exists before it runs, and now my error is gone if (function_exists(‘as_has_scheduled_action’)) { if ( ! as_has_scheduled_action( $hook, $args, ‘funnelkit’ ) ) { as_schedule_recurring_action( time(), 60, $hook, $args, ‘funnelkit’ ); } } But I think this is worth looking into, my site has virtually no custom development and it doesn’t seem to be a plugin conflict, so IDK why that function is not available on my install, any help is appreciated.
Hi Luciano @luchomatic Thanks for notifying the issue. That is strange, we can definitely add the check but that function exists inside our product already so how it can’t be available when called. Will check it out. Thanks!
Hi Luciano @luchomatic Thanks for notifying the issue. That is strange, we can definitely add the check but that function exists inside our product already so how it can’t be available when called. Will check it out. Thanks!