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

Uncaught TypeError: PhpMyAdmin\DatabaseInterface::getColumns(): Argument #2 ($table) must be of type string, null given #17001

Closed
williamdes opened this issue Jul 8, 2021 · 0 comments
Assignees
Labels
Bug A problem or regression with an existing feature
Projects
Milestone

Comments

@williamdes
Copy link
Member

Describe the bug

Fatal error: Uncaught TypeError: PhpMyAdmin\DatabaseInterface::getColumns(): Argument #2 ($table) must be of type string, null given, called in 
libraries/classes/Sql.php on line 187 and defined in 
libraries/classes/DatabaseInterface.php:893 Stack trace: #0 
libraries/classes/Sql.php(187): PhpMyAdmin\DatabaseInterface->getColumns('public', NULL) #1 
libraries/classes/Sql.php(1540): PhpMyAdmin\Sql->resultSetContainsUniqueKey('public', NULL, Array) #2 
libraries/classes/Sql.php(1860): PhpMyAdmin\Sql->getQueryResponseForResultsReturned(Object(mysqli_result), Array, 'public', NULL, NULL, Object(PhpMyAdmin\Display\Results), './themes/pmahom...', 1, 1, NULL, NULL, NULL, 'SELECT 1;', NULL) #3 
libraries/classes/Sql.php(1707): PhpMyAdmin\Sql->executeQueryAndGetQueryResponse(Array, false, 'public', NULL, false, NULL, NULL, NULL, NULL, 'index.php?route...', './themes/pmahom...', NULL, NULL, 'SELECT 1;', NULL) #4 
libraries/classes/Controllers/Database/QueryByExampleController.php(133): PhpMyAdmin\Sql->executeQueryAndSendQueryResponse(Array, false, 'public', NULL, false, NULL, NULL, NULL, NULL, 'index.php?route...', './themes/pmahom...', NULL, NULL, 'SELECT 1;', NULL) #5 
libraries/classes/Routing.php(187): PhpMyAdmin\Controllers\Database\QueryByExampleController->index(Array) #6 
index.php(18): PhpMyAdmin\Routing::callControllerForRoute('/database/qbe', Object(FastRoute\Dispatcher\GroupCountBased), Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #7 {main} thrown in 
libraries/classes/DatabaseInterface.php on line 893

To Reproduce

Steps to reproduce the behavior:

  1. Go to multi table query
  2. Use second tab to avoid Multi table query shows results only 1 second #16999
  3. Enter SELECT 1; in query box
  4. Submit

Server configuration

  • phpMyAdmin version: 5.1
@williamdes williamdes added the Bug A problem or regression with an existing feature label Jul 8, 2021
@williamdes williamdes added this to the 5.1.2 milestone Jul 8, 2021
@williamdes williamdes self-assigned this Jul 8, 2021
@williamdes williamdes added this to Needs triage in issues via automation Jul 8, 2021
williamdes added a commit that referenced this issue Jul 8, 2021
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from Needs triage to Closed Jul 8, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 9, 2022
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
Projects
issues
  
Closed
Development

No branches or pull requests

1 participant