Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

    Default missing whos_online table

    Hello all

    I am getting an error when trying to access my online store -->" whos_online table missing"
    I would like to recreate the table again in MySQL using phpMyadmin but am not sure what the columns and overall structure is.

    If anybody can point me in the right direction much appreciated...

    Thanks guys

    Eastboy

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

    Default Re: missing whos_online table

    You can recreate it with the original SQL code found in /zc_install/sql/mysql_zencart.sql

    check if you are using prefixes, and if so you need to adjust the table name references ...
    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
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

    Default Re: missing whos_online table

    Thank You very much Ajeh

    All working

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

    Default Re: missing whos_online table

    Thanks for the update that this was able to fix your missing table ...
    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
    May 2009
    Location
    Melbourne, Australia
    Posts
    46
    Plugin Contributions
    0

    Default Re: missing whos_online table

    Thank you also for putting this information up.
    I have been trying all day to get my site back up after it all went blank save the warning message onscreen instead of my website.
    I thought it was a server side issue until I re-installed the entire zen cart and it still happened.

    myDEBUG in the cache folder was a great help and then this article solved it all for me.

    Thanks very much

  6. #6
    Join Date
    Nov 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: missing whos_online table

    Quote Originally Posted by Ajeh View Post
    You can recreate it with the original SQL code found in /zc_install/sql/mysql_zencart.sql

    check if you are using prefixes, and if so you need to adjust the table name references ...
    Ajeh, I'm having this problem. Where can I find out how to do the above?

    Thanks.

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

    Default Re: missing whos_online table

    prefixes on the database tables would mean that when you look at your database in phpMyAdmin your would see something like:
    zen_admin

    vs seeing:
    admin

    but the better way to check is to look in your two files:
    /includes/configure.php
    /your_secret_admin/includes/configure.php

    for the line:
    Code:
      define('DB_PREFIX', '');
    and see if that is blank or has a value ...

    Or, you could run in the Tools ... Install SQL Patches ... the code:
    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(20) 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;
    which will make the table for you and manage the prefixes 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!

  8. #8
    Join Date
    Nov 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: missing whos_online table

    Thanks so much! I will try this.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 1 Mar 2014, 08:19 PM
  2. Replies: 5
    Last Post: 11 Feb 2014, 03:00 PM
  3. 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
  4. Whos_Online Table Crash
    By zmoore89 in forum General Questions
    Replies: 2
    Last Post: 2 Sep 2011, 06:38 PM
  5. 145 Table '.../whos_online' is marked as crashed
    By henryvuong in forum General Questions
    Replies: 13
    Last Post: 27 Aug 2008, 09:49 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