Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Clients get logged off when returning to Home page


ogwinilo

Recommended Posts

I have installed this contribution, it works perfectly, well almost.

When moving away from 'My Account' back to 'Home', I become instantly logged off, requiring that I log on again if I want to continue with whatever I want to do.

How can I solve this?

Surprisingly, when I copy my store to another directory, I don't have this problem

 

Thanks in advance for any help

 

Felix

Link to comment
Share on other sites

The site isn't making any cookie with the osCid in it so the cart get's dumped.

 

Check the cookie setting in the config file.

 

Try these:

 

  define('HTTP_COOKIE_DOMAIN', '.YOUR_DOMAIN.com');
 define('HTTPS_COOKIE_DOMAIN', '.YOUR_DOMAIN.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');

 

It also appears your define for HTTP_SERVER has a slash after it when it shouldn't.

 

It probably says:

 

  define('HTTP_SERVER', 'http://YOUR_DOMAIN.com/');

 

Needs to be:

 

  define('HTTP_SERVER', 'http://YOUR_DOMAIN.com');

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 for the response. I have tried this and looked at my account.php. Now I get this error message:

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/woiqqwab/public_html/yebocom.com/includes/application_top.php on line 348

 

Would appreciate your help with this

 

Felix

 

The site isn't making any cookie with the osCid in it so the cart get's dumped.

 

Check the cookie setting in the config file.

 

Try these:

 

  define('HTTP_COOKIE_DOMAIN', '.YOUR_DOMAIN.com');
 define('HTTPS_COOKIE_DOMAIN', '.YOUR_DOMAIN.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');

 

It also appears your define for HTTP_SERVER has a slash after it when it shouldn't.

 

It probably says:

 

  define('HTTP_SERVER', 'http://YOUR_DOMAIN.com/');

 

Needs to be:

 

  define('HTTP_SERVER', 'http://YOUR_DOMAIN.com');

Link to comment
Share on other sites

Now I get this message:

 

Fatal error: Call to undefined function _box() in /home/user/public_html/yebocom.com/includes/columns.php on line 23

 

 

How can I solve this?

 

Thanks in advance

 

Felix

Edited by ogwinilo
Link to comment
Share on other sites

Other than uploading the backup you made before you changed whatever it is you changed to cause the error, I really don't know.

 

Neither the function nor the file it's missing from are part of "standard" osC, so they must be part of your template code (which I am completely unfamiliar with).

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, decided to do just that, the contribution used doesnt seem to be supported here. The puzzling thing is that copying and pasting the site to another directory works fine.

 

Other than uploading the backup you made before you changed whatever it is you changed to cause the error, I really don't know.

 

Neither the function nor the file it's missing from are part of "standard" osC, so they must be part of your template code (which I am completely unfamiliar with).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...