Skip to content

[ODS Import] Uncaught TypeError: PhpMyAdmin\Import::detectType(): Argument #2 ($cell) must be of type ?string, float given #16920

@mokraemer

Description

@mokraemer

The give stacktrace is:

PHP Fatal error:  Uncaught TypeError: PhpMyAdmin\Import::detectType(): Argument #2 ($cell) must be of type ?string, float given, called in /usr/share/phpmyadmin/libraries/classes/Import.php on line 977 and defined in /usr/share/phpmyadmin/libraries/classes/Import.php:890
Stack trace:
#0 /usr/share/phpmyadmin/libraries/classes/Import.php(977): PhpMyAdmin\Import->detectType()
#1 /usr/share/phpmyadmin/libraries/classes/Plugins/Import/ImportOds.php(207): PhpMyAdmin\Import->analyzeTable()
#2 /usr/share/phpmyadmin/libraries/classes/Controllers/ImportController.php(635): PhpMyAdmin\Plugins\Import\ImportOds->doImport()
#3 /usr/share/phpmyadmin/libraries/classes/Routing.php(186): PhpMyAdmin\Controllers\ImportController->index()
#4 /usr/share/phpmyadmin/index.php(18): PhpMyAdmin\Routing::callControllerForRoute()
#5 {main}
  thrown in /usr/share/phpmyadmin/libraries/classes/Import.php on line 890

the line is:
$curr_type = $this->detectType($types[$i], $table[self::ROWS][$j][$i]);

it looks like the second argument is not as expected.

Metadata

Metadata

Assignees

Labels

BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions