{"id":19050332,"date":"2026-10-21T00:44:34","date_gmt":"2026-10-21T00:44:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/does-woocommerce-work-with-php-8-5\/"},"modified":"2026-10-21T00:44:34","modified_gmt":"2026-10-21T00:44:34","slug":"does-woocommerce-work-with-php-8-5","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/does-woocommerce-work-with-php-8-5\/","title":{"rendered":"Does woocommerce work with php 8.5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Currently Woocommerce works fine on my site for PHP 8.4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I switched to PHP 8.5 and my site generated a fatal error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I would like to know if there is due to my website or due to Woocommerce? Do other people suffer a fatal error when they switch from PHP 8.4 to 8.5?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the stack trace with the error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Error Details<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An error of type E_ERROR was caused in line 79 of the file \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/includes\/wc-attribute-functions.php. Error message: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/includes\/wc-attribute-functions.php:79<br>Stack trace: 0 \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/includes\/wc-attribute-functions.php(79): array_filter() 1 \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/src\/Internal\/ProductAttributes\/VisualAttributeTermAdmin.php(37): wc_get_attribute_taxonomies() 2 \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/includes\/class-woocommerce.php(428): Automattic\\WooCommerce\\Internal\\ProductAttributes\\VisualAttributeTermAdmin-&gt;register() 3 \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/includes\/class-woocommerce.php(281): WooCommerce-&gt;init_hooks() 4 \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/includes\/class-woocommerce.php(182): WooCommerce-&gt;__construct() 5 \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/woocommerce.php(55): WooCommerce::instance() 6 \/home\/myusername\/public_html\/mywebsite.com\/wp-content\/plugins\/woocommerce\/woocommerce.php(70): WC() 7 \/home\/myusername\/public_html\/mywebsite.com\/wp-settings.php(597): include_once(&#8216;\/home\/myusername\u2026&#8217;) 8 \/home\/myusername\/public_html\/mywebsite.com\/wp-config.php(220): require_once(&#8216;\/home\/myusername\u2026&#8217;) 9 \/home\/myusername\/public_html\/mywebsite.com\/wp-load.php(50): require_once(&#8216;\/home\/myusername\u2026&#8217;) 10 \/home\/myusername\/public_html\/mywebsite.com\/wp-admin\/admin.php(35): require_once(&#8216;\/home\/myusername\u2026&#8217;) 11 {main}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">thrown<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"template":"","class_list":["post-19050332","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19050332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19050332\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19050332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}