PDA

View Full Version : Gallery errors


VacantView
5-25-04, 08:18 PM
Hi, I just re-reinstaled gallery (http://gallery.menalto.com) and I get these errors:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/vacant/public_html/images/platform/fs_unix.php:44) in /home/vacant/public_html/images/session.php on line 59

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/vacant/public_html/images/platform/fs_unix.php:44) in /home/vacant/public_html/images/session.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at /home/vacant/public_html/images/platform/fs_unix.php:44) in /home/vacant/public_html/images/util.php on line 1942

any ideas on how to fix?

BerksWebGuy
5-25-04, 09:31 PM
Posting some code would help (not all of it with over 1942 lines :D )

Do you have globals on or off??

VacantView
5-25-04, 10:03 PM
well, first of all, I don't know what globals are, sorry :$

but here is the 59th line of sessions.php

@ini_set('session.use_cookies', 1);

and here is the 44th...ish line of fx_unix.php

function fs_file_exists($filename) {
return @file_exists($filename);
}

and here is the 1942-ish line of util.php

// Set Charset
// Only when we're not in nuke, because headers might be sent already.
if (! isset($GALLERY_EMBEDDED_INSIDE)) {
header('Content-Type: text/html; charset=' . $gallery->charset);
}

thanks :D

B&T
5-25-04, 10:47 PM
We are not going to debug gallery code here. But what that error means is that there was already output to the browser when gallery was trying to do its thing. Without going too deep - certain PHP functions (as noted) can only be performed prior to any browser output.

The latest gallery updates made the code tighter so you may have been doing something before that you cannot now.

So I am guessing that you have some customization, or you are including gallery in some other page, or something like that - which is causing the browser ouptut before gallery gets off the ground.

VacantView
5-25-04, 11:25 PM
yeah, I modified it...a LOT.
*sigh* I'll have to start again from scratch.

thanks though :D I think I have an old version of gallery still -_-'

(jj)
5-26-04, 12:01 AM
If you don't happen to have an older version, give a yell and I can send you one. I've got most versions from 1.33 up

tbonekkt
5-26-04, 12:02 AM
If you don't happen to have an older version, give a yell and I can send you one. I've got most versions from 1.33 up
:eek: pack rat...

Actually, I save all the zips and tars of the apps I use too...

Jade Dragon
5-26-04, 07:32 AM
NOTE: there is a security alert for anything below 1.4-pl1

1.4.1 is the version that introduced skins along with many, many new features.

Good Luck
=)
Jade

benel
5-26-04, 08:38 AM
You can add the following functions to the beginning
(just after session_start()) and the end of the php files that gives you the errors.

eg:
session_start())
ob_start();
the rest of the php code here

then


ob_end_flush();

I always use these functions when working with sessions.
:)