Results 1 to 6 of 6

Hybrid View

  1. #1
    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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    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

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