Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2006
    Posts
    10
    Plugin Contributions
    0

    Default Can you help? Error 1034 - HELP

    Dear guys,

    I am getting this message on my website now. I can still access to the ADMIN page but the website is completely DOWN.

    Error Message:

    1034 Incorrect key file for table 'whos_online'; try to repair it

    Please advise

    Thanks in advance

    Andrew

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Can you help? Error 1034 - HELP

    I'm not an expert in this area, but this is a MySQL error that appears to be suggesting that your whos_online table structure is corrupt. As you still have access to the Admin, you might be able to get around it by turning off the whos online sidebox - but that's a complete guess, otherwise I suspect that you have some work to do to rebuild at least that table in the datbase (probably by dropping and recreating it) using a tool such as phpMyAdmin.

    Make sure you have backups.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

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

    Default Re: Can you help? Error 1034 - HELP

    You could also go into phpMyAdmin and run this in the SQL for your database ...

    This will drop the table and remake it fresh:
    PHP Code:
    DROP TABLE IF EXISTS whos_online;
    CREATE TABLE whos_online (
      
    customer_id int(11) default NULL,
      
    full_name varchar(64NOT NULL default '',
      
    session_id varchar(128NOT NULL default '',
      
    ip_address varchar(15NOT NULL default '',
      
    time_entry varchar(14NOT NULL default '',
      
    time_last_click varchar(14NOT NULL default '',
      
    last_page_url varchar(255NOT NULL default '',
      
    host_address text NOT NULL,
      
    user_agent varchar(255NOT 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)
    TYPE=MyISAM
    NOTE: you will need to adjust that if you are using prefixes on your database table names ...
    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: v1.5.5]
    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!

  4. #4
    Join Date
    Apr 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Can you help? Error 1034 - HELP

    Hi,

    I was getting this same error. I used the drop and recreate fix. It's seems to have worked.

    Now I am getting another error, apparently in the banners tables.

    1034 Incorrect key file for table 'b'; try to repair it
    in:
    [select b.banners_id, b.expires_date, b.expires_impressions, sum(bh.banners_shown) as banners_shown from zen_banners b, zen_banners_history bh where b.status = 1 and b.banners_id = bh.banners_id group by b.banners_id, b.expires_date, b.expires_impressions]


    What do I do?

    Thanks,

    Derek

  5. #5
    Join Date
    Apr 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Can you help? Error 1034 - HELP

    Let me clarify; I already performed REPAIR TABLE zen_banners_history;


    Quote Originally Posted by cunomor View Post
    Hi,

    I was getting this same error. I used the drop and recreate fix. It's seems to have worked.

    Now I am getting another error, apparently in the banners tables.

    1034 Incorrect key file for table 'b'; try to repair it
    in:
    [select b.banners_id, b.expires_date, b.expires_impressions, sum(bh.banners_shown) as banners_shown from zen_banners b, zen_banners_history bh where b.status = 1 and b.banners_id = bh.banners_id group by b.banners_id, b.expires_date, b.expires_impressions]


    What do I do?

    Thanks,

    Derek

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Can you help? Error 1034 - HELP

    Quote Originally Posted by cunomor View Post
    Now I am getting another error, apparently in the banners tables.

    1034 Incorrect key file for table 'b'; try to repair it
    in:
    [select b.banners_id, b.expires_date, b.expires_impressions, sum(bh.banners_shown) as banners_shown from zen_banners b, zen_banners_history bh where b.status = 1 and b.banners_id = bh.banners_id group by b.banners_id, b.expires_date, b.expires_impressions]

    I already performed REPAIR TABLE zen_banners_history;
    "b" refers to the "banners" 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.

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

    Default Re: Can you help? Error 1034 - HELP

    It doesn't look like the error is reflecting the table name ...

    Did you install an add-on or customize some code?
    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: v1.5.5]
    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!

  8. #8
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    help question Re: Can you help? Error 1034 - HELP

    I have the same problem, but mine is for the sessions table:

    1034 Incorrect key file for table 'sessions'; try to repair it

    I can't get into EITHER the site OR the admin.

    Could someone please provide the proper sql code to reconstruct this table via phpMyAdmin as suggested above??

    Thank you very much, Tom

  9. #9
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: Can you help? Error 1034 - HELP

    New update: I found 'Repair Table' in phpMyAdmin and ran this, it fixed the table.
    Whew!!
    Could this thread be moved or something to the FAQ or wiki section so other people know how to fix their tables like this??
    It takes a few moments to find Repair in phpMyAdmin:

    Open the database, use the login/pass that you use for ZC
    Find the table(s) to fix
    Click Operations
    Scroll down, find repair table
    Click repair table, hopefully this is all you need to do

    Thank you, :) tom

  10. #10
    Join Date
    Jan 2007
    Posts
    100
    Plugin Contributions
    0

    Default Re: Can you help? Error 1034 - HELP

    I was a little hesitant to run SQL above since it was from 2003 but it worked like a charm. Thank you.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Please can you help??
    By mhakiwa in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 18 Jan 2010, 02:25 AM
  2. error with the downloadable content, can you help?
    By digital-dj in forum General Questions
    Replies: 5
    Last Post: 12 Sep 2009, 06:20 AM
  3. Can you help with these error messages?
    By Twohogwild in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 6 Jan 2007, 07:29 PM
  4. Can you help me figure out this error?
    By KarstensMommy in forum General Questions
    Replies: 1
    Last Post: 23 Aug 2006, 12: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