You have two problems here. One is the result of the other.
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 251Originally Posted by jwbaker
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.
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).Originally Posted by jwbaker
Correct the problem with the foreach() statement and the other problem will go away.



