Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Invalid argument supplied for foreach()

    In my logs folder Im getting the following error:

    [20-Dec-2013 09:39:17 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /home/includes/modules/pages/checkout_shipping/header_php.php on line 222

    I haven't altered this file. Any idea what is causing this error and where/what to look for?

  2. #2
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Invalid argument supplied for foreach()

    Quote Originally Posted by DML73 View Post
    In my logs folder Im getting the following error:

    [20-Dec-2013 09:39:17 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /home/includes/modules/pages/checkout_shipping/header_php.php on line 222

    I haven't altered this file. Any idea what is causing this error and where/what to look for?
    Line 222 of "/includes/modules/pages/checkout_shipping/header_php.php" in Zen Cart 1.5.1 does not contain a foreach()... Have you tried backing up your copy and uploading a "clean" copy of the file?

    One can download a "clean" copy of Zen Cart 1.5.1 from the homepage of this website.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #3
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Invalid argument supplied for foreach()

    Thanks I will try that. By comparing the files with WinMerge I actually found out that the file had been modified.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Invalid argument supplied for foreach()

    Quote Originally Posted by DML73 View Post
    Thanks I will try that. By comparing the files with WinMerge I actually found out that the file had been modified.
    In another thread, there was discussion about the site being upgraded. Is it thought that this file was (or was not) modified as part of the upgrade, or is it thought that there may be a security concern? (If there is a thought that there may have been a hack attempt/success then should follow the protocol described at: http://www.zen-cart.com/wiki/index.p...ing_From_Hacks)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139g Invalid argument supplied for foreach()
    By rstar23 in forum General Questions
    Replies: 3
    Last Post: 16 Apr 2012, 05:48 AM
  2. Replies: 5
    Last Post: 29 Jun 2011, 04:16 AM
  3. Help receiving: Warning: Invalid argument supplied for foreach()
    By kateoeight in forum General Questions
    Replies: 9
    Last Post: 1 May 2007, 09:28 PM
  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

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