Resolving DB function failed with error number 145?

Error:

jtablesession::Store Failed
DB function failed with error number 145
Table '.\academicdraft\jos_session' is marked as crashed and should be repaired SQL=INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES ( '6u0aopo2cpgc9kl9akrjbkcpb4','1301576360','','0','1','0' )
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44 bytes) in C:\wamp\www\AcademicDraft\libraries\joomla\error\exception.php on line 117

Resolution:
  • It is Joomla 1.5
  • Your Table prefix is jos_
Then in phpMyAdmin run the following 'Query'
Code:
DROP TABLE IF EXISTS `jos_session`;
CREATE TABLE IF NOT EXISTS `jos_session` (
  `username` varchar(150) DEFAULT '',
  `time` varchar(14) DEFAULT '',
  `session_id` varchar(200) NOT NULL DEFAULT '0',
  `guest` tinyint(4) DEFAULT '1',
  `userid` int(11) DEFAULT '0',
  `usertype` varchar(50) DEFAULT '',
  `gid` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `client_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `data` longtext,
  PRIMARY KEY (`session_id`(64)),
  KEY `whosonline` (`guest`,`usertype`),
  KEY `userid` (`userid`),
  KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  • 0 Users Found This Useful
Was this answer helpful?