Results 1 to 6 of 6
  1. #1
    Join Date
    May 2006
    Posts
    6
    Plugin Contributions
    0

    Default Installation Error - Cannot Modify Header Information

    Here is the error I am receiving:

    Warning: Invalid argument supplied for foreach() in /home/mymyster/public_html/shopping_cart/zc_install/includes/modules/pages/inspect/header_php.php on line 251

    Warning: Cannot modify header information - headers already sent by (output started at /home/mymyster/public_html/shopping_cart/zc_install/includes/modules/pages/inspect/header_php.php:251) in /home/mymyster/public_html/shopping_cart/zc_install/includes/modules/pages/inspect/header_php.php on line 449

    Any Ideas?

    Thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Installation Error - Cannot Modify Header Information

    I would take a few minutes and get the Zen Cart v1.3.0.1 that was released and fixes this and a few other errors before going any further ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    May 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: Installation Error - Cannot Modify Header Information

    Thanks for the reply but that is the version I am using.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Installation Error - Cannot Modify Header Information

    If you were ... you would not have that bug ...

    Are you sure you uploaded all of the files?

    Perhaps get the full Zen Cart v1.3.0.1 from here ... and reload all of your files ...

    That was the first bug fixed ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Installation Error - Cannot Modify Header Information

    You have two problems here. One is the result of the other.

    Quote Originally Posted by jwbaker
    Here is the error I am receiving:

    Warning: Invalid argument supplied for foreach() in /home/mymyster/public_html/shopping_cart/zc_install/includes/modules/pages/inspect/header_php.php on line 251
    This is the real problem. The foreach() statement has a bad arguement in it. Now is there any reason you're not using the zencart directory layout? Every version of Zencart that I've ever installed sets it up in /zencart/zc_install. Now I haven't really looked through the code but it could be it's looking for the /zencart path and it can't find it. You will need to check line 251

    This is what you see:

    if ($open_basedir=@ini_get('open_basedir')) {
    if ($open_basedir) $this_class = 'WARN';
    $basedir_check_array = explode(':',$open_basedir);
    foreach($basedir_check_array as $basedir_check) { <--- THIS IS LINE 251
    if (!strstr($dir_fs_www_root, $basedir_check)) $flag_basedir=true;
    }
    if ($flag_basedir) $this_class = 'FAIL';
    }

    Your $basedir_check_array is invalid. I suggest you just unzip and upload the /zencart directory and all it's files and go from there.

    Quote Originally Posted by jwbaker
    Warning: Cannot modify header information - headers already sent by (output started at /home/mymyster/public_html/shopping_cart/zc_install/includes/modules/pages/inspect/header_php.php:251) in /home/mymyster/public_html/shopping_cart/zc_install/includes/modules/pages/inspect/header_php.php on line 449
    PHP will not do anything with Header information if there is output before the Header commands. Since PHP is outputing the error of your foreach() statement, any Header information will not be modified. It even tells you where the output was started from (line 251 in the header_php.php file).

    Correct the problem with the foreach() statement and the other problem will go away.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Installation Error - Cannot Modify Header Information

    Please post a link to or the results of zc_install/techsupp.php here
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Error log : Cannot modify header information
    By gingabox in forum General Questions
    Replies: 6
    Last Post: 24 Apr 2009, 08:42 AM
  2. Cannot Modify Header Information Error
    By acmc40 in forum General Questions
    Replies: 5
    Last Post: 14 Dec 2008, 06:28 PM
  3. Error: Cannot modify header information
    By BradSmith in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 26 Mar 2008, 07:27 PM

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