Title: Problem in responsive
Last modified: August 21, 2016

---

# Problem in responsive

 *  Resolved [soniczoomedia](https://wordpress.org/support/users/soniczoomedia/)
 * (@soniczoomedia)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/problem-in-responsive/)
 * Hi
 * excellent plugin! It works great on desktop but I get the following errors in
   responsive mode:
 * Warning: array_shif() [function.array-shift]:
    The argument should be an array
   in bla/bla/bla/wp-content/plugins/wp-menu-cart.php on line 170
 * Warning: Invalid argument supplied for foreach() in bla/bla/bla/wp-content/plugins/
   wp-menu-cart.php on line 171
 * Warning: implode() [function.implode]:
    Invalid arguments passed in bla/bla/bla/
   wp-content/plugins/wp-menu-cart.php on line 175
 * The above warnings are on every page regardless of whether the cart is empty 
   or not.
 * It does not seem to be OS related ’cause when I switch to “make my site responsive
   on all devices” (one of my theme’s settings) I get the errors on all devices 
   and browsers (PC: IE, Firefox, Chrome / Mac: Safari / iPhone: Safari).
 * When I switch to “make my site responsive for mobile devices” all desktops and
   all browsers are fine except of course for the iPhone.
 * I am using WP 3.6, Myriad Theme (by MySiteMyWay) and Jigoshop 1.7.3
 * I would really appreciate your help with this!
 * Many thanks
 * George
 * [http://wordpress.org/plugins/wp-menu-cart/](http://wordpress.org/plugins/wp-menu-cart/)

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

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/problem-in-responsive/#post-4050566)
 * Hi George,
    I will see if we can push an update with a fix for this problem shortly.
   We have fixed this in the pro version but haven’t gotten around to adding it 
   to the free version too.
 * This happens when the function that tries to collect the common classes used 
   for the menus doesn’t find any classes at all. We didn’t account for that at 
   first but as I said we do have a check built in the latest pro version so it 
   doesn’t spit out all these errors. Free version will follow soon, hopefully before
   the end of the week!
 * Meanwhile, comment out line 142 & 143 of wp-menu-cart.php (simply add slashes):
 * // if ($this->get_common_li_classes($items) != ”)
    // $classes .= ‘ ‘ . $this-
   >get_common_li_classes($items);
 * This will get rid of the errors too. Let us know if you still have any other 
   questions!
 * Ewout
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/problem-in-responsive/#post-4050706)
 * Hi George,
    Can you let us know if the above suggestion fixed your problem?
 * Thanks!
    Ewout
 *  Thread Starter [soniczoomedia](https://wordpress.org/support/users/soniczoomedia/)
 * (@soniczoomedia)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/problem-in-responsive/#post-4050712)
 * Hi Ewout
 * Yes, commenting out the lines you said stops the errors from appearing.
 * Really sorry for not coming back to you earlier.
 * Thank you very much.
 * George
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/problem-in-responsive/#post-4050715)
 * No problem, that’s good to hear!
    Will be fixed permanently in the next release,
   which will be released this or next week.
 * Have a great day!
    Ewout

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

The topic ‘Problem in responsive’ is closed to new replies.

 * ![](https://ps.w.org/wp-menu-cart/assets/icon-256x256.png?rev=2190480)
 * [WP Menu Cart](https://wordpress.org/plugins/wp-menu-cart/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-menu-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-menu-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-menu-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-menu-cart/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/problem-in-responsive/#post-4050715)
 * Status: resolved