jackat Posted October 8, 2005 Share Posted October 8, 2005 Having trouble with my shopping cart: http://www.eurohouseandhome.com/catalog/in...p?sts_version=1 and I'm told I have "whitespace (blank lines or spaces) either before the opening or after the closing php tag in the file mentioned in the error. You just need to remove the whitespace." The page was showing this at the top above the osCommerce banner: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/jeurohou/public_html/catalog/includes/configure.php:57) in /home/jeurohou/public_html/catalog/includes/functions/sessions.php on line 66 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/jeurohou/public_html/catalog/includes/configure.php:57) in /home/jeurohou/public_html/catalog/includes/functions/sessions.php on line 66 This line (line 66) looks like this: () . "'"); Is there anything apparently wrong with this line? The shopping cart page first showed the error on line 67, which was a blank line - when I removed the blank line it said the error was on line 66 (shown above). I don't get it...Should I remove the spaces before and/or after the period? What am I missing? Suggestions? Link to comment Share on other sites More sharing options...
♥Vger Posted October 8, 2005 Share Posted October 8, 2005 'headers already sent' is the error you get when you have whitespace in the file. The whitespace will be before the opening or after the closing php tag for the whole page. The page which has the error is the includes/configure.php file, and it looks to be at the end of the file. Vger Link to comment Share on other sites More sharing options...
jackat Posted October 8, 2005 Author Share Posted October 8, 2005 Okay, I went to the files includes/configure.php and found that there might be unnecessary spaces at the end of the page so I deleted it and now the page doesn't show at all. So... what whitespace needs removing?: <?php /* 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', 'http://eurohouseandhome.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.eurohouseandhome.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'eurohouseandhome.com'); define('HTTPS_COOKIE_DOMAIN', 'www.eurohouseandhome.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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', '/home/jeurohou/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', 'jeurohou_osc1'); define('DB_SERVER_PASSWORD', 'T6Cd{iUEsqqw'); define('DB_DATABASE', 'jeurohou_osc1'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' // STS: ADD: Define Simple Template System files define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/mysite/'); define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php'); define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php'); define('STS_DEFAULT_TEMPLATE', STS_TEMPLATE_DIR . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php'); define('STS_FUNCTIONS', DIR_WS_INCLUDES . 'sts_functions.php'); // STS: EOADD ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.