Mmhh, did not solve all the issue a better patch will be:
replace:
foreach ( $wp_query->tax_query as $tax_query )
$term_count += count( $tax_query['terms'] );
by:
foreach ( (array) $wp_query->tax_query as $tax_query )
$term_count += count( $tax_query['terms'] )
It works now when i try todisplay my category:
https://blog.nicolargo.com/category/open-source
But when i try to get the feed for that category (https://blog.nicolargo.com/category/open-source/feed), i have the following error on the XML file:
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/srv/d_bilbo/web/blog/wp-includes/canonical.php</b> on line <b>153</b>
…