• Resolved mihii

    (@mihii)


    Hi, after an update yesterday I started getting this error when importing an order from amazon (basically when an order is created):

    Dettagli dell’errore
    ====================
    Un errore di E_ERROR è stato causato nella linea 210 del file /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php. Messaggio di errore: Uncaught TypeError: Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File::sanitize_source(): Return value must be of type string, null returned in /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php:210
    Stack trace:
    #0 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(176): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File::sanitize_source(‘mailchimp_wooco…’)
    #1 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(130): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File::generate_file_id(‘mailchimp_wooco…’, NULL, 1708667113)
    #2 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php(60): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->write_to_file(‘mailchimp_wooco…’, ‘2024-02-23T05:4…’, 1708667113)
    #3 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(164): Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2->handle(1708667113, ‘notice’, ‘handleOrderUpda…’, Array)
    #4 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(257): WC_Logger->log(‘notice’, ‘handleOrderUpda…’, Array)
    #5 /home2/atturiostoreadm/public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(739): WC_Logger->notice(‘handleOrderUpda…’, Array)
    #6 /home2/atturiostoreadm/public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php(515): mailchimp_log(‘handleOrderUpda…’, ‘order_status’)
    #7 /home2/atturiostoreadm/public_html/wp-includes/class-wp-hook.php(324): MailChimp_Service->handleOrderUpdate(43807, Object(WC_Order))
    #8 /home2/atturiostoreadm/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(43807, Array)
    #9 /home2/atturiostoreadm/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #10 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(196): do_action(‘woocommerce_upd…’, 43807, Object(WC_Order))
    #11 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(196): WC_Order_Data_Store_CPT->update(Object(WC_Order))
    #12 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(212): WC_Data_Store->update(Object(WC_Order))
    #13 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(252): WC_Abstract_Order->save()
    #14 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php(192): WC_Order->save()
    #15 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php(175): Automattic\WooCommerce\Internal\Orders\OrderAttributionController->maybe_set_admin_source(Object(WC_Order))
    #16 /home2/atturiostoreadm/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Orders\OrderAttributionController->Automattic\WooCommerce\Internal\Orders\{closure}(43807, Object(WC_Order))
    #17 /home2/atturiostoreadm/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #18 /home2/atturiostoreadm/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #19 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(103): do_action(‘woocommerce_new…’, 43807, Object(WC_Order))
    #20 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(186): WC_Order_Data_Store_CPT->create(Object(WC_Order))
    #21 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(214): WC_Data_Store->create(Object(WC_Order))
    #22 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(252): WC_Abstract_Order->save()
    #23 /home2/atturiostoreadm/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(133): WC_Order->save()
    #24 /home2/atturiostoreadm/public_html/wp-content/plugins/wp-lister-amazon/classes/integration/Woo_OrderBuilder.php(105): wc_create_order()
    #25 /home2/atturiostoreadm/public_html/wp-content/plugins/wp-lister-amazon/classes/page/OrdersPage.php(254): WPLA_OrderBuilder->createWooOrderFromAmazonOrder(‘1335’)
    #26 /home2/atturiostoreadm/public_html/wp-content/plugins/wp-lister-amazon/classes/page/OrdersPage.php(183): WPLA_OrdersPage->createOrder(‘1335’)
    #27 /home2/atturiostoreadm/public_html/wp-content/plugins/wp-lister-amazon/classes/page/OrdersPage.php(300): WPLA_OrdersPage->handleActions()
    #28 /home2/atturiostoreadm/public_html/wp-includes/class-wp-hook.php(324): WPLA_OrdersPage->displayOrdersPage(”)
    #29 /home2/atturiostoreadm/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #30 /home2/atturiostoreadm/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #31 /home2/atturiostoreadm/public_html/wp-admin/admin.php(259): do_action(‘amazon_page_wpl…’)
    #32 {main}
    thrown



    Which point to some interaction with mailchimp for woocommerce plugin. Any suggestion?


Viewing 1 replies (of 1 total)
  • Plugin Author ryanhungate

    (@ryanhungate)

    @mihii this is an interesting one. I’m going to assume you’re using a recent version of php ( 7 or greater ) which is recommended, but this is an error which will need to be corrected by this file which we don’t control.

    plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php

    I understand the log originated from the Mailchimp plugin, but the error being thrown is out of our control. Can you please re-open this with the Woo support and or possibly look into updating any plugins that might be out of date?

Viewing 1 replies (of 1 total)
  • The topic ‘Error after update when importing orders from Amazon’ is closed to new replies.