Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default 145 Table '.../whos_online' is marked as crashed

    The front end of my site displays this message:

    145 Table './shocking_catalog/whos_online' is marked as crashed and should be repaired
    in:
    [delete from whos_online where time_last_click < '1210125508']

    I followed the instruction in the Zen-Cart Wiki to fix the table. I opened phpMyAdmin, clicked the SQL tab and entered the query "REPAIR TABLE whos_online" then click "Go". After I did that, nothing has changed, my site is still showing the same error message. What am I missing?

    I am still able to log in at the backend though.

    My URL: http://shockingprice.com

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 145 Table '.../whos_online' is marked as crashed

    You should talk to your hosting company about that.

    You may have to drop and recreate the table.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: 145 Table '.../whos_online' is marked as crashed

    If I recreate the table, it would be empty. Will Zen-cart work with empty table?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 145 Table '.../whos_online' is marked as crashed

    If the table is busted, you'll have to start with an empty table anyway.
    Zen Cart will rebuild the whos_online data automatically ... the data in the whos_online table is only ever valid for 20 minutes anyway.

    You do keep regular backups, don't you?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: 145 Table '.../whos_online' is marked as crashed

    I dropped the table, created a new one and it worked. Thanks.

  6. #6
    Join Date
    May 2007
    Posts
    32
    Plugin Contributions
    0

    Default Re: 145 Table '.../whos_online' is marked as crashed

    what causes this to happen? I get this happening to both my whos_online and sessions tables on a regular basis. What can I do to resolve the issue?
    Currently working on The Firework Warehouse & The Fancy Dress and Party Shop.

    Thought for the day... The customer is always right (so long as they are paying on time)

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 145 Table '.../whos_online' is marked as crashed

    Quote Originally Posted by fuzzball172 View Post
    what causes this to happen? I get this happening to both my whos_online and sessions tables on a regular basis. What can I do to resolve the issue?
    Those are probably the two tables that get the most "write" traffic, and are thus the most vulnerable to corruption if the database server hiccups in the middle of a "write".

    Who's your hosting company?
    What version of PHP and MySQL is your server running?
    What's your store URL?

    That kind of repeat table corruption typically only happens on servers whose MySQL engine can't handle the volume of traffic coming to it. An overloaded server or poorly-tuned server could have that sort of problem regularly. If the server's database system is hiccuping regularly, you'll end up with table corruption regularly too.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 11 Feb 2014, 03:23 PM
  2. Replies: 5
    Last Post: 11 Feb 2014, 03:00 PM
  3. Replies: 3
    Last Post: 27 Jun 2012, 06:45 PM
  4. Error - 145 Table 'whos_online' is marked as crashed
    By marvin in forum General Questions
    Replies: 3
    Last Post: 3 May 2012, 08:23 PM
  5. Replies: 2
    Last Post: 5 Mar 2011, 07:09 PM

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