Title: woocommerce backing code error
Last modified: November 16, 2020

---

# woocommerce backing code error

 *  Resolved [muzammilelahi](https://wordpress.org/support/users/muzammilelahi/)
 * (@muzammilelahi)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/woocommerce-backing-code-error/)
 * I get the following error and I don’t know why.
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /home/customer/www/staging2.humaniticharity.org/public_html/wp-content/themes/
   backnow-child/wpcftemplate/woocommerce/basic/include/fund-raised.php on line 
   17
 * The code is below.
 *  `# Backer List Item.
    $baker_list = wpcf_function()->getCustomersByProduct();
   $total_item = 0; foreach($baker_list as $value){ $order = wc_get_order($value);
   if ($order->get_status() == ‘completed’) { $result = count($order->get_status());
   $total_item += $result; } }`
 * this is how my page looks: [https://prnt.sc/vjqk3y](https://prnt.sc/vjqk3y)

Viewing 1 replies (of 1 total)

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/woocommerce-backing-code-error/#post-13666593)
 * Hi there,
 * The code there is pointing to your theme – `themes/backnow-child` – and isn’t
   something that the WooCommerce plugin itself has any direct control over. Practically
   speaking, you’ll want to get in touch with the developer of that child theme 
   to take a closer look at the underlying code and possibly provide an update to
   make sure it’s compatible with the latest version of WooCommerce.

Viewing 1 replies (of 1 total)

The topic ‘woocommerce backing code error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [urgent](https://wordpress.org/support/topic-tag/urgent/)

 * 1 reply
 * 2 participants
 * Last reply from: [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/woocommerce-backing-code-error/#post-13666593)
 * Status: resolved