WordPress.org

Ready to get started?Download WordPress

Forums

WPPizza
[resolved] Warning: Invalid argument supplied for foreach (5 posts)

  1. fatamartina
    Member
    Posted 1 year ago #

    Hello, I have a problem with this plugin. When confirm the sending of the order form, this is displayed:
    Warning: Invalid argument supplied for foreach () in / web / htdocs / mysite / home / wp-content / plugins / wppizza / ajax / get-json.php on line 124
    Can you help me! thanks

    http://wordpress.org/extend/plugins/wppizza/

  2. ollybach
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    that's fixed in the next version (should be out in a day or tow)

    in the meantime, you can just change the line (124) that says:

    if(isset($v['additionalinfo']) && count($v['additionalinfo'])>0){

    to

    if(isset($v['additionalinfo']) && is_array($v['additionalinfo']) && count($v['additionalinfo'])>0){

    hope that helps for the moment, but let me know if you get any pther errors

    thanks

    Olly

  3. ollybach
    Member
    Plugin Author

    Posted 1 year ago #

    i guess we can call this resolved ?! (unless i hear otherwise)

  4. fatamartina
    Member
    Posted 1 year ago #

    I confirm that the problem has been resolved. Thank you!

  5. ollybach
    Member
    Plugin Author

    Posted 1 year ago #

    great , thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags