WP Menu Cart
[resolved] Problem in responsive (5 posts)

  1. soniczoomedia
    Posted 1 year ago #


    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



  2. Ewout
    Plugin Author

    Posted 1 year ago #

    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!


  3. Ewout
    Plugin Author

    Posted 1 year ago #

    Hi George,
    Can you let us know if the above suggestion fixed your problem?


  4. soniczoomedia
    Posted 1 year ago #

    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.


  5. Ewout
    Plugin Author

    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Menu Cart
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.