• Resolved Sepi

    (@sepicompanywork)


    hello, one of my wordpress dashboard is too slow, I checked with Q monitor and result is:

    PHP Error

    WarningUndefined array key 311+

    1. wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php:130

    1Plugin: woocommerce

    full report:

    1. wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php:130
    2. WC_Shipping_Zone->get_formatted_location()
      wp-content/plugins/woocommerce/includes/class-wc-shipping-zones.php:35
    3. WC_Shipping_Zones::get_zones()
      wp-content/plugins/woocommerce/src/Blocks/Shipping/ShippingController.php:306
    4. Automattic\W\B\S\ShippingController->hydrate_client_settings()
      wp-includes/class-wp-hook.php:324
    5. do_action('admin_enqueue_scripts')
      wp-admin/admin-header.php:118

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @sepicompanywork,

    The error message you provided indicates an issue with the WC_Shipping_Zone class in WooCommerce. More specifically, there’s an undefined array key at line 130 in the class-wc-shipping-zone.php file.

    However, I ran a test on my site using Query Monitor, but I couldn’t duplicate the issue you’re experiencing. Could you walk me through the steps you’re taking that led to this error? Also, I’m curious about which version of WC you’re currently using. Is it the latest one, 8.6.1, or are you on an older version?

    Additionally, please can you share a copy of the following:

    • System Status Report: Navigate to WooCommerce → Status. Select Get System Report and then Download for Support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    You could copy and paste your reply or share it via Mozilla Community Pastebin and share the link here.

    In the meantime, you can run a conflict test to help you identify the cause of the issue. More info: https://woo.com/document/how-to-test-for-conflicts/

    Let us know how that goes for you.

    Thread Starter Sepi

    (@sepicompanywork)

    Hi, thank you for your reply. I deleted all transport classes and transport areas and built from the beginning, and then this error did not appear and the WP Dashboard speed was better than before.

    The Step where I found such an error was in the WP Dashboard, in all sections, but there was no such error in the appearance of the site(front).

    Version Woo: 8.6.0 / Version wordpress: Last / Theme: hello elementor

    System Report / 2 Fatal Errors

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @sepicompanywork,

    I’m glad you were able to find a solution to your inquiry here and thanks for sharing it with the community too! ??

    Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Php error in woocommerce/includes/class-wc-shipping-zone.php:130’ is closed to new replies.