Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tried to fix cookie problem


NotaClue

Recommended Posts

First of I do not have a clue what I'm doing!

 

I just wanted a shop to sell some supplies, I paid someone to set up the basic.

But from the beginning have been having issues with the cookie usage.

The person who set it has been too busy to help and suggested I read the boards here to find the answer.

Well, I guess that was a mistake!

Today I tried one of the fixes suggested it didn't work so I reloaded the original file:

html/shop/includes/configure.php

Now the shop is not working and I have an error at the top of the home page:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/deequill/public_html/shop/includes/configure.php:46) in /home/deequill/public_html/shop/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/deequill/public_html/shop/includes/configure.php:46) in /home/deequill/public_html/shop/includes/functions/sessions.php on line 67

 

I would appreciate any help at all, I really do not know what I'm doing and just need to get this fixed.

I've been working at this for days and now this, I'm ready to just give up the whole store.

 

Some please take pity on me and help!

Dee

Link to comment
Share on other sites

Cut-n-Paste the contents of your html/shop/includes/configure.php file. Just blank out the bottom portion of the configure file regarding your mysql username and password. That is the best way to diagnosis your problem.

I'd rather be flying!

Link to comment
Share on other sites

Thanks!!!!

Here it is:

 

<?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://www.customquillingbydenise.com'); // 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', 'www.customquillingbydenise.com');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/shop/');

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', '/home/deequill/public_html/shop/');

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', 'XXXXX\);

define('DB_SERVER_PASSWORD', 'XXXXX');

define('DB_DATABASE', 'deequill_shop');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

That all looks normal. Make sure there are no extra lines or spaces at the top of the file (before the <?php) or at the end of the file (after the ?>) in configure.php

I'd rather be flying!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...