Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2010
    Location
    Hervey Bay, QLD Australia
    Posts
    33
    Plugin Contributions
    0

    application error Table 'db_cache' is marked as crashed and should be repaired

    Hi guys,
    my cart doesn't work since this morning I did no changed, uploads or anything like that the night before. In the "public_html/cart/logs" I found this:

    PHP Fatal error: 145:Table './wc449837_zc2/zen_db_cache' is marked as crashed and should be repaired :: delete from zen_db_cache in /home/wc449837/public_html/cart/includes/classes/db/mysql/query_factory.php on line 120

    Could you help and let me know what to do to restore the shop again please?? I got the 1.5.3 version. Please talk to me like to a newbie as I am one :) I installed the shop and I am working with it for few years now but that's is pretty much it.
    Your help would be very very much appreciated.
    Cheers

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: PHP Fatal Error - Please please help

    Do you have acces to phpmyadmin?

  3. #3
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: PHP Fatal Error - Please please help

    Here is a possible solution.

    Create a file (called cache_correct.php) having the following path: admin/includes/extra_datafiles/cache_crrect.php
    Where admin is the folder of your secret admin folder.
    Code:
    <?php
    if (!isset($_SESSION['cachedbcleared'] && $_SESSION['cachedbcleared'] != true) { 
    $db->Execute('DROP TABLE IF EXISTS zen_db_cache;');
    $db->Execute('CREATE TABLE zen_db_cache (
      cache_entry_name varchar(64) NOT NULL default \'\',
      cache_data mediumblob,
      cache_entry_created int(15) default NULL,
      PRIMARY KEY  (cache_entry_name)
    ) ENGINE=MyISAM;');
    
    $_SESSION['cachedbcleared'] = true;
    }
    Attempt to access your admin login screen.

    Check your logs folder for the same/new error messages.
    If successful, delete the above file. If it caused an error directly related to that file or did not resolve the previous error, please advise. If there are new/different errors that can not be self resolved, either continue here or begin a new thread. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Table 'db_cache' is marked as crashed and should be repaired

    Quote Originally Posted by Lara2911 View Post
    Could you help and let me know what to do to restore the shop again please?? I got the 1.5.3 version.
    Log into your cPanel.
    Click on the icon for MySQL Database
    Select your zencart database in the modify->repair dropdown
    Click the 'repair the database' button.

    Cheers
    RodG

  5. #5
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Table 'db_cache' is marked as crashed and should be repaired

    I have changed to InnoDB And it fixed it, not the ideal solution.

    Are you using shared hosting, that's the most common issue I have seen for this

    Have you tried file based caching?

  6. #6
    Join Date
    Jun 2010
    Location
    Hervey Bay, QLD Australia
    Posts
    33
    Plugin Contributions
    0

    Default Re: Table 'db_cache' is marked as crashed and should be repaired

    Quote Originally Posted by RodG View Post
    Log into your cPanel.
    Click on the icon for MySQL Database
    Select your zencart database in the modify->repair dropdown
    Click the 'repair the database' button.

    Cheers
    RodG
    Yes, have done it :) It helped!! Its all good and running again Thank you very much for all your help people!!!! xx

 

 

Similar Threads

  1. 1194 Table 'b' is marked as crashed and should be repaired
    By magibson in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 28 Aug 2012, 08:46 PM
  2. Replies: 4
    Last Post: 3 Aug 2012, 08:22 PM
  3. v139g 145 Table 'sessions' is marked as crashed and should be repaired
    By tahiti amin in forum General Questions
    Replies: 2
    Last Post: 21 Mar 2012, 10:47 PM
  4. Replies: 2
    Last Post: 5 Mar 2011, 07:09 PM
  5. 145 Table is marked as crashed and should be repaired
    By scubasteve in forum General Questions
    Replies: 2
    Last Post: 9 Sep 2009, 03:58 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR