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.

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/warning-sizeof-parameter-must-be-an-array-or-an-object-that-implements-countable-in-meta-php/">

Warning: sizeof(): Parameter must be an array or an object that implements Countable in meta.php</a>
0
, Sahan Pasindu Nirmal 1 month 0 Answers 97 views 0

Leave an answer