Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2010
    Location
    South Africa
    Posts
    140
    Plugin Contributions
    0

    Default Tables keep on crashing

    Is there a way I can turn off the function which shows how many people are online

    On my shop the tables of the DB keeps on crashing and each time it is the who is online tables.

    Code:
    130807 14:51:17 [ERROR] /usr/libexec/mysqld: Table './pieter_direct/whos_online' is marked as crashed and should be repaired
    130807 14:51:27 [ERROR] /usr/libexec/mysqld: Table './pieter_direct/whos_online' is marked as crashed and should be repaired
    130807 14:51:30 [ERROR] /usr/libexec/mysqld: Table './pieter_direct/whos_online' is marked as crashed and should be repaired
    Only Dead Fish go with the flow

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Tables keep on crashing

    It's odd that it's crashing so frequently, and worth figuring out "why".

    But if your intention is to just disable it, you can make the following change to one file:
    /includes/init_includes/init_special_funcs.php
    Lines 18-19 can be commented-out by simply adding // to the beginning as shown here:
    Code:
    /**
     * require the whos online functions and update
     */
    //require(DIR_WS_FUNCTIONS . 'whos_online.php');
    //zen_update_whos_online();
    You should of course also turn off the whos-online sidebox via Admin->Tools->Layout Boxes Controller

    Then repair the whos-online table again so that it's not in a bad state. Even truncating it would be wise 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.

  3. #3
    Join Date
    Jun 2010
    Location
    South Africa
    Posts
    140
    Plugin Contributions
    0

    Default Re: Tables keep on crashing

    Thanx.
    If I do want to investigate why this happens, where do I start?
    What are common causes I have to look for?
    Only Dead Fish go with the flow

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Tables keep on crashing

    Find out exactly what was happening when the table crashed.

    ya, that's complicated.
    .
    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
    May 2005
    Location
    England
    Posts
    740
    Plugin Contributions
    0

    Default Re: Tables keep on crashing

    Hello there,

    Thanks for the fix. I just got this today, and I get it about once a year. Was on two separate hosts so far. But am glad I can turn it off in case it happens again

 

 

Similar Threads

  1. sessions table keeps crashing
    By andypandy in forum General Questions
    Replies: 4
    Last Post: 27 Apr 2011, 05:40 PM
  2. Mysql server constantly crashing
    By PatF in forum General Questions
    Replies: 9
    Last Post: 4 Jul 2010, 11:42 AM
  3. checkout crashing
    By aw3s0me in forum General Questions
    Replies: 13
    Last Post: 19 Dec 2007, 05:06 AM
  4. Crashing payment modules?
    By Rotkale in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 22 Jan 2007, 08:55 AM
  5. Server Crashing
    By itollij in forum General Questions
    Replies: 7
    Last Post: 17 Nov 2006, 02:46 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