"headers already sent" error messages on main page
|
frangipanigeisha
Joined: 2003-10-11
Posts: 20 |
Posted: Sat, 2004-01-17 17:34
|
|
my site has been running gallery fine for months but today i did a heap of tweaking, and everything was fine until i changed the display album tree value from no to yes in config.php. while i was there i also changed the default thumbnail. the page i sloading OK except for this ugly code sitting on top. any suggestions? Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/sparkles/public_html/gallery/config.php:45) in /home/sparkles/public_html/gallery/session.php on line 59 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/sparkles/public_html/gallery/config.php:45) in /home/sparkles/public_html/gallery/session.php on line 59 Warning: Cannot modify header information - headers already sent by (output started at /home/sparkles/public_html/gallery/config.php:45) in /home/sparkles/public_html/gallery/util.php on line 1937
---- |
|

Posts: 8194
Can you please post your config.php file?
Posts: 20
I have put everything back the way i found it but the page is still displaying the error message.
<?php /* * Gallery - a web based photo album viewer and editor * Copyright (C) 2000-2003 Bharat Mediratta * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: gpl.txt,v 1.5 2003/06/26 09:23:57 jefmcg Exp $ */ ?> <?php /* * Protect against very old versions of 4.0 (like 4.0RC1) which * don't implicitly create a new stdClass() when you use a variable * like a class. */ if (!isset($gallery)) { $gallery = new stdClass(); } if (!isset($gallery->app)) { $gallery->app = new stdClass(); } /* Version */ $gallery->app->config_version = 48; /* Features */ $gallery->app->feature["zip"] = 0; // (missing <i>zipinfo</i> -- it's optional, missing <i>unzip</i> -- it's optional) $gallery->app->feature["rewrite"] = 1; $gallery->app->feature["mirror"] = 0; // (missing <i>mirrorSites</i> -- it's optional) /* Constants */ $gallery->app->galleryTitle = "f r a n g i p a n i | gallery"; $gallery->app->graphics = "ImageMagick"; // optional <i>pnmDir</i> missing $gallery->app->pnmtojpeg = "pnmtojpeg"; $gallery->app->ImPath = "/usr/local/bin"; $gallery->app->highlight_size = "200"; // optional <i>zipinfo</i> missing // optional <i>unzip</i> missing // optional <i>use_exif</i> missing $gallery->app->use_jpegtran = "/usr/bin/jpegtran"; $gallery->app->movieThumbnail = "/home/sparkles/public_html/gallery/images/movie.thumb.jpg"; $gallery->app->albumDir = "/home/sparkles/public_html/gallery/albums"; $gallery->app->tmpDir = "/tmp"; $gallery->app->photoAlbumURL = "http://www.frangipani.info/gallery"; $gallery->app->albumDirURL = "http://www.frangipani.info/gallery/albums"; // optional <i>mirrorSites</i> missing $gallery->app->showAlbumTree = "no"; $gallery->app->autorotate = "yes"; $gallery->app->default_language = "en_GB"; $gallery->app->ML_mode = "1"; $gallery->app->available_lang[] = "en_US"; $gallery->app->available_lang[] = "zh_CN"; $gallery->app->available_lang[] = "zh_TW"; $gallery->app->available_lang[] = "cs_CZ"; $gallery->app->available_lang[] = "da_DK"; $gallery->app->available_lang[] = "de_DE"; $gallery->app->available_lang[] = "en_GB"; $gallery->app->available_lang[] = "es_ES"; $gallery->app->available_lang[] = "fr_FR"; $gallery->app->available_lang[] = "it_IT"; $gallery->app->available_lang[] = "he_IL"; $gallery->app->available_lang[] = "is_IS"; $gallery->app->available_lang[] = "ja_JP"; $gallery->app->available_lang[] = "lt_LT"; $gallery->app->available_lang[] = "nl_NL"; $gallery->app->available_lang[] = "no_NO"; $gallery->app->available_lang[] = "pl_PL"; $gallery->app->available_lang[] = "pt_PT"; $gallery->app->available_lang[] = "ru_RU"; $gallery->app->available_lang[] = "ru_RU.koi8r"; $gallery->app->available_lang[] = "sl_SI"; $gallery->app->available_lang[] = "fi_FI"; $gallery->app->available_lang[] = "sv_SE"; $gallery->app->available_lang[] = "tr_TR"; $gallery->app->available_lang[] = "uk_UA"; $gallery->app->cacheExif = "no"; $gallery->app->jpegImageQuality = "95"; $gallery->app->timeLimit = "30"; $gallery->app->debug = "no"; $gallery->app->use_flock = "yes"; $gallery->app->expectedExecStatus = "0"; $gallery->app->sessionVar = "gallery_session"; $gallery->app->userDir = "/home/sparkles/public_html/gallery/albums/.users"; $gallery->app->locale_alias['pt_PT'] = "pt_BR"; /* Defaults */ $gallery->app->default["bordercolor"] = "white"; $gallery->app->default["border"] = "4"; $gallery->app->default["font"] = "arial"; $gallery->app->default["cols"] = "4"; $gallery->app->default["rows"] = "6"; $gallery->app->default["thumb_size"] = "120"; $gallery->app->default["resize_size"] = "500"; $gallery->app->default["resize_file_size"] = "80"; $gallery->app->default["fit_to_window"] = "no"; $gallery->app->default["use_fullOnly"] = "no"; $gallery->app->default["print_photos"] = "photoaccess"; $gallery->app->default["returnto"] = "yes"; $gallery->app->default["showOwners"] = "no"; $gallery->app->default["albumsPerPage"] = "30"; $gallery->app->default["showSearchEngine"] = "yes"; $gallery->app->default["useOriginalFileNames"] = "yes"; $gallery->app->default["display_clicks"] = "yes"; $gallery->app->default["public_comments"] = "yes"; $gallery->app->default["extra_fields"] = "Description"; $gallery->app->default["item_owner_modify"] = "yes"; $gallery->app->default["item_owner_delete"] = "yes"; $gallery->app->default["item_owner_display"] = "no"; $gallery->app->default["add_to_beginning"] = "no"; ?>Posts: 20
i am still having no joy with this problem.
anyone out there have any suggestions?
Posts: 20
joy of linux? are you out there?
i just have no idea what is causing this. i haven't ever touched the session.php or util.php files, and hardly changed a thing in the config files. just 2 values.
please, anyone?
Posts: 13451
frangipanigeisha, most likely this is caused my manually editing the config.php and there are som extra linefeeds in it. You need to remove all of those, and make certain that there are no extra lines after the last ?> on the end of it.
Posts: 20
ok, thanks for the lead. i found it.
the error was not the space after the last ?> but the first one - line 59, i think. a line break after the gallery intro tech speil.
yay, thanks so much.