• Hi, we are receiving the following error on our site from the Putler connector plugin:

    Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in */wp-content/plugins/woocommerce-putler-connector/classes/class-woocommerce-putler-connector.php:200

    This is on version 2.11.2, PHP v8.0.

    Stack trace with private info removed below:

    PHP Fatal error / Exception has occurred in https://XXX.com/wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=0a00000a00. Error/Exception Message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in */wp-content/plugins/woocommerce-putler-connector/classes/class-woocommerce-putler-connector.php:200
    Stack trace:
    #0 */wp-includes/class-wp-hook.php(310): WooCommerce_Putler_Connector->delete_post()
    #1 */wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #2 */wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 */wp-includes/post.php(3407): do_action()
    #4 */wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php(200): wp_delete_post()
    #5 */wp-content/plugins/woocommerce/includes/class-wc-data-store.php(207): Abstract_WC_Order_Data_Store_CPT->delete()
    #6 */wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(189): WC_Data_Store->delete()
    #7 */wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php(176): WC_Data->delete()
    #8 */wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\Blocks\Domain\Services\DraftOrders->delete_expired_draft_orders()
    #9 */wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #10 */wp-includes/plugin.php(565): WP_Hook->do_action()
    #11 */wp-content/plugins/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_Action.php(22): do_action_ref_array()
    #12 */wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(65): ActionScheduler_Action->execute()
    #13 */wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(162): ActionScheduler_Abstract_QueueRunner->process_action()
    #14 */wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(132): ActionScheduler_QueueRunner->do_batch()
    #15 */wp-includes/class-wp-hook.php(308): ActionScheduler_QueueRunner->run()
    #16 */wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #17 */wp-includes/plugin.php(517): WP_Hook->do_action()
    #18 */wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php(52): do_action()
    #19 */wp-content/plugins/woocommerce/includes/libraries/wp-async-request.php(147): ActionScheduler_AsyncRequest_QueueRunner->handle()
    #20 */wp-includes/class-wp-hook.php(308): WP_Async_Request->maybe_handle()
    #21 */wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #22 */wp-includes/plugin.php(517): WP_Hook->do_action()
    #23 */wp-admin/admin-ajax.php(188): do_action()
    #24 {main}
      thrown (Line 200 in */wp-content/plugins/woocommerce-putler-connector/classes/class-woocommerce-putler-connector.php) (logged-in user: 00000)
     (wp_current_filter is: wp_ajax_as_async_request_queue_runner, action_scheduler_run_queue, woocommerce_cleanup_draft_orders, before_delete_post, shutdown)
    
Viewing 1 replies (of 1 total)
  • Plugin Author putler

    (@putler)

    @dnutbourne ,

    We’ve fixed the same issue and would be included in the next release.

    If you would like to have the pre-release plugin copy, request you to reach out to us from here.

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught TypeError’ is closed to new replies.