• Resolved miruko

    (@miruko)


    Hi,

    I have this error: wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php on line 130

    My template develomper (PORTO) said this:

    The “Undefined array key ‘OR'” warning in class-wc-shipping-zone.php (WooCommerce) usually occurs due to a missing or incorrectly formatted shipping setting. Here’s how to resolve it:

    1. Go to WooCommerce → Settings → Shipping → Shipping Zones.
    2. Ensure that all shipping zones are properly configured.
    3. If you see an empty or misconfigured zone, delete it and re-add it.
    4. Save changes and check if the issue persists.

    If it doesn’t resolve your issue, please reach out to the woocommerce plugin support team to resolve your issue.

    This don’t resolve the problem, so I contact you

    thank you

    • This topic was modified 3 months, 3 weeks ago by miruko.
Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter miruko

    (@miruko)

    Hi @mosesmedh

    I did it but it doesn’t change anything

    Thread Starter miruko

    (@miruko)

    I have updated all plugins and WC to the latest version 9.7.1 but still one line of error code remains in admin:

    wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php on line 130

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello miruko,

    Thank you for your reply.

    I understand this issue has been going on for a while and we are still trying to pinpoint the cause of the problem. Some issues can be tricky, specifically the ones which we cannot reproduce. I appreciate your patience for this.

    I tried to check the screenshots you shared previously but they are no longer available.
    Could you please share the following screenshots again?
    – General Settings page: WooCommerce > Settings > General
    – Shipping page: WooCommerce > Settings > Shipping
    – Shipping settings page

    Also, share the latest System Status Report with me.
    You can paste it into https://pastebin.com and share the link here.

    The line 130 that is mentioned in the warning is responsible for fetching the State codes used in shipping.

    To troubleshoot, I recommend creating a staging site where we can delete all the shipping configurations to check if they are causing the problem.

    Looking forward to your response. 🙂

    Thread Starter miruko

    (@miruko)

    Hi @doublezed2,

    here you can find the screenshots: https://easyupload.io/fe904k

    System Status Report: https://pastebin.com/9UpTG2ew

    when you want I can create staging site

    thank you

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello miruko,

    Thank you for your reply.

    I have reviewed the screenshots and report you shared.
    The report shows several plugins active, but I understand you have already tested by deactivating all the plugins except WooCommerce. The screenshots are blurred so there is not much information to see.

    To troubleshoot further, I suggest creating a staging site, and if this is a staging site, then no need to create another. Next, following these steps:
    1- Delete all shipping zones and create only one that covers all the countries.
    2- Add a test flat rate shipping method to that zone.

    After this, check if the error is resolved or not. If the error appears, disable all the plugins except WooCommerce and switch to a default theme like Storefront.

    Let me know about the results.

    Best regards.

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi there! Since it’s been a while, I’ll mark this as resolved for now. Just reach out if you’d like to continue where we left off.

Viewing 6 replies - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.