Support » Plugin: WPPizza » Warning: Invalid argument supplied for foreach

  • Resolved fatamartina

    (@fatamartina)


    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/

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

    (@ollybach)

    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

    Plugin Author ollybach

    (@ollybach)

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

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

    Plugin Author ollybach

    (@ollybach)

    great , thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: Invalid argument supplied for foreach’ is closed to new replies.