{"id":7000,"date":"2014-05-16T05:58:55","date_gmt":"2014-05-16T05:58:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/16\/joomla-jos_session-table-crash-collection-of-common-programming-errors\/"},"modified":"2014-05-16T05:58:55","modified_gmt":"2014-05-16T05:58:55","slug":"joomla-jos_session-table-crash-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/16\/joomla-jos_session-table-crash-collection-of-common-programming-errors\/","title":{"rendered":"Joomla jos_session table crash-Collection of common programming errors"},"content":{"rendered":"<p>I recently got the following error<\/p>\n<pre><code>DB function failed with error number 145\n'TABLE\\ jos_session' is marked as crashed and should be repaired\nSQL=SELECT session_id FROM jos_session WHERE session_id ....\n<\/code><\/pre>\n<p>This was accompanied by my site crashing. I fixed it by truncating the table<\/p>\n<pre><code>truncate table jos_session\n<\/code><\/pre>\n<p>It can also be fixed by repairing the table<\/p>\n<pre><code>repair table jos_session\n<\/code><\/pre>\n<p>My question is, how can we prevent this table from crashing to begin with.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently got the following error DB function failed with error number 145 &#8216;TABLE\\ jos_session&#8217; is marked as crashed and should be repaired SQL=SELECT session_id FROM jos_session WHERE session_id &#8230;. This was accompanied by my site crashing. I fixed it by truncating the table truncate table jos_session It can also be fixed by repairing the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7000","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7000"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7000\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}