You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mokraemer opened this issue
May 26, 2021
· 5 comments
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
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.
The text was updated successfully, but these errors were encountered:
williamdes
changed the title
PHP8: type error during ods import
[ODS Import] Uncaught TypeError: PhpMyAdmin\Import::detectType(): Argument #2 ($cell) must be of type ?string, float given
May 28, 2021
I could reproduce and fix this error, thank you for reporting it !
Fatal error: Uncaught TypeError: PhpMyAdmin\Import::detectType(): Argument #2 ($cell) must be of type ?string, float given, called in
libraries/classes/Import.php on line 977 and defined in
libraries/classes/Import.php:890 Stack trace: #0
libraries/classes/Import.php(977): PhpMyAdmin\Import->detectType(1, 0.13) #1
libraries/classes/Plugins/Import/ImportOds.php(207): PhpMyAdmin\Import->analyzeTable(Array) #2
libraries/classes/Controllers/ImportController.php(635): PhpMyAdmin\Plugins\Import\ImportOds->doImport(Object(PhpMyAdmin\File), Array) #3
libraries/classes/Routing.php(187): PhpMyAdmin\Controllers\ImportController->index(Array) #4
index.php(18): PhpMyAdmin\Routing::callControllerForRoute('/import', Object(FastRoute\Dispatcher\GroupCountBased), Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #5 {main} thrown in
libraries/classes/Import.php on line 890
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The give stacktrace is:
the line is:
$curr_type = $this->detectType($types[$i], $table[self::ROWS][$j][$i]);
it looks like the second argument is not as expected.
The text was updated successfully, but these errors were encountered: