Warning: sizeof(): Parameter must be an array or an object that implements Countable in meta.php

I have a WooCommerce WordPress Theme installed.

The error is shown on all products pages, Here is the error:

Warning: sizeof(): Parameter must be an array or an object that implements Countablein C:xampphtdocsnitrowp-contentthemeswr-nitrowoocommercesingle-productmeta.php on line 37

Warning: sizeof(): Parameter must be an array or an object that implements Countable in C:xampphtdocsnitrowp-contentthemeswr-nitrowoocommercesingle-productmeta.php on line 43

Here are the related codes:

line 37

<?php echo wc_get_product_tag_list( $product->get_id(), ‘, ‘, ‘<span class=”tagged_as”>’ . _n( ‘Tag:’, ‘Tags:’, count( $product->get_tag_ids() ), ‘woocommerce’ ) . ‘ ‘, ‘</span>’ ); ?>

line 43
There is no line 43 code over in line 41. I’m pasting the line 38 to 41 codes

<?php do_action( ‘woocommerce_product_meta_end’ ); ?></div>

I’m new to e-commerce web development now, anyone can give me the reason and how to solve this problem?

Thank you.

Read more here:: Warning: sizeof(): Parameter must be an array or an object that implements Countable in meta.php

Leave a Reply

Your email address will not be published. Required fields are marked *