osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Security error on account creation

This is a discussion on Security error on account creation within the osCMax v1.7 Installation forums, part of the osCMax v1.7 Forums category; Hey all- Helping a friend with a site, and we are running into a "cookie error" stating that ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Installation

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-26-2004, 02:46 PM
New Member
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Aodhan
Default Security error on account creation

Hey all-

Helping a friend with a site, and we are running into a "cookie error" stating that cookies have to be enabled. We have set the browser to accept everything known to man, and it still gives us the error.

Any ideas? Url of the site is http://www.mydvdepot.com

Aodhan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-27-2004, 06:16 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,521
Thanks: 1
Thanked 81 Times in 68 Posts
Rep Power: 10
jpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nice
Default

Yea - cookies for your site is not setup correctly. Post a copy of your CONFIGURE.PHP file (less the database bit).
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-02-2004, 07:24 AM
New Member
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Aodhan
Default

I'm a dork. Edited last post out, I'll get a copy of the config file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-02-2004, 07:32 AM
New Member
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Aodhan
Default

Ok, here's the CONFIGURE.PHP file. I edited out the database portion, and there is a directory cookie/tmp under the root structure.

Thanks all!

Aodhan

Code:
<?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.mydvdepot.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.mydvdepot.com');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', 'cookie/tmp');
  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/');

//Added for BTS1.0
  define('DIR_WS_TEMPLATES', 'templates/');
  define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
  define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
//End BTS1.0
  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
  define('DIR_FS_CATALOG', '/home/content/d/v/d/dvdepot/html/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-02-2004, 08:50 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,521
Thanks: 1
Thanked 81 Times in 68 Posts
Rep Power: 10
jpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nice
Default

What you need to post is the catalog configure.php - not the admin's (but you have to change BOTH anyway)

Look for and change to:
define('HTTP_COOKIE_DOMAIN', 'http://www.mydvdepot.com');
define('HTTPS_COOKIE_DOMAIN', 'http://www.mydvdepot.com'');
define('HTTP_COOKIE_PATH', '/cookie/tmp/');
define('HTTPS_COOKIE_PATH', '/cookie/tmp/');
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-02-2004, 08:54 AM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

Do you also have to CHMOD the cookie path '/cookie/tmp/' ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-02-2004, 09:31 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,521
Thanks: 1
Thanked 81 Times in 68 Posts
Rep Power: 10
jpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nice
Default

I find it odd that he wants to use a "non-standard" directory for this is normally it is /catalog/ or / (root) which normally hads the correct permissions (777 or 776). Thus if you move/change this then you have to have the same permissions on that directory also. I personally never tried moving it - so permissions should be looked at. I just assummed permissions was properly set.
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 03-02-2004, 12:22 PM
New Member
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Aodhan
Default

Quote:
Originally Posted by jpf
I find it odd that he wants to use a "non-standard" directory for this is normally it is /catalog/ or / (root) which normally hads the correct permissions (777 or 776). Thus if you move/change this then you have to have the same permissions on that directory also. I personally never tried moving it - so permissions should be looked at. I just assummed permissions was properly set.
We didn't change anything other than to install it to the root directory rather than a catalog directory. Here's the modified catalog side configure.php. I still get the same error when attempting to login. Both the cookie and tmp directories have permissions of 776.

Code:
<?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.mydvdepot.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', 'http://www.mydvdepot.com');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/cookie/tmp');
  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/');

//Added for BTS1.0
  define('DIR_WS_TEMPLATES', 'templates/');
  define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
  define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
//End BTS1.0
  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
  define('DIR_FS_CATALOG', '/home/content/d/v/d/dvdepot/html/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 03-03-2004, 06:24 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,521
Thanks: 1
Thanked 81 Times in 68 Posts
Rep Power: 10
jpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nice
Default

Im bad....


define('HTTP_COOKIE_DOMAIN', 'http://www.mydvdepot.com');
define('HTTPS_COOKIE_DOMAIN', 'http://www.mydvdepot.com'');

s/b
define('HTTP_COOKIE_DOMAIN', 'mydvdepot.com');
define('HTTPS_COOKIE_DOMAIN', 'mydvdepot.com'');
or try:
define('HTTP_COOKIE_DOMAIN', 'www.mydvdepot.com');
define('HTTPS_COOKIE_DOMAIN', 'www.mydvdepot.com'');
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 03-05-2004, 06:36 AM
Anonymous
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by jpf
Im bad....


define('HTTP_COOKIE_DOMAIN', 'http://www.mydvdepot.com');
define('HTTPS_COOKIE_DOMAIN', 'http://www.mydvdepot.com'');

s/b
define('HTTP_COOKIE_DOMAIN', 'mydvdepot.com');
define('HTTPS_COOKIE_DOMAIN', 'mydvdepot.com'');
or try:
define('HTTP_COOKIE_DOMAIN', 'www.mydvdepot.com');
define('HTTPS_COOKIE_DOMAIN', 'www.mydvdepot.com'');
When I change it to either of the options, links come up as "http://www.mydvdepot.com/mydvepot.com/login.php". Only with "http://www.mydvdepot.com" as the cookie domain do the links come up correctly, but then I get the cookie error.

Aodhan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Edit the account creation email adamr415 osCMax v2 Features Discussion 1 10-04-2005 05:29 PM
Adding fields to account creation page adamr415 osCMax v2 Customization/Mods 1 10-03-2005 10:05 PM
emails not sent after new account creation Anonymous osCMax v1.7 Installation 1 11-23-2003 11:55 AM
Application Hangs During Account Creation Submit maxwelltl osCMax v1.7 Discussion 1 09-24-2003 10:54 AM
Required Option at account creation martva osCommerce 2.2 Modification Help 1 06-02-2003 02:35 AM


All times are GMT -8. The time now is 02:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax