Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning Code: Sessions_start


News2Me

Recommended Posts

Posted

How do I fix this warning code on my website: http://www.arielinternational.com

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/jwuzmsza/public_html/books/includes/filenames.php:64) in /home/jwuzmsza/public_html/books/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/jwuzmsza/public_html/books/includes/filenames.php:64) in /home/jwuzmsza/public_html/books/includes/functions/sessions.php on line 67

 

 

Thanks in advance

Posted

Looks like your config file in includes/configure.php is messed up somewhere. Check the file pathways, especially relating to cookies.

 

I notice that your site is 'Powered By' your site. What's the matter? Can't give osCommerce even a little bit of credit?

 

Vger

Posted

Check it against this config file. This is set up for a shared ssl and not a full sll.

 

<?php
/*
?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright (c) 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://www.yourdomain.com/'); // eg, http://localhost - should not be empty for productive servers
?define('HTTPS_SERVER', 'https://servername.yourhost.com/yourdomain.com/'); // (input your server name here) eg, https://localhost - should not be empty for productive servers
?define('ENABLE_SSL', true); // secure webserver for checkout procedure? (Change this to true)
?define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com/');
?define('HTTPS_COOKIE_DOMAIN', 'https://servername.yourhost.com/yourdomain.com/');
?define('HTTP_COOKIE_PATH', ''); 
?define('HTTPS_COOKIE_PATH', ''); 
?define('DIR_WS_HTTP_CATALOG', '/var/www/html/'); // absolute path required (only catalog if not installed in root directory)
?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', DIR_WS_CATALOG . 'pub/');
?define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/'); (you can delete this line)
?define('DIR_FS_CATALOG', '/var/www/html/'); 
?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 empty for productive servers
?define('DB_SERVER_USERNAME', 'your mysql username');
?define('DB_SERVER_PASSWORD', 'yourmysql password');
?define('DB_DATABASE', 'yourdomain_com_-_oscommerce');(default install name for database)
?define('USE_PCONNECT', 'false'); // use persistent connections?
?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'(set to mysql)
?>

Hope this helps - Vger

 

p.s. make sure to chmod this file back to 400 after editing.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...