Undefined array key ? AN ? class-wc-shipping-zone.php
-
Hi !
After 10 years I’m back in the business, so to say, and I decided to do a big update on the website. Updated wordpress to the latest release, and woocommerce to the latest release as well, so that both would support php 8.
Now I’m getting an error message on the backoffice. The website works, I can add items to the basket, I haven’t really tried other stuff, I only have 7 books for sale so it’s a tiny shop, with maybe a sale each month. But this message is super annoying as it’s blocking the woocommerce interface and preventing it from loading on some of the pages.
Here’s the full message :
Warning: Undefined array key "AN" in?/monsite/wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php?on line?125
And that’s line 124 to 126 :
foreach ( $countries as $location ) {
$location_parts[] = $all_countries[ $location->code ];
}I checked my shipping zones and nothing out of place. I did a search already and aside from somebody who had trouble with a similar file but for the cities, I couldn’t find anything. I don’t have any country with region area AN, since I didn’t choose specific regions, only whole countries.
The website is working, but like I said, it is annoying because some pages aren’t showing up properly on the backoffice.
Thank you for your help ??
The page I need help with: [log in to see the link]
- The topic ‘Undefined array key ? AN ? class-wc-shipping-zone.php’ is closed to new replies.