• Resolved FreshGround

    (@freshground)


    Hello again,
    i had everything working fine and for some reason, now I get this above the shopping cart plugin and products won’t add to the cart anymore.. Here is the error message:

    Warning: Invalid argument supplied for foreach() in /hermes/bosweb26c/b590/nf.brandmediamarketingc/whf/wp-content/plugins/wppizza/inc/common.output.formatting.functions.inc.php on line 487

    Please let me know how to fix this. I’m so close to being ready to launch this site and was hoping to do so tomorrow.
    Thanks again,
    Mike

    https://www.ads-software.com/plugins/wppizza/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter FreshGround

    (@freshground)

    This is the few lines surrounding line 487 in the file that is mentioned in the warning:

    $cartItems=array();//ini array
    $cartItemsCount=0;//count all items
    $groupedItems=array();//ini array
    $summary[‘items’]=array();//ini array
    /**lets group items by id and sizes***/
    foreach($session[‘items’] as $groupid=>$groupitems){
    foreach($groupitems as $v){
    $cartItemsCount++;
    $cartItems[”.$groupid.”][]=array(‘sortname’=>$v[‘sortname’],’size’=>$v[‘size’],’sizename’=>$v[‘sizename’],’printname’=>$v[‘printname’],’price’=>$v[‘price’],’additionalinfo’=>$v[‘additionalinfo’]);

    Is there something I need to fix in here?

    Plugin Author ollybach

    (@ollybach)

    although there’s a relatively easy way to fix this, it seems strange that this ever even occurs, so i am wondering if something else is amiss…

    do you by any chance have a link so i can have a look at it ?

    Plugin Author ollybach

    (@ollybach)

    essentially it’s reasonably easy to fix the symptoms, but the cause might be somewhere else..

    Plugin Author ollybach

    (@ollybach)

    and another thing.
    since it being working and not, did you move stuff to a different server or changed themes or something ?

    Thread Starter FreshGround

    (@freshground)

    Thread Starter FreshGround

    (@freshground)

    No I did not move from domain or host or server. We were changing some of the images on the home page. I did disable the placeholder images on wp-pizza… pretty sure that was the only option changed.

    Plugin Author ollybach

    (@ollybach)

    i’m confused… whats the problem ?
    all looks fine to me ..?!
    i dont get any errors

    Thread Starter FreshGround

    (@freshground)

    Wow, I just went to the page on another browser and the warning is gone. Is there anything I need to do here, to be sure there isn’t an issue?
    Thanks again

    Plugin Author ollybach

    (@ollybach)

    not really. has nothing to do with browsers. maybe some caching issue ?
    really haven’t got a clue as i cannot see/reproduce the issue

    Thread Starter FreshGround

    (@freshground)

    ok, Thanks for all the help. I may bug you again if I see that error again.
    Cheers,
    Mike

    Thread Starter FreshGround

    (@freshground)

    I had to write another post to close the topic.

    Plugin Author ollybach

    (@ollybach)

    please do.
    for the time being i call this resolved though…

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