• Resolved abcserviceuk

    (@abcserviceuk)


    Good morning, I am hoping you can help, I have had the following error occur when trying to visit our WC Orders area of the admin section.
    
    I had the following information come through relating to this,
    
    I hope you can help,
    
    Kind regards, Brett
    
    
    
    When seeking help with this issue, you may be asked for some of the following information:
    
    WordPress version 6.3.1
    
    Active theme: Divi (version 4.22.1)
    
    Current plugin: WooCommerce (version 8.0.2) PHP version 8.1.22
    
    Error Details
    
    =============
    
    An error of type E_ERROR was caused in line 233 of the file /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php. Error message: Uncaught TypeError: Automattic\WooCommerce\Utilities\ArrayUtil::deep_assoc_array_diff(): Argument #2 ($array2) must be of type array, null given, called in /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php on line 257 and defined in /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php:233
    
    Stack trace:
    
    #0 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php(257): Automattic\WooCommerce\Utilities\ArrayUtil::deep_assoc_array_diff(Array, NULL, true)
    
    #1 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php(234): Automattic\WooCommerce\Utilities\ArrayUtil::deep_compute_or_compare_array_diff(Array, Array, false, true)
    
    #2 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php(1307): Automattic\WooCommerce\Utilities\ArrayUtil::deep_assoc_array_diff(Array, Array)
    
    #3 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php(1253): Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->get_diff_meta_data_between_orders(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Order))
    
    #4 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php(1140): Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->is_post_different_from_order(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Order))
    
    #5 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php(1065): Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->maybe_sync_order(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Order))
    
    #6 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(171): Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->read_multiple(Array)
    
    #7 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-factory.php(123): WC_Data_Store->read_multiple(Array)
    
    #8 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php(2556): WC_Order_Factory::get_orders(Array)
    
    #9 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(224): Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->query(Array)
    
    #10 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-query.php(87): WC_Data_Store->__call('query', Array)
    
    #11 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/includes/wc-order-functions.php(69): WC_Order_Query->get_orders()
    
    #12 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php(403): wc_get_orders(Array)
    
    #13 /home/sites/26b/f/f74c7b1c11/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(302): Automattic\WooCommerce\Internal\Admin\Orders\ListTable->prepare_items()
    
    #14 /home/sites/26b/f/f74c7b1c11/public_html/wp-includes/class-wp-hook.php(310): Automattic\WooCommerce\Internal\Admin\Orders\PageController->output('')
    
    #15 /home/sites/26b/f/f74c7b1c11/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
    
    #16 /home/sites/26b/f/f74c7b1c11/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    
    #17 /home/sites/26b/f/f74c7b1c11/public_html/wp-admin/admin.php(259): do_action('woocommerce_pag...')
    
    #18 {main}
    
    ? thrown
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @abcserviceuk

    I have had the following error occur when trying to visit our WC Orders area of the admin section. Fatal Error in WC Orders Area

    I see you’re running into a snag trying to access the WC Orders area of your admin section – a fatal error, no less! I’ve taken a look at the error message you’ve shared and it seems like there’s a hiccup with the ArrayUtil.php file in your WooCommerce plugin.

    The error message hints that the deep_assoc_array_diff() function is expecting to receive an array, but it’s getting null. This could be due to a variety of reasons – a conflicting plugin, an issue with your theme, or even a glitch in the WooCommerce plugin itself.

    Here’s a step-by-step guide to help you troubleshoot this pesky issue:

    1. Update the WooCommerce plugin: You’re currently on version 8.0.2, but there’s a newer version out there – 8.0.3. Give that a whirl, it might have the fix you need.
    2. Plugin Conflict: Try disabling all plugins except WooCommerce. If the issue disappears, you can then reactivate the plugins one at a time to pinpoint the troublemaker.
    3. Theme Issue: Swap to a default theme like Storefront to check if the problem is theme-related. If the default theme works fine, your current theme might be the culprit. Here’s a helpful guide on how to test for conflicts: ?? How to Test for Plugin and Theme Conflicts

    If the error still persists after these steps, we’ll need a bit more info. Specifically, it would be super helpful to know if there were any recent changes or updates before this error popped up.

    It would also be helpful if you could share your site’s System Status report. It will give us a better understanding of your site’s setup and help us pinpoint the problem. You can find it via WooCommerce > Status. Select Get system report and then Copy for support.

    Once you have that, please paste it inside a Code block in your reply, or use https://pastebin.com/ to paste it and share the link with us.

    Thank you for your patience and cooperation in this matter. I’m looking forward to your response so we can solve this issue for you.

    Thread Starter abcserviceuk

    (@abcserviceuk)

    Hiya, thank you very much for your reply, you’ll see I upgraded to 8.0.3

    1. Tried that and it still doesn’t work

    2) Does not work

    3) How does a theme effect the backoffice pages from loading?

    Here is the pastebin, hope this helps.

    https://pastebin.com/VSv6TUQY

    Thread Starter abcserviceuk

    (@abcserviceuk)

    Hiya, any news please? It’s getting worse….this is clearly affecting more things on my website because we also have a plugin which allows us to shop as customer when we are logged into our respective admin areas. Now when we choose the customer it doesn’t fill all the details out like it used too….this has only occurred since upgrading from 8.0.1 to 8.0.2/8.0.3 so clearly an issue with WooCommerce.

    Hi Brett ,

    This is not something I am able to reproduce on my test site, which uses the latest version of WooCommerce core, as the Orders page loads as expected without any errors being triggered.

    3) How does a theme effect the backoffice pages from loading?

    This can occur as a result of a theme conflicting with WooCommerce core, and to rule this out, a full conflict test is suggested.

    This includes deactivating all plugins except WooCommerce core, temporarily switching to a default theme, such as Storefront, and checking if the issue is resolved.

    You can read more on how to perform a full conflict test here:

    we also have a plugin which allows us to shop as customer when we are logged into our respective admin areas. Now when we choose the customer it doesn’t fill all the details out like it used too….this has only occurred since upgrading from 8.0.1 to 8.0.2/8.0.3 so clearly an issue with WooCommerce.

    Since this is not a built-in feature of WooCommerce core, and you are currently using a plugin to achieve this, you would need to reach out to the respective plugin developers for further help with this particular issue.

    
    Shop as Client for WooCommerce: by PT Woo Plugins (by Webdados) – 2.5

    I can see that you are using the above plugin to enable the functionality of shopping as a customer. Here is a direct link to their plugin support:

    Let us know how this goes!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error in WC Orders Area’ is closed to new replies.