• Resolved chris62340

    (@chris62340)


    Hi dear, i need your help

    i’m using Woocommerce 10.2.2 on a WP 6.8.3, and PHP 8.2. After moving the install to a new server, all is working fine excepted when i publish a new product.

    When i push the “publish” button, the critical error screen appears… but when i actualise the page, i’em again on the “edit product” page and the product is published.

    The automatic email sent by the WP Install say that a problem occurs with the extension WooCommerce.

    And here are the details :

    Détails de l’erreur
    ======================
    Une erreur de type E_ERROR a été causée dans la ligne 245 du fichier /home3/sc4dwaz3456/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php. Message d’erreur : Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /home3/sc4dwaz3456/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php:245
    Stack trace:
    #0 /home3/sc4dwaz3456/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php(245): array_filter()
    #1 /home3/sc4dwaz3456/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php(349): Automattic\WooCommerce\Internal\Admin\CustomerEffortScoreTracks->enqueue_to_ces_tracks()
    #2 /home3/sc4dwaz3456/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php(335): Automattic\WooCommerce\Internal\Admin\CustomerEffortScoreTracks->enqueue_ces_survey_for_new_product()
    #3 /home3/sc4dwaz3456/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php(314): Automattic\WooCommerce\Internal\Admin\CustomerEffortScoreTracks->maybe_enqueue_ces_survey_for_product()
    #4 /home3/sc4dwaz3456/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\CustomerEffortScoreTracks->run_on_transition_post_status()
    #5 /home3/sc4dwaz3456/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #6 /home3/sc4dwaz3456/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #7 /home3/sc4dwaz3456/public_html/wp-includes/post.php(5740): do_action()
    #8 /home3/sc4dwaz3456/public_html/wp-includes/post.php(5000): wp_transition_post_status()
    #9 /home3/sc4dwaz3456/public_html/wp-includes/post.php(5212): wp_insert_post()
    #10 /home3/sc4dwaz3456/public_html/wp-admin/includes/post.php(453): wp_update_post()
    #11 /home3/sc4dwaz3456/public_html/wp-admin/post.php(227): edit_post()
    #12 {main}
      thrown

    If someone has an idea, it should be really great !

    Thanks a lot, Christophe

    • This topic was modified 7 months, 2 weeks ago by chris62340.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi Christophe,

    I see you’re encountering a critical error when publishing products on your site. Based on your logs, it’s the same recurring issue:

    array_filter(): Argument #1 ($array) must be of type array, bool given
    in CustomerEffortScoreTracks.php (WooCommerce)

    This is a known issue tied to WooCommerce’s Customer Effort Score (CES) tracking system. It typically occurs when WooCommerce attempts to queue CES surveys but receives unexpected data, often after a server migration or database change.

    Fortunately, there’s a quick workaround you can apply for now. You can disable WooCommerce.com tracking by going to:
    WooCommerce → Settings → Advanced → WooCommerce.com Then uncheck Enable tracking and click Save changes. Here’s a visual reference: https://snipboard.io/H5pEtB.jpg.

    Once that’s done, try publishing a new product again and let me know if the error persists. This should prevent the CES code from running and avoid the crash.

    I hope that helps. Let us know if you need anything else.

    Thread Starter chris62340

    (@chris62340)

    Hi Frank,

    thanks a lot for the quick solution !

    Have a nice day, Christophe 🙂

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Great to hear everything’s working perfectly now! Your feedback helps us improve and reach more users. If you have a moment, we’d be incredibly grateful if you could share your experience by leaving a review here: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Customer Effort Score problem ?’ is closed to new replies.