Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2005
    Posts
    105
    Plugin Contributions
    0

    Default Weird SQL problem

    I am running zencart 1.3.9.h

    This morning i added a few images to products without them but when i tried to look at the website, it comes up with :

    1062 Duplicate entry '0' for key 3
    in:
    [insert into zen_whos_online (customer_id, full_name, session_id, ip_address, time_entry, time_last_click, last_page_url, host_address, user_agent) values ('0', 'ĄGuest', '8c738ada089e6ad29013899bd564dd04', '94.196.110.187', '1314439582', '1314439582', '/chilli/', '94.196.110.187.threembb.co.uk', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; AskTbARS/5.12.2.16749)')]


    Any ideas what the hell this means?

    I tried contacting my isp who said
    "I have looked into for you and I have ran both a check and repair on your databases. The site is still returning this error which means there's an issue within the database table or tables. You will need to login to your Cpanel and access your phpMyAdmin feature and check the records within the tables returning/causing this error and remove any erroneous entries within those tables."


    However i could serious screw up my website as i have no idea what to do.

    Any ideas would be good?

    Thanks

    Phil

  2. #2
    Join Date
    Dec 2005
    Posts
    105
    Plugin Contributions
    0

    Default Re: Weird SQL problem

    On the phpmyadmin, i've tried check table, analyse table and repair table. None of these make a difference.

    There is also a empty table (truncate) but i haven't gone near this yet!

  3. #3
    Join Date
    Dec 2005
    Posts
    105
    Plugin Contributions
    0

    Default Re: Weird SQL problem

    I tried dropping the key 0 and key 3 lines but that just seems to have buggered it up even more.

    When i go to my administrator bit and trying the whos online from the tools menu, it says ..

    REFRESH LIST Legend: Active cart Inactive cart Active no cart Inactive no cart
    Inactive is Last Click >= 180s || Inactive since arrival > 540s will be removed
    3 Error writing file '/tmp/MYTgsIQQ' (Errcode: 28)
    in:
    [select customer_id, full_name, ip_address, time_entry, time_last_click, last_page_url, session_id, host_address, user_agent from zen_whos_online order by time_entry, LPAD(ip_address,11,'0')]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.



    Not doing very well here.

    I really have no clue what is happening.

    Thanks

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

    Default Re: Weird SQL problem

    Kuroi Web Design and Development | Twitter

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

  5. #5
    Join Date
    Dec 2005
    Posts
    105
    Plugin Contributions
    0

    Default Re: Weird SQL problem

    Cheers for that.
    I realised what the problem is.
    According to mysqladmin thingy there are two tables for whos_online. There is zen_whos_online and whos_online

    I was looking at wrong one.
    I did a check table and it said there was an error but wouldn't let me repair it so I did a flush instead. That seems to have fixed it.
    Not quite sure why it happened in the first place but relieved to get my site back.

 

 

Similar Threads

  1. v150 Problem with products images showing and not showing after refresh weird problem
    By kobiadato in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Sep 2016, 08:45 PM
  2. v151 Weird Characters - Need an SQL solution!
    By Feznizzle in forum General Questions
    Replies: 9
    Last Post: 30 May 2013, 11:24 PM
  3. Programming Problem...Really Weird UPS Problem
    By g2ktcf in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 3 May 2011, 08:55 PM
  4. weird problem!
    By 1kell in forum General Questions
    Replies: 1
    Last Post: 21 Dec 2009, 03:47 AM
  5. Weird Problem
    By Spdster in forum Basic Configuration
    Replies: 2
    Last Post: 7 Oct 2008, 10:46 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