• Resolved Dargno

    (@dargno)


    Hi;

    I’m a WordPress developer and for one of our clients i’ve tried to implement the High Performance Order Storage (HPOS) due to really slow backend response times. Up to yesterday this was working as intended. Somehow we’re getting the error below currently. Since the stack trace refers to Woocommerse and HPOS I tried disabeling the feature. As soon as i use the regular WordPress posts storage method as primary method the order list loads fine (but slow). When HPOS is my primary storage method, i get the error below when loading the order list (/wp-admin/edit.php?post_type=shop_order) . All checkboxes for synchronisation are still checked and the database transaction method is still set to repeatable read.

    If there is anything i can do to smoothen this hickup out please let me know. Up to now HPOS made quite a difference in backend performance.

    Yours sincerely
    Joris Kroos – Oddworks

    Fatal error: Uncaught Error: Automattic\WooCommerce\Utilities\ArrayUtil::deep_assoc_array_diff(): Argument #2 ($array2) must be of type array, null given, called in /public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php on line 257
    in /public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php on line 233
    
    Call stack:
    
    Automattic\W\U\ArrayUtil::deep_assoc_array_diff()
    wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php:257
    Automattic\W\U\ArrayUtil::deep_compute_or_compare_array_diff()
    wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php:234
    Automattic\W\U\ArrayUtil::deep_assoc_array_diff()
    wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:1268
    Automattic\W\I\D\O\OrdersTableDataStore::get_diff_meta_data_between_orders()
    wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:1214
    Automattic\W\I\D\O\OrdersTableDataStore::is_post_different_from_order()
    wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:1101
    Automattic\W\I\D\O\OrdersTableDataStore::maybe_sync_order()
    wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:1026
    Automattic\W\I\D\O\OrdersTableDataStore::read_multiple()
    wp-content/plugins/woocommerce/includes/class-wc-data-store.php:171
    WC_Data_Store::read_multiple()
    wp-content/plugins/woocommerce/includes/class-wc-order-factory.php:123
    WC_Order_Factory::get_orders()
    wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:2316
    Automattic\W\I\D\O\OrdersTableDataStore::query()
    wp-content/plugins/woocommerce/includes/class-wc-data-store.php:224
    WC_Data_Store::__call()
    wp-content/plugins/woocommerce/includes/class-wc-order-query.php:87
    WC_Order_Query::get_orders()
    wp-content/plugins/woocommerce/includes/wc-order-functions.php:69
    wc_get_orders()
    wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php:333
    Automattic\W\I\A\O\ListTable::prepare_items()
    wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php:219
    Automattic\W\I\A\O\PageController::output()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:332
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-admin/admin.php:259
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce HPOS – fatal error – deep_assoc_array_diff’ is closed to new replies.