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

Warning when browsing certain tables #14383

Closed
ibennetch opened this issue Jun 10, 2018 · 7 comments
Closed

Warning when browsing certain tables #14383

ibennetch opened this issue Jun 10, 2018 · 7 comments
Assignees
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Projects
Milestone

Comments

@ibennetch
Copy link
Member

On the demo server, I can reproduce this with the opengis database by trying to browse the "gis_all" table. I don't see anything obviously different about that table, though. The problem exists with both master and QA_4_8.

When browsing the table, I get a long line of warnings, starting with:

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

Backtrace

./libraries/classes/Dbi/DbiMysqli.php#262: mysqli_fetch_array(
boolean false,
integer 2,
)
./libraries/classes/DatabaseInterface.php#2554: PhpMyAdmin\Dbi\DbiMysqli->fetchRow(boolean false)
./libraries/classes/Util.php#2985: PhpMyAdmin\DatabaseInterface->fetchRow(
boolean false,
integer 0,
)
./libraries/classes/Display/Results.php#3703: PhpMyAdmin\Util::asWKT(string )
./libraries/classes/Display/Results.php#3050: PhpMyAdmin\Display\Results->_getDataCellForGeometryColumns(
string ,
string 'data not_null ',
,
array,
array,
boolean false,
array,
array,
array,
array,
)
./libraries/classes/Display/Results.php#2695: PhpMyAdmin\Display\Results->_getRowValues(
,
array,
integer 0,
boolean false,
array,
string '',
boolean false,
string 'SELECT * FROM `gis_all`',
array,
)
./libraries/classes/Display/Results.php#4289: PhpMyAdmin\Display\Results->_getTableBody(
,
array,
array,
array,
boolean false,
)
./libraries/classes/Sql.php#1738: PhpMyAdmin\Display\Results->getTable(
,
array,
array,
boolean false,
)
./libraries/classes/Sql.php#2031: PhpMyAdmin\Sql->getHtmlForSqlQueryResultsTable(
,
string './themes/pmahomme/img/',
NULL,
array,
boolean false,
string '7',
integer 7,
NULL,
,
array,
)
./libraries/classes/Sql.php#2252: PhpMyAdmin\Sql->getQueryResponseForResultsReturned(
,
array,
string 'opengis',
string 'gis_all',
NULL,
NULL,
,
string './themes/pmahomme/img/',
string '7',
integer 7,
NULL,
NULL,
NULL,
NULL,
NULL,
string 'SELECT * FROM `gis_all`',
NULL,
)
./libraries/classes/Sql.php#2129: PhpMyAdmin\Sql->executeQueryAndGetQueryResponse(
array,
boolean true,
string 'opengis',
string 'gis_all',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `gis_all`',
NULL,
NULL,
)
./sql.php#215: PhpMyAdmin\Sql->executeQueryAndSendQueryResponse(
array,
boolean true,
string 'opengis',
string 'gis_all',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `gis_all`',
NULL,
NULL,
)
@williamdes
Copy link
Member

Seems to be only with MySQL

@aroralakshya
Copy link
Contributor

I'm getting a 500 error.

@williamdes
Copy link
Member

I am unable to reproduce this issue on demo-servers and on local setups.
@ibennetch /close ?
Demo servers (root, no password)

@williamdes williamdes added the question Used when we need feedback from the submitter or when the issue is a question about PMA label Nov 27, 2018
@williamdes
Copy link
Member

Param Value
Error Type Warning
Error Message mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given
Exception Type php
phpMyAdmin version 4.8.5
Incident count 3936
Link Report#55947

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

@williamdes williamdes added Bug A problem or regression with an existing feature and removed question Used when we need feedback from the submitter or when the issue is a question about PMA labels Apr 3, 2019
@williamdes williamdes self-assigned this Apr 3, 2019
williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Apr 3, 2019
Fixes: phpmyadmin#14383
Fixes: phpmyadmin#12865
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Apr 3, 2019
@ibennetch
Copy link
Member Author

I don't think I can reproduce this any longer.

@williamdes
Copy link
Member

@ibennetch You can reproduce this with a table that was a GIS row (with data) using a mysql 8.0 server

@williamdes williamdes added this to ready to merge in issues Apr 29, 2019
@williamdes williamdes added this to the 4.8.6 milestone May 1, 2019
williamdes added a commit that referenced this issue May 1, 2019
Fixes: #14383
Fixes: #12865
Pull-request: #15149
Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue May 1, 2019
[ci skip]
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from ready to merge to Closed May 1, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@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 has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Projects
issues
  
Closed
Development

No branches or pull requests

3 participants