Xaraya problem with headers

elarkin

Joined: 2005-02-08
Posts: 18
Posted: Thu, 2005-08-04 02:39

Normal Xaraya error processing has stopped because of an error encountered.

The last registered error message is:

Product:
Component:
PHP Error code: 2

At: /var/www/localhost/htdocs/var/cache/templates/c1818f044ab9e9b759b0de52ead1e1c9.php (Line: 4) Cannot modify header information - headers already sent

[themes/Xaraya_Classic/pages/default.xt]

any help would be appreciated, i know this is an include"file.php" problem just not sure where to look, this happens only when I goto the gallery2 link from the nav bar

http://larkin.home.kg

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-08-04 10:07

elarkin, could you deactivate the only embedded mode in config.php of g2.
then please visit your g2 in standalone (http://larkin.home.kg/gallery2/).
do you get there the same error (just without the xaraya text around it)?

if not integration version are you using? (see xaraya -> modules)

 
elarkin

Joined: 2005-02-08
Posts: 18
Posted: Thu, 2005-08-04 14:51

0.6.10 is the Xaraya version of the module.
Xaraya 1.0.0-RC3
Gallery2-Beta4 from CVS (JPullman nightly CVS page)

I did set it back to standalone and it worked just fine.

one more thing I found was that i could not use the Java or the XP publish to upload pictures I could only use the standard browser interface, when it was wrapped in xaraya but standalone it works fine.

 
elarkin

Joined: 2005-02-08
Posts: 18
Posted: Thu, 2005-08-04 15:01

also have another problem with a windows installation I have tried, same specs as above, but I keep getting a "c:" placed in front of every single link inside xaraya

http://127.0.0.1/xar/c:index.php?module=gallery2&g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=7

every single link has it "c:" its weird

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-08-04 15:37

hmm, then it must be the integration files. there are not too many. please check in each of them if there's a newline or spaces before or after the

<?php

?>

tags and remove them.

@java/xp:
the java/xp upload methods don't work if your mode is embed only. maybe we can fix that, but for now, you'll have to set it to false to make it work.

@windows
really weird.

btw: it's j. p. mullan ;)

 
elarkin

Joined: 2005-02-08
Posts: 18
Posted: Thu, 2005-08-04 22:43

I checked all php files for whitespaces and removed the ones i found, before i did that I unpacked the files with winrar and not winzip.

<?php xarTplSetDoctype('xhtml1-strict');
        $_bl_locale  = xarMLSGetCurrentLocale();
        $_bl_charset = xarMLSGetCharsetFromLocale($_bl_locale);
        header("Content-Type: text/html; charset=$_bl_charset");
        echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';?>

the offending line is the header line, and the only other times I have seen this is if the header come after other lines of code.

Well I commented the header line and it works now, go figure.

J. P. Mullan noted, thanks :oops:

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-08-04 23:25

in what file is that?

 
elarkin

Joined: 2005-02-08
Posts: 18
Posted: Fri, 2005-08-05 13:38

c1818f044ab9e9b759b0de52ead1e1c9.php its a xaraya cache file

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-08-05 14:37

at the moment, i can't test xaraya / g2, have to wait until they fixed the php 4.4.0 thing...

 
elarkin

Joined: 2005-02-08
Posts: 18
Posted: Sat, 2005-08-06 02:01

Yea I just finished building a new gentoo box, emerged mod_php and I got the error 8 on xaraya, to bad the fix allows no debug output =(

 
nitrotn
nitrotn's picture

Joined: 2005-02-09
Posts: 391
Posted: Sun, 2005-08-07 18:47

Having the same problem. And if I comment out the header line in the
right cache-file - it works.

I dont know how often these cache files are regenereated - but this
is not a good solution - I think...

Help?

-ftr-

 
elarkin

Joined: 2005-02-08
Posts: 18
Posted: Tue, 2005-08-09 13:58

+5 Insightful has seemed to fix the header problem for me, I got the code from J.P. Mullans page before insightful was released, set it up with Xaraya on a fresh build of Gentoo Linux, apache2, Php 4.11, and Mysql.

http://Larkin.home.kg

Its built into xaraya which had its own issues with the new PHP release.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-08-10 23:45

thanks for reporting. it's finished in tomorrows nightly snapshot of G2.