![]() |
|
Error when posting comments - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Error when posting comments (/thread-501.html) Pages:
1
2
|
Error when posting comments - edasque - 2006-05-12 On my site (http://10days.bzzagent.com/gallery/index.php?album=Day1&image=DSC_6854.jpg#) when a user posts a comment he/she'll get: Warning: Cannot modify header information - headers already sent by (output started at /home/bzzagent/www/10days/gallery/index.php:5) in /home/bzzagent/www/10days/gallery/zen/template-functions.php on line 67 Warning: Cannot modify header information - headers already sent by (output started at /home/bzzagent/www/10days/gallery/index.php:5) in /home/bzzagent/www/10days/gallery/zen/template-functions.php on line 75 Any idea on how to fix this ? Erik Error when posting comments - Chilifrei64 - 2006-05-12 one quick way around it.. if you can.. it to turn off Display_errors in your php config file. the comment is still getting posted it is just displaying the warnings.. Other than the theme.. what else have you done to your gallery.. any special mods.. normally you will see those errors when integrating zp into another site like wp where the headers are sent outside of zp Error when posting comments - edasque - 2006-05-12 The gallery is pretty much vanilla. I do use wp and zenpress but the gallery is not hosted within a wp theme, it's just there, outside it. Error when posting comments - edasque - 2006-05-12 so now with the comments off, it displays a blank page instead of a blank page with errors Error when posting comments - trisweb - 2006-05-13 Are you sure you never modified anything else? Even in the config file? If you put even one blank line in the config file, or one bit of HTML in any other file, it could cause that error. Error when posting comments - Chilifrei64 - 2006-05-13 I get 2 different cookies when I post on your site... and they are different compared to all my zp sites.. normally I am only gettting 1 cookie with a name.. zenphoto and my post information.. i am getting 2 different ones on yours with different information... any ideas what would of caused this on your side. Error when posting comments - edasque - 2006-05-14 for the cookies I am thinking you're hitting the wp app first and then zenphoto which both set a cookie ? As far as modifying anything, there is one thing, I added a line of HTML to return to the wordpress site at the top of each of the three main pages (index, album, detail). What could that do ? Error when posting comments - Chilifrei64 - 2006-05-14 as far as the cookies go.. those are wordpress cookies and not zp cookies, hence the reason you are getting the errors.... That is most likely your problem. you might want to try this..(not sure how you have currently configured it) but my guess from what you said is with a php call you included/required a wordpress file into index/album/image.php is this correct.. ? you are receiving a conflict because both wp and zp are trying to output header information. include your wp file in the zp index.php before your require_once to template-functions.php Since I dont really know how exactally you integrated it then if that still doesnt work, on line 66 of image.php in the template that you are using, change "isset($error)" with ($FIXME). Let us know how that works for ya Error when posting comments - edasque - 2006-05-15 Except for the zenpress integration which I don't think is at play here, I didn't integrate WP in those three files, just put an href link that calls the page, nothing else. Maybe it's the blogbeat script ? Error when posting comments - Chilifrei64 - 2006-05-15 LOL, That is possible also, is there anything else that you have integrated into it.. If all you did was create a link at the top.. that is not the problem.. i thougth you were pulling WP stuff into your install.. it is probably the blogbeat which is causing the errors. How and where did you integrate that into your zp installation Error when posting comments - edasque - 2006-05-15 I just added the script tag for blogbeat after the zen script. You can see it on every page. Error when posting comments - Chilifrei64 - 2006-05-15 just for sake of determining weather or not blogbeat is the problem, remove the blogbeat from the template files and see if it still happens.. Error when posting comments - edasque - 2006-05-15 Ok, so I tried a few thing. First I removed the blogbeat script. No dice. Then I remove the theme files and overwrote them with the default-dark vanilla file. No dice. So I decided to use the default theme. No dice. So I re-aplied the modified default-dark I had. Still no dice but it looks good Error when posting comments - Chilifrei64 - 2006-05-15 so even the, unmodified, default theme does not work? whatabout the testing theme? Error when posting comments - edasque - 2006-05-15 same thing Error when posting comments - Chilifrei64 - 2006-05-15 Maybe there was something wrong with your download????? I am all out of ideas.. Try to download the latest version again and re-upload the index.php in the zproot and the zen directory. dont use the same config but rather put in your settings in the new config.php. honestly I am out of ideas. I have zp integrated into many sites left and right on multiple different webserver types and configurations.. and I have only had THAT problem when modding the files to do something other than default. Which is why I am suggesting to download a new package.. anyone have any other better ideas.. ??????? I am about all out.. Error when posting comments - trisweb - 2006-05-16 Please give us your gallery's URL so we can actually diagnose the problem. Thanks! Error when posting comments - edasque - 2006-05-16 http://10days.bzzagent.com/gallery/index.php?album=Day1&image=DSC_6854.jpg Error when posting comments - trisweb - 2006-05-16 Can you please copy us the entire text contents of your [zproot]/index.php file? Thanks. Error when posting comments - edasque - 2006-05-16 <?php require_once("zen/template-functions.php"); $themepath = 'themes'; $theme = $_zp_gallery->getCurrentTheme(); $_zp_themeroot = WEBPATH . "/$themepath/$theme"; if (in_context(ZP_IMAGE)) { include("$themepath/$theme/image.php"); } else if (in_context(ZP_ALBUM)) { include("$themepath/$theme/album.php"); } else if (in_context(ZP_INDEX)) { include("$themepath/$theme/index.php"); } ?> |