Support » Plugin: WP Menu Cart » Problem in responsive

  • Resolved soniczoomedia



    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


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ewout


    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!


    Plugin Author Ewout


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


    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.


    Plugin Author Ewout


    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem in responsive’ is closed to new replies.