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

Argument 1 passed to PhpMyAdmin\DatabaseInterface::escapeString() must be of the type string, null given #16837

Open
williamdes opened this issue Apr 19, 2021 · 2 comments
Assignees
Labels
affects/5.2 This issue or pull-request affects 5.2.x releases (and maybe further versions) Bug A problem or regression with an existing feature parser waiting on upstream Issues blocked by a third-party
Projects

Comments

@williamdes
Copy link
Member

Describe the bug

PHP error on run query

Fatal error: Uncaught TypeError: Argument 1 passed to PhpMyAdmin\DatabaseInterface::escapeString() must be of the type string, null given, called in
libraries/classes/Tracker.php on line 547 and defined in
libraries/classes/DatabaseInterface.php:2309 Stack trace: #0
libraries/classes/Tracker.php(547): PhpMyAdmin\DatabaseInterface->escapeString() #1
libraries/classes/Tracker.php(879): PhpMyAdmin\Tracker::getVersion() #2
libraries/classes/DatabaseInterface.php(248): PhpMyAdmin\Tracker::handleQuery() #3
libraries/classes/Sql.php(656): PhpMyAdmin\DatabaseInterface->tryQuery() #4
libraries/classes/Sql.php(869): PhpMyAdmin\Sql->executeQueryAndMeasureTime() #5
libraries/classes/Sql.php(1810): PhpMyAdmin\Sql->executeTheQuery() #6
libraries/classes/Controllers/ImportController.php(816): PhpMyAdmin\Sql->executeQueryAndGetQueryResponse() #7 /home/ in
libraries/classes/DatabaseInterface.php on line 2309

To Reproduce

Steps to reproduce the behavior:

  1. Run:
create table event(
eventID varchar(10) not null,
b char(30),
c varchar(20),
d TIME,
e Date,
f int,
g char(70),
h char(90),
primary key(eventID)
)

Expected behavior

No error

Server configuration

  • phpMyAdmin version: 5.1

Additional context

Found on the error reporting server

@williamdes williamdes self-assigned this Apr 19, 2021
@williamdes williamdes added the Bug A problem or regression with an existing feature label Apr 19, 2021
@williamdes williamdes added this to the 5.1.1 milestone Apr 19, 2021
@williamdes williamdes added this to Needs triage in issues via automation Apr 19, 2021
@williamdes williamdes moved this from Needs triage to Reproduced in issues Apr 19, 2021
@williamdes
Copy link
Member Author

Param Value
Error Type Warning
Error Message Attempt to read property "table" on null
Exception Type php
phpMyAdmin version 5.1.0
Incident count 1
Link Report#70127

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

williamdes added a commit that referenced this issue Apr 19, 2021
Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue Apr 19, 2021
Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue Apr 19, 2021
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes added the waiting on upstream Issues blocked by a third-party label Apr 20, 2021
@williamdes
Copy link
Member Author

No more negative effects on phpMyAdmin, now waiting for an upstream fix
After update, fix test: bfb40ce

@williamdes williamdes modified the milestones: 5.1.1, 5.1.2 Apr 22, 2021
@williamdes williamdes modified the milestones: 5.1.2, 5.1.3 Jul 27, 2021
@ibennetch ibennetch modified the milestones: 5.1.3, 5.1.4 Feb 11, 2022
@ibennetch ibennetch modified the milestones: 5.1.4, 5.2.1 May 11, 2022
@williamdes williamdes added the affects/5.2 This issue or pull-request affects 5.2.x releases (and maybe further versions) label Oct 25, 2022
@williamdes williamdes removed this from the 5.2.1 milestone Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/5.2 This issue or pull-request affects 5.2.x releases (and maybe further versions) Bug A problem or regression with an existing feature parser waiting on upstream Issues blocked by a third-party
Projects
issues
  
Reproduced
Development

No branches or pull requests

2 participants