I have installed zen photo and it is working fine if I call it directly from zen photo. however.. when I call zen photo from word press as described in this forum and on noscope.. I get it to work.. everything works fine except when you submit a comment i get errors stating that (and yes i am paraphrasing it) it cannot resend the headers because wordpress already sent them.. I see many people seem to have this integrated and I am wondering what I have done wrong. I have checked my code and right now it is exactally as noscope.com described. I have even tried a few ways of my own.
Has anyone else ran into this problem
Here are the 2 errors I get when I submit a comment
Warning: Cannot modify header information - headers already sent by (output started at
\Websites\chilifrei.net\wp-content\themes\steamship-gemeni\header.php:5) in
\Websites\chilifrei.net\zp\zen\template-functions.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at
\Websites\chilifrei.net\wp-content\themes\steamship-gemeni\header.php:5) in
\Websites\chilifrei.net\zp\zen\template-functions.php on line 67
This is running on W2k3SP1 IIS6 php 4.4.1 incase it makes a difference
Comments
Please keep in mind I am not a programmer by any means so tell me if by doing what I did I failed anything else
I commented out these lines in template-functions.php
// Then redirect to this image page to prevent re-submission.
// if ($commentadded) {
// Comment added with no errors, redirect to the image... save cookie if requested.
// if (isset($_POST['remember'])) {
// Should always re-cookie to update info in case it's changed...
// $info = array(strip($_POST['name']), strip($_POST['email']), strip($website));
// setcookie("zenphoto", implode('|~*~|', $info), time()+5184000, "/");
// $stored = array($_POST['name'], $_POST['email'], $website, $_POST['comment'], isset($_POST['remember']));
// } else {
// setcookie("zenphoto", "", time()-368000, "/");
// $stored = array("","","",false);
// }
// $g_album = urlencode($g_album); $g_image = urlencode($g_image);
// header("Location: " . "http://" . $_SERVER['HTTP_HOST'] . WEBPATH . "/" .
// (zp_conf('mod_rewrite') ? "$g_album/$g_image" : "index.php?album=$g_album&image=$g_image"));
// exit;
My hope with this was to stop zen photo from resending the headers if wordpress already did. I guess it worked.. Was there an easier way for this.. or am I making absolutely no sense