tomtheman2 Posted October 18, 2007 Share Posted October 18, 2007 I was fidderling around with the settings on configure.php trying to set the backup thing so that I can backup my site, but it didn't work. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/configure.php:2) in /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/functions/sessions.php on line 98 Thats the error at the top of my catalog, This is my configure.php code, <p> </p> <?php define('HTTP_SERVER', 'http://visiondecks.110mb.com'); define('HTTPS_SERVER', 'http://visiondecks.110mb.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'visiondecks.110mb.com'); define('HTTPS_COOKIE_DOMAIN', 'visiondecks.110mb.com'); define('HTTP_COOKIE_PATH', '/cartty/'); define('HTTPS_COOKIE_PATH', '/cartty/'); define('DIR_WS_HTTP_CATALOG', '/cartty/'); define('DIR_WS_HTTPS_CATALOG', '/cartty/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); ?> Also at the bottom of my catalog, there is an error with the counter, Parse error: syntax error, unexpected '=' in /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/counter.php on line 19 This is what is in the counter.php, <p> </p> <?php /* $Id: counter.php,v 1.5 2003/02/10 22:30:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ $counter_query = tep_db_query("select 18/10/07, counter from " . TABLE_COUNTER); if (!tep_db_num_rows($counter_query)) { $date_now = date('Ymd'); tep_db_query("insert into " . TABLE_COUNTER . " (18/10/07, counter) values ('" . $date_now . "', '1')"); $counter_18/10/07 = $18/10/07; $counter_now = 1; } else { $counter = tep_db_fetch_array($counter_query); $counter_18/10/07 = $counter['18/10/07']; $counter_now = ($counter['counter'] + 1); tep_db_query("update " . TABLE_COUNTER . " set counter = '" . $counter_now . "'"); } $counter_18/10/07_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_18/10/07, 4, 2), substr($counter_18/10/07, -2), substr($counter_18/10/07, 0, 4))); ?> http://visiondecks.110mb.com/cartty Please can someone help me put all of this straight, Thanks Tom Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2007 Share Posted October 18, 2007 On the top od configure.php there is a line:<p> </p> where did you get that. I do not have this in mine. Do you have originalconfigure.php back up?. Link to comment Share on other sites More sharing options...
tomtheman2 Posted October 18, 2007 Author Share Posted October 18, 2007 On the top od configure.php there is a line:<p> </p> where did you get that. I do not have this in mine.Do you have originalconfigure.php back up?. I have deleted that now, there is still this error though Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/functions/sessions.php:2) in /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/functions/sessions.php on line 98 Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/functions/sessions.php:2) in /www/110mb.com/v/i/s/i/o/n/d/e/visiondecks/htdocs/cartty/includes/functions/general.php on line 33 Please help. Link to comment Share on other sites More sharing options...
tomtheman2 Posted October 18, 2007 Author Share Posted October 18, 2007 Can someone just give me the original code for the configure.php please. Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2007 Share Posted October 18, 2007 <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', ''); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> This is empty configure.php, but do not look like you have any problems there. In your host cpanel or vdec go to dbase setup and click on check/repair.Seee if your dbase it is not corrupted. Link to comment Share on other sites More sharing options...
tomtheman2 Posted May 11, 2008 Author Share Posted May 11, 2008 www.visiondecks.co.uk, vision decks has now been sorted out! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.