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

Question

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.

0
, Sahan Pasindu Nirmal 3 years 2020-06-02T16:10:22-05:00 0 Answers 174 views 0

Leave an answer

Browse
Browse