Welcome to Geeklog, Anonymous Tuesday, May 21 2024 @ 10:34 am EDT

Geeklog Forums

Insert failed in new_session()


Status: offline

manowar

Forum User
Regular Poster
Registered: 11/07/07
Posts: 81
Location:Santiago - Chile
An SQL error has occurred. Please see error.log for details.: An SQL error has occurred. Please see error.log for details.
Insert failed in new_session()

In log file :

Mon Oct 5 09:49:18 2009 - 145: Table './zorreros09/hn_sessions' is marked as crashed and should be repaired. SQL in question: DELETE FROM hn_sessions WHERE remote_ip = '200.75.21.139' AND uid = '1'
Mon Oct 5 09:49:18 2009 - 145: Table './zorreros09/hn_sessions' is marked as crashed and should be repaired. SQL in question: DELETE FROM hn_sessions WHERE start_time < 1254750258
lun 05 oct 2009 09:49:18 CLT - 145: Table './zorreros09/hn_sessions' is marked as crashed and should be repaired. SQL in question: DELETE FROM hn_sessions WHERE uid = '2'
lun 05 oct 2009 09:49:18 CLT - 145: Table './zorreros09/hn_sessions' is marked as crashed and should be repaired. SQL in question: DELETE FROM hn_sessions WHERE uid = '1' AND remote_ip = '200.75.21.139'
lun 05 oct 2009 09:49:18 CLT - 145: Table './zorreros09/hn_sessions' is marked as crashed and should be repaired. SQL in question: INSERT INTO hn_sessions (sess_id, uid, start_time, remote_ip) VALUES (1326975321, 2, 1254750558, '200.75.21.139'Wink
lun 05 oct 2009 09:49:18 CLT - 145: Table './zorreros09/hn_sessions' is marked as crashed and should be repaired. SQL in question:
lun 05 oct 2009 09:49:18 CLT - 145: Table './zorreros09/hn_sessions' is marked as crashed and should be repaired. SQL in question:


What should I do to fix this? :doh:
Why is it?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
As the error message says: The sessions table has to be repaired. phpMyAdmin (if you have that) has an option for that. Or in plain SQL:

REPAIR TABLE hn_sessions;

bye, Dirk
 Quote

Status: offline

manowar

Forum User
Regular Poster
Registered: 11/07/07
Posts: 81
Location:Santiago - Chile
Muchas gracias Dirk.

:shakehands:
 Quote

All times are EDT. The time is now 10:34 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content