Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Mar 2011
    Posts
    160
    Plugin Contributions
    0

    Default Who's online table keeps crashing.

    Hi,

    My who's online table keeps on crashing and takes the whole website down.

    Can anyone please advice what I can do with this?

    website: www.bequjuice.com

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Who's online table keeps crashing.

    First, go to phpMyAdmin and locate your database to find your tables ...

    Then click the checkbox next to:
    whos_online

    Now, in the bottom Dropdown, select:
    Repair

    See if that corrects the problem ...


    If not, you could try remaking it and seeing if that fixes it:
    Code:
    DROP TABLE IF EXISTS whos_online;
    CREATE TABLE whos_online (
      customer_id int(11) default NULL,
      full_name varchar(64) NOT NULL default '',
      session_id varchar(128) NOT NULL default '',
      ip_address varchar(15) NOT NULL default '',
      time_entry varchar(14) NOT NULL default '',
      time_last_click varchar(14) NOT NULL default '',
      last_page_url varchar(255) NOT NULL default '',
      host_address text NOT NULL,
      user_agent varchar(255) NOT NULL default '',
      KEY idx_ip_address_zen (ip_address),
      KEY idx_session_id_zen (session_id),
      KEY idx_customer_id_zen (customer_id),
      KEY idx_time_entry_zen (time_entry),
      KEY idx_time_last_click_zen (time_last_click),
      KEY idx_last_page_url_zen (last_page_url)
    ) ENGINE=MyISAM;
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2011
    Posts
    160
    Plugin Contributions
    0

    Default Re: Who's online table keeps crashing.

    Ajeh,

    Yes, that does fix it. But the table crashed yesterday and I repaired it through phpMyAdmin. Then this morning it's crashed again. So I repaired again with phpMyAdmin.

    Do you suggest I remake it? Where do I put the code above?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Who's online table keeps crashing.

    If you have tried and failed Repair in phpMyAdmin, then click on the SQL link in the header and paste the SQL code to DROP/CREATE it again and see if that corrects the problem ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Mar 2011
    Posts
    160
    Plugin Contributions
    0

    Default Re: Who's online table keeps crashing.

    Ajeh,

    So I'm still having issues with tables crashing. The who's online and sessions tables keep crashing continuously. I have to check the website constantly throughout the day to see if it crashed to repair it. Otherwise the site will be down.

    Do you have any idea about what could be causing this?

    When I do the repair the website is back up and running but then it crashed again the next day or even same day. I don't want to mess up the site completely where I cant repair it. Will dropping the tables take the site down?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Who's online table keeps crashing.

    NOTE: THE CODE HERE IS SPECIFIC TO v1.3.9h. DO NOT USE ON OTHER VERSIONS!!!

    You could set your site to Down for Maintenance for a minute, then run the following SQL in the Tools ... Install SQL ...
    Code:
    DROP TABLE IF EXISTS whos_online;
    CREATE TABLE whos_online (
      customer_id int(11) default NULL,
      full_name varchar(64) NOT NULL default '',
      session_id varchar(128) NOT NULL default '',
      ip_address varchar(15) NOT NULL default '',
      time_entry varchar(14) NOT NULL default '',
      time_last_click varchar(14) NOT NULL default '',
      last_page_url varchar(255) NOT NULL default '',
      host_address text NOT NULL,
      user_agent varchar(255) NOT NULL default '',
      KEY idx_ip_address_zen (ip_address),
      KEY idx_session_id_zen (session_id),
      KEY idx_customer_id_zen (customer_id),
      KEY idx_time_entry_zen (time_entry),
      KEY idx_time_last_click_zen (time_last_click),
      KEY idx_last_page_url_zen (last_page_url)
    ) ENGINE=MyISAM;
    Code:
    DROP TABLE IF EXISTS sessions;
    CREATE TABLE sessions (
      sesskey varchar(32) NOT NULL default '',
      expiry int(11) unsigned NOT NULL default '0',
      value mediumblob NOT NULL,
      PRIMARY KEY  (sesskey)
    ) ENGINE=MyISAM;
    These will drop those two tables and rebuild them for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Mar 2011
    Posts
    160
    Plugin Contributions
    0

    Default Re: Who's online table keeps crashing.

    Do I have to set the site down for maintenance or can I just run the code?

    Just want to make sure I'm doing this right. I'm going to tools then Install SQL Patches. In the dialog box there I run the codes you provided once at a time?

    My version of zencart is: v1.3.9h

    Please let me know if I got this right.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Who's online table keeps crashing.

    You can just run the SQL code without the Down for Maintenance ... The advantage of the Down for Maintenance is you can post a 15 minute warning that the site will be down for 5 minutes and to login to save current carts for your customers ...

    If no one is on your site right now, then you can just run the two SQLs ...

    They do run quickly, as in a few seconds.

    The Down for Maintenance would just be a nice for your customers who might be shopping and not logged in so they have a change to login so that their current cart is saved before you run those two SQL.

    They can be run separately or together in the Install SQL Patches ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Mar 2011
    Posts
    160
    Plugin Contributions
    0

    Default Re: Who's online table keeps crashing.

    Ajeh,

    Thanks for the help. I ran the codes and I guess we'll just have to wait and see if the tables crash again.

  10. #10
    Join Date
    Mar 2011
    Posts
    160
    Plugin Contributions
    0

    Default Re: Who's online table keeps crashing.

    Hi Ajeh,

    So the rebuilding the tables worked for a few days but yesterday night the sessions table crashed. I repaired it. Then this morning who's online crashed. This takes the whole site down. I rebuilt the tables again.

    Any idea why this is happening? I really don't know what to do at this point.

    Please help.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h Who's Online table Crashed
    By JorgeR in forum General Questions
    Replies: 2
    Last Post: 11 Feb 2014, 02:38 PM
  2. sessions table keeps crashing
    By andypandy in forum General Questions
    Replies: 4
    Last Post: 27 Apr 2011, 05:40 PM
  3. A simple bit of code to move...keeps crashing! average product rating
    By plymgary1 in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 9 Mar 2010, 08:53 AM
  4. installer keeps crashing - hangs on system-setup screen
    By changostraw in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 17 May 2009, 02:51 PM
  5. Who is online...side admin vs online group pricing mod
    By csfound in forum General Questions
    Replies: 8
    Last Post: 18 Jul 2007, 04:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg