WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. soniczoomedia
    Member
    Posted 10 months ago #

    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/

  2. Ewout
    Member
    Plugin Author

    Posted 10 months 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!

    Ewout

  3. Ewout
    Member
    Plugin Author

    Posted 10 months ago #

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

    Thanks!
    Ewout

  4. soniczoomedia
    Member
    Posted 10 months 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.

    George

  5. Ewout
    Member
    Plugin Author

    Posted 10 months 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!
    Ewout

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.