Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count(): Parameter must be an array or an object that implements Countable, ./libraries/classes/Sql.php#1623 #14931

Closed
williamdes opened this issue Feb 5, 2019 · 11 comments
Assignees
Labels
Bug A problem or regression with an existing feature help wanted
Milestone

Comments

@williamdes
Copy link
Member

williamdes commented Feb 5, 2019

Describe the bug

Warning/Error

To Reproduce

Execute:

SELECT  CONCAT('CHECKSUM TABLE ', GROUP_CONCAT(table_name), ';') AS statement
FROM information_schema.tables
WHERE table_schema = 'information_schema' INTO @command;
SELECT @command;

phpMyAdmin version: 5.0.0-dev, 4.8.4

@williamdes
Copy link
Member Author

Can not reproduce twice, closing.

@williamdes williamdes self-assigned this Feb 5, 2019
@williamdes williamdes added the Bug A problem or regression with an existing feature label Feb 5, 2019
@williamdes williamdes reopened this Feb 5, 2019
@williamdes
Copy link
Member Author

Reproduce:
Execute:

SELECT CONCAT('CHECKSUM TABLE ', GROUP_CONCAT(table_name), ';') AS statement FROM information_schema.tables WHERE table_schema = 'information_schema' 

Edit using Edit inline and execute:

SELECT CONCAT('CHECKSUM TABLE ', GROUP_CONCAT(table_name), ';') AS statement FROM information_schema.tables WHERE table_schema = 'information_schema' INTO @command; SELECT @command

Also affects 4.8.x

Demo servers (root, no password)

@williamdes
Copy link
Member Author

Notice in ./libraries/classes/Display/Results.php#610
 Trying to get property 'table' of non-object

@williamdes
Copy link
Member Author

QA_4_8

Warning in ./libraries/classes/Dbi/DbiMysqli.php#465
 mysqli_fetch_fields() expects parameter 1 to be mysqli_result, boolean given

Warning in ./libraries/classes/Dbi/DbiMysqli.php#262
 mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given

@williamdes
Copy link
Member Author

williamdes commented Feb 11, 2019

Also on designer.

@Gaurav-Punjabi
Copy link
Contributor

Can I solve this issue ?

@williamdes
Copy link
Member Author

@Gaurav-Punjabi Yes ;)

@williamdes
Copy link
Member Author

@Gaurav-Punjabi are you still on this issue?

@williamdes
Copy link
Member Author

Param Value
Error Type Warning
Error Message mysqli_fetch_fields() expects parameter 1 to be mysqli_result, bool given
Exception Type php
phpMyAdmin version 4.8.5
Incident count 1
Link Report#56646

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@williamdes
Copy link
Member Author

Param Value
Error Type Warning
Error Message count(): Parameter must be an array or an object that implements Countable
Exception Type php
phpMyAdmin version 4.8.2
Incident count 5
Link Report#51841

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@williamdes
Copy link
Member Author

Param Value
Error Type Notice
Error Message Trying to get property of non-object
Exception Type php
phpMyAdmin version 4.8.5
Incident count 77
Link Report#55941

This comment is posted automatically by phpMyAdmin's error-reporting-server.

williamdes added a commit that referenced this issue Mar 23, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes added this to the 4.8.6 milestone Mar 23, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature help wanted
Projects
None yet
Development

No branches or pull requests

2 participants