Pages (2): 1 2   
Member
Member
edasque   12-05-2006, 13:59
#1

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

Member
Member
Chilifrei64   12-05-2006, 14:09
#2

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

Member
Member
edasque   12-05-2006, 14:12
#3

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.

Member
Member
edasque   12-05-2006, 14:42
#4

so now with the comments off, it displays a blank page instead of a blank page with errors

Developer
Developer
trisweb   13-05-2006, 04:05
#5

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.

Member
Member
Chilifrei64   13-05-2006, 16:00
#6

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.

Member
Member
edasque   14-05-2006, 14:33
#7

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 ?

Member
Member
Chilifrei64   14-05-2006, 15:25
#8

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

Member
Member
edasque   15-05-2006, 14:56
#9

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 ?

Member
Member
Chilifrei64   15-05-2006, 15:45
#10

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

Member
Member
edasque   15-05-2006, 18:18
#11

I just added the script tag for blogbeat after the zen script. You can see it on every page.

Member
Member
Chilifrei64   15-05-2006, 18:45
#12

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..
if it is the problem I would try a similar method that I mentioned above but with the blogbeat script.. put it in the index.php in your zproot indead of your template files.. see if that helps

Member
Member
edasque   15-05-2006, 18:55
#13

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

Member
Member
Chilifrei64   15-05-2006, 18:58
#14

so even the, unmodified, default theme does not work? whatabout the testing theme?

Member
Member
edasque   15-05-2006, 19:27
#15

same thing

Member
Member
Chilifrei64   15-05-2006, 22:39
#16

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

Developer
Developer
trisweb   16-05-2006, 06:11
#17

Please give us your gallery's URL so we can actually diagnose the problem. Thanks!

Member
Developer
Developer
trisweb   16-05-2006, 18:13
#19

Can you please copy us the entire text contents of your [zproot]/index.php file? Thanks.

Member
Member
edasque   16-05-2006, 19:46
#20
<?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");
}

?>
Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.