Title: Warning issue
Last modified: August 22, 2016

---

# Warning issue

 *  Resolved [herka](https://wordpress.org/support/users/herka/)
 * (@herka)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/warning-issue-1/)
 * I keep getting this warning:
 * Warning: array_pop() expects parameter 1 to be array, boolean given in /home/*
   removed*/public_html/*removed*/wp-content/plugins/duracelltomi-google-tag-manager/
   integration/woocommerce.php on line 370
 * Any suggestions?
 * [https://wordpress.org/plugins/duracelltomi-google-tag-manager/](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)

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

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5302920)
 * Hi,
 * Thanks!
    I prepared a fix for this issue that will be released later today. The
   new enhanced ecommerce implementation has this bug.
 * Cheers,
    Thomas
 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5303163)
 * Hi herka,
 * A fix for this issue has been release, could you check if it is solved on your
   site as well?
 * Thanks,
    Thomas
 *  Thread Starter [herka](https://wordpress.org/support/users/herka/)
 * (@herka)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5303164)
 * yup its gone now 🙂
 * tnx
 *  [tubededentifrice](https://wordpress.org/support/users/tubededentifrice/)
 * (@tubededentifrice)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5303216)
 * Hello,
 * We still have this very same warning on the latest version, circa lines 34, 67,
   218, 262, 371, 383 of woocommerce.php
 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5303220)
 * Hi,
 * Please post the exact error message so that I can investigate.
    Also please check
   that you are using the latest version of the plugin.
 * Cheers,
    Thomas
 *  [tubededentifrice](https://wordpress.org/support/users/tubededentifrice/)
 * (@tubededentifrice)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5303221)
 * Hi there,
 * Here is a screenshot: [http://i.imgur.com/vU6KKo5.png](http://i.imgur.com/vU6KKo5.png)
   
   We are using the latest version proposed by WordPress (0.8.2). I “workedaround”
   by adding “is_array($xxx)” in the if clause surounding the issues. Example:
 *     ```
       if ( is_array($_product_cats) && count( $_product_cats ) > 0 ) {
       	$product_cat = array_pop( $_product_cats );
       	$product_cat = $product_cat->name;
       } else {
       	$product_cat = "";
       }
       ```
   
 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5303226)
 * Hi,
 * Thanks for your post.
    I am sorry for the late reply, I and my agency is now 
   deep into the XMas season and I was not able to allocate resources for the plugin.
 * My plan is to go through every suggestion and bug report again in January and
   release a new version at around the beginning of January.
 * Cheers,
    Thomas
 *  [memevertical](https://wordpress.org/support/users/memevertical/)
 * (@memevertical)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5303227)
 * In my case, the error was because my product did not had a category specified
   within Woocommerce.
 * Once all my products had or belong to a cateogory, the error went away!
 * My 2 cents 🙂

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

The topic ‘Warning issue’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

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

 * 8 replies
 * 4 participants
 * Last reply from: [memevertical](https://wordpress.org/support/users/memevertical/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/warning-issue-1/#post-5303227)
 * Status: resolved