Author Topic: plz help me in this  (Read 7161 times)

0 Members and 1 Guest are viewing this topic.

Offline *handsome*

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
plz help me in this
« on: January 06, 2009, 10:13:10 PM »
I am getting this message on my gellery front page

Code: [Select]
DB Error: Bad SQL Query: DELETE FROM 4images_sessions WHERE session_lastaction < 1231275448
Table './nokialov_imga4/4images_sessions' is marked as crashed and should be repaired

DB Error: Bad SQL Query: REPLACE INTO 4images_sessions (session_id, session_user_id, session_lastaction, session_location, session_ip) VALUES ('a1f07c38ca12056ce9087b376bef7389', -1, 1231276348, 'index.php', '116.71.167.6')
Table './nokialov_imga4/4images_sessions' is marked as crashed and should be repaired

Warning: Cannot modify header information - headers already sent by (output started at /home/nokialov/public_html/games/includes/db_mysql.php:190) in /home/nokialov/public_html/games/includes/sessions.php on line 133

Warning: Cannot modify header information - headers already sent by (output started at /home/nokialov/public_html/games/includes/db_mysql.php:190) in /home/nokialov/public_html/games/includes/sessions.php on line 133

DB Error: Bad SQL Query: SELECT s.session_user_id, s.session_lastaction, s.session_ip, u.user_id, u.user_level, u.user_name, u.user_invisible FROM 4images_sessions s LEFT JOIN 4images_users u ON (u.user_id = s.session_user_id) WHERE s.session_lastaction >= 1231276048 ORDER BY u.user_id ASC, s.session_ip ASC
Table './nokialov_imga4/4images_sessions' is marked as crashed and should be repaired

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: plz help me in this
« Reply #1 on: January 06, 2009, 11:37:40 PM »
hi,

over your host control panel and mysql manager you can try to repair your session table. in the most ways you can use phpmyadmin.
if this does not help contact your host, or replace ONLY the 4images_sessions table with a new one.

hope this was helpful for you.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: plz help me in this
« Reply #2 on: January 07, 2009, 04:58:45 AM »
Actually, you can't repair sessions table via mysql manager, because it's HEAP type.

You'll need execute this MySQL query in your mysql manager (or ask your host administrator do it for you)

Code: [Select]
DROP TABLE IF EXISTS 4images_sessions;
CREATE TABLE 4images_sessions (
  session_id varchar(32) NOT NULL default '',
  session_user_id int(11) NOT NULL default '0',
  session_lastaction int(11) unsigned NOT NULL default '0',
  session_location varchar(255) NOT NULL default '',
  session_ip varchar(15) NOT NULL default '',
  PRIMARY KEY  (session_id),
  KEY session_user_id (session_user_id),
  KEY session_id_ip_user_id (session_id,session_ip,session_user_id)
) TYPE=HEAP;

P.S.
Forum rules -> Type in a subject that summarizes your question
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline *handsome*

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: plz help me in this
« Reply #3 on: January 08, 2009, 10:54:51 AM »
Actually, you can't repair sessions table via mysql manager, because it's HEAP type.

You'll need execute this MySQL query in your mysql manager (or ask your host administrator do it for you)

Code: [Select]
DROP TABLE IF EXISTS 4images_sessions;
CREATE TABLE 4images_sessions (
  session_id varchar(32) NOT NULL default '',
  session_user_id int(11) NOT NULL default '0',
  session_lastaction int(11) unsigned NOT NULL default '0',
  session_location varchar(255) NOT NULL default '',
  session_ip varchar(15) NOT NULL default '',
  PRIMARY KEY  (session_id),
  KEY session_user_id (session_user_id),
  KEY session_id_ip_user_id (session_id,session_ip,session_user_id)
) TYPE=HEAP;

P.S.
Forum rules -> Type in a subject that summarizes your question

Please help me step by step.......

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: plz help me in this
« Reply #4 on: December 28, 2010, 11:09:21 AM »
Thanks V@no u're savior  :)