Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

logoff.php error


Guest

Recommended Posts

I have a catalog that works very well, I copy the entire catalog to another carpet www.catalog.com/catalog2, I create another database, edit both configure.php, and it works very well....but....when I goes to www.catalog.com/catalog2/logoff.php ....

 

Warning: setcookie() expects parameter 3 to be long, string given in /home/se000217/public_html/por-mayor/logoff.php on line 19

 

Warning: setcookie() expects parameter 3 to be long, string given in /home/se000217/public_html/por-mayor/logoff.php on line 20 :blink:

 

What can be wrong?? Configure.php:

 

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.catalog.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.catalog.com/');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '/catalog2/');

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

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/se000217/public_html/catalog2/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

In the file logoff.php in that lines is this contribution...

 

// HMCS: Begin Autologon **************************************************************

 

$cookie_url_array = parse_url((ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . substr(DIR_WS_CATALOG, 0, -1));

$cookie_path = $cookie_url_array['path'];

setcookie('email_address', time() - 3600, $cookie_path);

setcookie('password', time() - 3600, $cookie_path);

 

// HMCS: End Autologon **************************************************************

 

I hope anyone can help me, thanks!

Link to comment
Share on other sites

setcookie('email_address', time() - 3600, time()+60*60*24*30, $cookie_path); 
setcookie('password', time() - 3600, time()+60*60*24*30, $cookie_path);

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

setcookie('email_address', time() - 3600, time()+60*60*24*30, $cookie_path); 
setcookie('password', time() - 3600, time()+60*60*24*30, $cookie_path);

 

Thank you very much again Germ! Your really save my life.

Do you think that I can configure configure.php in any way to use only the folder www.catalog.com/images and not www.catalog.com/catalog2/images too?

It's because that folder is so heavy. Please let me know. Thanks a lot!

 

Hernán

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...