Title: Plugin showing waring within html
Last modified: August 30, 2016

---

# Plugin showing waring within html

 *  Resolved [Roberto](https://wordpress.org/support/users/tudosaudavel/)
 * (@tudosaudavel)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/plugin-showing-waring-within-html/)
 * I’m using WordPress 3.9.7, woocommerce 2.1.12 and WooCommerce Google Product 
   Feed 3.3
 * Inside the html I see the error:
 * >  <script type=”text/javascript”> var google_tag_params = { ecomm_prodid: ‘REPLACE_WITH_VALUE’,
   > ecomm_pagetype: ‘REPLACE_WITH_VALUE’, ecomm_totalvalue: ‘REPLACE_WITH_VALUE’,};
   > </script> <script type=”text/javascript”> /* <![CDATA[ */ var google_conversion_id
   > = <!– Google Code for Dynamic Retargeting –> <script type=”text/javascript”
   > >
   >  var google_tag_params = { ecomm_prodid: ‘woocommerce_gpf_8382’, ecomm_category:[
   > <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/adminprosau/
   > public_html/wp-content/plugins/woocommerce-google-dynamic-retargeting-tag/wgdr.
   > php</b> on line <b>314</b> ],
 * [https://wordpress.org/plugins/woocommerce-google-dynamic-retargeting-tag/](https://wordpress.org/plugins/woocommerce-google-dynamic-retargeting-tag/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-showing-waring-within-html/#post-6363270)
 * Hi Roberto
 * I see two problems.
 * 1. There is still some custom retargeting code (‘REPLACE_WITH_VALUE’) which is
   not inserted by my plugin. You will have to delete this.
 * 2. The error you see (‘ on line 314 ‘) might have to do that I use some functionality
   which only works with the most current version of WordPress. You have 3.9.7 installed.
   The current version of WP is 4.2.3. WooCommerce currently is at 2.3.13. I will
   always only support the most current versions of WordPress and WooCommerce (plenty
   of reasons for that). So unless you don’t update WP and WC I will not be able
   to help. I guess in your case an update of WP and WC will solve the problem.
 * Cheers
    Aleks
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-showing-waring-within-html/#post-6363423)
 * Hi Roberto
 * I was able to fix the “Invalid argument supplied for foreach()” error. It was
   not so easy to replicate, but I’ve finally found the bug and fixed it. A new 
   version is available.
 * Cheers
    Aleks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin showing waring within html’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-google-dynamic-retargeting-tag/assets/icon-256x256.
   png?rev=1208932)
 * [Dynamic Remarketing for Google Ads and WooCommerce](https://wordpress.org/plugins/woocommerce-google-dynamic-retargeting-tag/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-google-dynamic-retargeting-tag/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-google-dynamic-retargeting-tag/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-google-dynamic-retargeting-tag/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-google-dynamic-retargeting-tag/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-google-dynamic-retargeting-tag/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [alekv](https://wordpress.org/support/users/alekv/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-showing-waring-within-html/#post-6363423)
 * Status: resolved