{"id":2696,"date":"2012-06-07T18:20:12","date_gmt":"2012-06-07T18:20:12","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=2696"},"modified":"2018-01-06T16:38:29","modified_gmt":"2018-01-06T16:38:29","slug":"fatal-error-call-to-a-member-function-fetchrow","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/fatal-error-call-to-a-member-function-fetchrow\/","title":{"rendered":"Fatal error: Call to a member function FetchRow()"},"content":{"rendered":"<p>While browsing the &#8220;PHP Link Directory&#8221; index page, the following error is occur but no single change is made server side or script side.<\/p>\n<p><strong>Fatal error: Call to a member function FetchRow() on a non-object in index.php on line 311<\/strong><\/p>\n<p>To resolve the above error message, simple try to generate the mysql database backup and check the which table is crashed.<\/p>\n<p>root@[~]# mysqldump &#8211;opt databasename &gt; databasename .sql<br \/>\nmysqldump: Got error: 145: Table &#8216;.\/databasename \/PLD_CATEGORY&#8217; is marked as crashed and should be repaired when using LOCK TABLES<\/p>\n<p>On above result the &#8220;PLD_CATEGORY&#8221; table is creased, to resolve the issue repair the table from the cPanel &gt;&gt; phpmyadmin or login in to the server and repair the table by using the following commands.<\/p>\n<p>Login into the server as a root user.<\/p>\n<p>mysql<\/p>\n<p>mysql&gt; use databasename;<br \/>\nDatabase changed<\/p>\n<p>mysql&gt; repair table PLD_CATEGORY;<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+<br \/>\n| Table\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | Op\u00a0\u00a0\u00a0\u00a0 | Msg_type | Msg_text |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+<br \/>\n| databasename.PLD_CATEGORY | repair | status\u00a0\u00a0 | OK\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+<br \/>\n1 row in set (0.02 sec)<\/p>\n<p>mysql&gt; \\q<\/p>\n<p><a href=\"https:\/\/www.ktchost.com\/wordpress-hosting.html\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2016\/09\/footer-2.png\" alt=\"\" border=\"0\" width=\"468\" height=\"60\"  \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>While browsing the &#8220;PHP Link Directory&#8221; index page, the following error is occur but no single change is made server side or script side. Fatal <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/fatal-error-call-to-a-member-function-fetchrow\/\" title=\"Fatal error: Call to a member function FetchRow()\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[],"class_list":["post-2696","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2696"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=2696"}],"version-history":[{"count":8,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2696\/revisions"}],"predecessor-version":[{"id":6169,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2696\/revisions\/6169"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=2696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=2696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=2696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}