warning in ./libraries/sql.lib.php#613 count(): parameter must be an array or an object that implements countable

Edit file /usr/share/phpmyadmin/libraries/sql.lib.php using this command:

sudo nano +613 /usr/share/phpmyadmin/libraries/sql.lib.php
On line 613 the count function always evaluates to true since there is no closing parenthesis after $analyzed_sql_results['select_expr']. Making the below replacements resolves this, then you will need to delete the last closing parenthesis on line 614, as it's now an extra parenthesis.

Replace:

((empty($analyzed_sql_results['select_expr']))
    || (count($analyzed_sql_results['select_expr'] == 1)
        && ($analyzed_sql_results['select_expr'][0] == '*')))
With:

((empty($analyzed_sql_results['select_expr']))
    || (count($analyzed_sql_results['select_expr']) == 1)
        && ($analyzed_sql_results['select_expr'][0] == '*'))
Restart the server apache:

sudo service apache2 restart

4
7
Rakib Ansary 105 points

                                    sudo sed -i "s/|\s*\((count(\$analyzed_sql_results\['select_expr'\]\)/| (\1)/g" /usr/share/phpmyadmin/libraries/sql.lib.php

4 (7 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
phpmyadmin ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable count(): Parameter must be an array or an object that implements Countable in php 7.3 phpmyadmin /libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countabl php 7.4 Warning: count(): Parameter must be an array or an object that implements Countable count(): Parameter must be an array or an object that implements Countable in in php 7. in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable ./libraries/sql.lib.php#601 count(): Parameter must be an array or an object that implements Countable Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable phpmyadmin php myadmin Warning in ./libraries/plugin_interface.lib.php#551 count(): Parameter must be an array or an object that implements Countable php myadmin Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable ubuntu fix phpmyadmin sql.lib.php count(): Parameter must be an array or an object that implements Countable ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable warning in ./libraries/sql.lib.php#613 count(): parameter must be an array or an object that implements countable
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source