Title: Undefined array when attribute filtering
Last modified: February 27, 2024

---

# Undefined array when attribute filtering

 *  Resolved [sofianespera](https://wordpress.org/support/users/sofianespera/)
 * (@sofianespera)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-taxonomy/)
 * Hello. 
   I’m using the native widget from woocommerce “Product Filter – Attributes”,
   and i need to filter the produtcs by the attribute “Marca” (“Brand”, in english).
   When i filter to any value, appears this warning:Warning: Undefined array key“
   taxonomy” in /home/customer/www/gataria.pt/public_html/wp-content/plugins/woocommerce/
   src/Internal/ProductAttributesLookup/Filterer.php on line 153Please check it 
   here: [https://www.gataria.pt/loja/](https://www.gataria.pt/loja/)Go to “Marca”(
   on the left sidebar) and choose any option.Any idea how to solve this?Thank you
   so much[@carolm29](https://profiles.wordpress.org/carolm29/)
    -  This topic was modified 2 years, 3 months ago by [sofianespera](https://wordpress.org/support/users/sofianespera/).
    -  This topic was modified 2 years, 3 months ago by [sofianespera](https://wordpress.org/support/users/sofianespera/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-undefined-array-key-taxonomy%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-taxonomy/#post-17458421)
 * Hello [@sofianespera](https://wordpress.org/support/users/sofianespera/),
 * Thanks for reaching out.
 * I checked your site and was able to confirm the issue. In order to help with 
   further troubleshooting, I’d like to understand your site properly. Please share
   with us your system status report, which you can find under WooCommerce > Status
   > Get system report > Copy for support.
   Please copy and paste it via [https://gist.github.com/](https://gist.github.com/)
   and send the link here.
 *  Thread Starter [sofianespera](https://wordpress.org/support/users/sofianespera/)
 * (@sofianespera)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-taxonomy/#post-17458945)
 * Hello [@ckadenge](https://wordpress.org/support/users/ckadenge/)
   Here is the 
   link:
 * [https://gist.github.com/sofianespera/7c2338cfcf59fcb8b93f6fd800d9734e](https://gist.github.com/sofianespera/7c2338cfcf59fcb8b93f6fd800d9734e)
 *  Thread Starter [sofianespera](https://wordpress.org/support/users/sofianespera/)
 * (@sofianespera)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-taxonomy/#post-17459340)
 * Already solved. I was using a too much recent PHP version. I changed to PHP 7.4.33
   version and the error disappeared.
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-taxonomy/#post-17459605)
 * Hi [@sofianespera](https://wordpress.org/support/users/sofianespera/),
 * > Already solved. I was using a too much recent PHP version. I changed to PHP
   > 7.4.33 version and the error disappeared.
 * Glad to hear it – thanks for letting us know!
 * I’ll mark this thread as resolved now. If you have any further questions, I recommend
   creating a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Undefined array when attribute filtering’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)

 * 4 replies
 * 2 participants
 * Last reply from: [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-taxonomy/#post-17459605)
 * Status: resolved