Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: question about debug HP Warning: Invalid argument supplied for foreach() php

    Quote Originally Posted by swguy View Post
    Going off Zen Cart 1.5.7c with the responsive_classic template:
    tpl_shopping_cart_default.php line 19 does a check for a non-empty cart:

    if ($flagHasCartContents) {

    this `if` branch includes the line that's showing an error

    foreach ($productArray as $product) {

    but you should not be entering this branch if you have an empty cart.
    And if you have a non-empty cart, then $productArray should be an array that would not cause the reported issue.

    Again that is if there also isn't other software introduced or changes made to the existing default software.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,671
    Plugin Contributions
    123

    Default Re: question about debug HP Warning: Invalid argument supplied for foreach() php

    > And if you have a non-empty cart, then $productArray should be an array that would not cause the reported issue.

    Agreed. So I would say check the files in includes/modules/pages/product_info/ and compare to a fresh download.
    (And of course compare your product_info template file to a fresh download.)
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #13
    Join Date
    Mar 2004
    Posts
    201
    Plugin Contributions
    0

    Default Re: question about debug HP Warning: Invalid argument supplied for foreach() php

    Thank you Software guy.. i will check these files and get back to you.. thank you again.
    My Multi_Site Zen Carts
    http://herasonlinemarket.com

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 1
    Last Post: 3 Jul 2013, 04:00 AM
  2. Replies: 7
    Last Post: 4 Jan 2013, 09:21 PM
  3. Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()
    By divinelighting in forum Addon Shipping Modules
    Replies: 2
    Last Post: 11 Jun 2011, 03:17 AM
  4. Warning: Invalid argument supplied for foreach
    By harlyman in forum General Questions
    Replies: 9
    Last Post: 23 Aug 2006, 11:39 AM
  5. Replies: 7
    Last Post: 31 Jul 2006, 04:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR