Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems with login after moving the shop to another hosting


garnet

Recommended Posts

Hi all

I have moved the shop to another hosting. I moved the files and the DB. I have done the changes to the configure file so it connects to the new DB.

There is a problem with log in / create user though.

When I try to do it, it always shows me the 'cookies not allowed' page. Cookies are accepted in the browser. What could be the problem?

this is the new configure file


<?php
define('HTTP_SERVER', 'http://kupuval.tibet.icnhost.net');
define('HTTPS_SERVER', 'http://kupuval.tibet.icnhost.net');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'http://kupuval.tibet.icnhost.net');
define('HTTPS_COOKIE_DOMAIN', 'http://kupuval.tibet.icnhost.net');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
#define('DIR_WS_IMAGES', 'http://www.kupuvalnik.com/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/kupuval/public_html/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'dbuser');

define('DB_SERVER_PASSWORD', 'ergdffhfdhfdhhf');
define('DB_DATABASE', 'dbname');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>

 

and this is the old one

 

 

<?php
define('HTTP_SERVER', 'http://www.kupuvalnik.com');
define('HTTPS_SERVER', 'http://www.kupuvalnik.com');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'www.kupuvalnik.com');
define('HTTPS_COOKIE_DOMAIN', 'www.kupuvalnik.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
#define('DIR_WS_IMAGES', 'http://shopzone.bg/image/data/');
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/kupuvaln/public_html/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'dbuser');
define('DB_SERVER_PASSWORD', 'sdfsdfgsdgsdgs0');
define('DB_DATABASE', 'db');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>

OSC beginner

Link to comment
Share on other sites

The cookie domains are incorrect.

 

Try:

 

define('HTTP_COOKIE_DOMAIN', 'www.kupuval.tibet.icnhost.net');
define('HTTPS_COOKIE_DOMAIN', 'www.kupuval.tibet.icnhost.net');

Or:

 

define('HTTP_COOKIE_DOMAIN', '.kupuval.tibet.icnhost.net');
define('HTTPS_COOKIE_DOMAIN', '.kupuval.tibet.icnhost.net');

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

Thanks

I got this.

I can now log in/register.

I can't seem to be able to add items to my shopping cart though. When I press buy it takes me to shopping cart and says it is empty.

Has anyone seen this before?

OSC beginner

Link to comment
Share on other sites

I can add things to the cart and they stay in it.

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

@@garnet

 

The new one.

 

I'm not that stupid.

:huh:

 

It's not a cookie problem - it's a code problem.

 

You are correct in that the "Buy now" button doen't add to the cart.

 

But the "Add to cart" button does.

 

Personally, I can only assume the coding in your template is below par.

:mellow:

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

@@garnet

 

I am going to guess and say, you use Internet Explorer to check the site ? Does it do the same thing with Firefox, Chrome, and Safari ? I only say this because recent changes to IE have effected many template sites.

 

 

 

Chris

Link to comment
Share on other sites

@@germ

no, you are not stupid for sure. I am - pressing checkout without anything added to the cart should give me an empty one. It's been ages since I used the site.

It is now sold and the new owner will manage everything incl. design/coding.

This was only transitional period.

Thanks a lot.

OSC beginner

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...