{"id":223,"date":"2018-12-27T17:09:55","date_gmt":"2018-12-27T17:09:55","guid":{"rendered":"https:\/\/unsrewiki.1sys1.com\/?p=223"},"modified":"2018-12-27T17:09:55","modified_gmt":"2018-12-27T17:09:55","slug":"fix-bug-phpmyadmin-sql-lib-php","status":"publish","type":"post","link":"https:\/\/server-help.org\/index.php\/2018\/12\/27\/fix-bug-phpmyadmin-sql-lib-php\/","title":{"rendered":"Fix Bug Phpmyadmin [sql.lib.php]"},"content":{"rendered":"\n<p>Warning in .\/libraries\/sql.lib.php#&lt;line number><br>count(): Parameter must be an array or an object that implements Countable<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2018\/12\/1-VXjj4lPqxoNqHqt7UOIn6A-1024x517.png\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-VXjj4lPqxoNqHqt7UOIn6A-1024x517.png 1024w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-VXjj4lPqxoNqHqt7UOIn6A-300x151.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-VXjj4lPqxoNqHqt7UOIn6A-768x388.png 768w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-VXjj4lPqxoNqHqt7UOIn6A-256x128.png 256w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-VXjj4lPqxoNqHqt7UOIn6A.png 1232w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Couse of phpmyadmin\u2019s library try to counting some parameter but got wrong a code. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/usr\/share\/phpmyadmin\/libraries\/sql.lib.php<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"410\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2018\/12\/1-TCanXuY2VCA2lVoSVJlacQ-1024x410.png\" alt=\"\" class=\"wp-image-225\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-TCanXuY2VCA2lVoSVJlacQ-1024x410.png 1024w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-TCanXuY2VCA2lVoSVJlacQ-300x120.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-TCanXuY2VCA2lVoSVJlacQ-768x307.png 768w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-TCanXuY2VCA2lVoSVJlacQ.png 1244w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>|| (count($analyzed_sql_results[\u2018select_expr\u2019] == 1)<\/code><\/pre>\n\n\n\n<p>That\u2019s missing close bracket \u2018)\u2019 before operation with 1. So you need to change it to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>|| (count($analyzed_sql_results[\u2018select_expr\u2019]) == 1<\/code><\/pre>\n\n\n\n<p>remove last close bracket \u2018)\u2019 at this line like this,<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"125\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2018\/12\/1-a6vNCvP4dGbNQUp3WDRq4w.png\" alt=\"\" class=\"wp-image-226\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-a6vNCvP4dGbNQUp3WDRq4w.png 800w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-a6vNCvP4dGbNQUp3WDRq4w-300x47.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/1-a6vNCvP4dGbNQUp3WDRq4w-768x120.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Then restart apache and database service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># systemctl restart apache2\n# systemctl restart mariadb<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Warning in .\/libraries\/sql.lib.php#&lt;line number>count(): Parameter must be an array or an object that implements Countable Couse of phpmyadmin\u2019s library try to counting some parameter but got wrong a code. That\u2019s missing close bracket \u2018)\u2019 before operation with 1. So you need to change it to: remove last close bracket \u2018)\u2019 at this line like this,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/223"}],"collection":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":1,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}