Sporadic add to cart pre and post post Login

  • Posts: 53
  • Thank you received: 0
11 years 6 months ago #133692

I log in, see my cart, then I go to add more parts and it logs me out! If I hit products when looking at the cart then the log in screen comes back like I logged out. If I hit the continue shopping button then it seems to work, sometimes.

These are the site owner observations

colligomarine.com

Hikashop 2.2.2
PHP Built On Linux typhoon.websitewelcome.com 3.2.49 #2 SMP Mon Aug 5 14:12:45 CDT 2013 x86_64
Database Version 5.5.30-30.2
Database Collation utf8_unicode_ci
PHP Version 5.3.27
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.0.2 Stable [ Ember ] 08-November-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 12.2.0 Stable [ Neil Armstrong ] 21-September-2012 00:00 GMT
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1

Last edit: 11 years 6 months ago by teleactive.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #133697

Hi,
That's maybe coming from a cache issue, can you disable the Joomla cache, and clear it ? You'll also have to disable it in the joomla config, and unpublish the cache plugin. Also can you clear your browser's cache or try it with another browser ?

Please Log in or Create an account to join the conversation.

  • Posts: 53
  • Thank you received: 0
11 years 6 months ago #133738

These are the settings in Global Configuration > System

Cache Settings
Cache *
OFF - Caching disabled
Cache Handler
File
Cache Time * 15minutes

Session Settings Session Lifetime *

Session Handler * Database

These are the Config.php setting.

public $caching = '0';
public $cache_handler = 'file';
public $cachetime = '15';

System Cache plug in is already disabled.

Switching browsers is not what the client wants to hear. Please give me more info to pass along to the client because I don't know why it's being erratic for him.

i purged the cache. How often should the cache have to be purged?

Thanks,

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 6 months ago #133940

Hi,

We're not asking that the user change his browser for good. We're asking basically if it helps when trying with another browser...
Based on what I can see on your website, there is definitely something caching the pages of your website. It could also come from a setting of your template, or it could also come from your hosting company or a CDN provider for your website/web server.
Please check all that.

You should not have to purge cache if the cache is deactivated.

Please Log in or Create an account to join the conversation.

  • Posts: 53
  • Thank you received: 0
11 years 6 months ago #134176

I checked with hosting company HostGator. They assured me there is no caching on the server level.

The client is getting very upset with products showing up from previous customers in a new cart, registration giving errors and putting in random names in the billing address after account activation.

See attachment.

Do you need log in access to check for template or modules that may not be compatible with Hikashop code?

The site in now not able to create new accounts.

Attachments:
Last edit: 11 years 6 months ago by teleactive. Reason: Additional issue with same site unresolved

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 6 months ago #134358

Hi,

I checked your wbesite backend with the account that you provided and I can see that you configured a session lifetime of 15 minutes in the joomla configuration. That's probably why you're getting disconnected from your website frequently. Unfortunately, HikaShop has not control on that, it's a joomla setting. Simply increase the session lifetime to something more reasonable like a few hours and your users won't find themselves disconnected all the time.

I the tests I did on your frontend, I wasn't disconnected when adding a product to the cart as long as I stayed under that limit.

Please Log in or Create an account to join the conversation.

  • Posts: 53
  • Thank you received: 0
11 years 6 months ago #134457

I changed the session lifetime to 120 minutes.

MESSAGE
Your Account has been successfully activated.

I did a test and the issue that the client does not like is that a random users name appears on the second address of the billing address with a radio button.

do you have a way to correct this so it's blank and only has the data entered by the user for new account activation?

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 6 months ago #134474

I don't understand your question. The system only display the address of the user. If the name in the address is like that, it means that the address has been entered for that user like that.
Can you provide some screenshots of the problem maybe ?

Please Log in or Create an account to join the conversation.

  • Posts: 53
  • Thank you received: 0
11 years 6 months ago #134487

Please note the second address was not entered by the user. it randomly appears and must be manually deleted.

The client does not want other users random name and address to appear.

see attachment

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 6 months ago #134494

Addresses do not randomly appear in other user accounts. If it displays, it means that it was added to that user.
Such situation where an address is assigned to a user which didn't entered it usually happen because you messed up at some point with the data in the database.
For example, suppose that I have 100 users in the hikashop_user table and 100 addresses in the hikashop_address and that each address is associated to one of the users.
Now I want to clear my list of users and empty the table hikashop_user but I forget to also empty the hikashop_address table.
So when a new user registers, he will be assigned a new user_id which will start again from 1, and thus, he will be assigned the address of the previous user with the user_id 1 since I didn't empty the hikashop_address table at that time.

Unfortunately there is nothing we can do in the code of HikaShop to avoid that.
All I can recommend is to be really careful about that during maintenance/debug/data transfers in order to avoid such problems.

In your case, I would recommend to set the AUTO_INCREMENT value of the hikashop_user table to a greater value than all the address_user_id values in the hikashop_address table (you can do that with a mysql query in phpmyadmin). That way, your new users will have ids that were not previously used by users which were deleted and thus they won't get the addresses of old users assigned to them by error.

The following user(s) said Thank You: teleactive

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum