Jump to content
Sign in to follow this  
ogwinilo

Clients get logged off when returning to Home page

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

Share this post


Link to post
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 >

Share this post


Link to post
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');

Share this post


Link to post
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

Share this post


Link to post
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 >

Share this post


Link to post
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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×