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: XMLWriter::writeAttribute(): Argument #2 ($value) must be of type string, float given #16744

Closed
williamdes opened this issue Mar 20, 2021 · 0 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

@williamdes
Copy link
Member

Describe the bug

On designer export to Svg

Fatal error: Uncaught TypeError: XMLWriter::writeAttribute(): Argument #2 ($value) must be of type string, float given in
libraries/classes/Plugins/Schema/Svg/Svg.php:291 Stack trace: #0
libraries/classes/Plugins/Schema/Svg/Svg.php(291): XMLWriter->writeAttribute('x1', 257) #1
libraries/classes/Plugins/Schema/Svg/RelationStatsSvg.php(87): PhpMyAdmin\Plugins\Schema\Svg\Svg->printElementLine('line', 257, 330, 267, 330, 'stroke:#cb0;str...') #2
libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php(271): PhpMyAdmin\Plugins\Schema\Svg\RelationStatsSvg->relationDraw(true) #3
libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php(165): PhpMyAdmin\Plugins\Schema\Svg\SvgRelationSchema->drawRelations() #4
libraries/classes/Plugins/Schema/SchemaSvg.php(75): PhpMyAdmin\Plugins\Schema\Svg\SvgRelationSchema->__construct('wdesmenu') #5
libraries/classes/Export.php(1352): PhpMyAdmin\Plugins\Schema\SchemaSvg->exportSchema('wdesmenu') #6
libraries/classes/Controllers/SchemaExportController.php(50): PhpMyAdmin\Export->processExportSchema('svg') #7
libraries/classes/Routing.php(186): PhpMyAdmin\Controllers\SchemaExportController->index(Array) #8
index.php(18): PhpMyAdmin\Routing::callControllerForRoute('/schema-export', Object(FastRoute\Dispatcher\GroupCountBased), Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #9 {main} thrown in
libraries/classes/Plugins/Schema/Svg/Svg.php on line 291

Server configuration

  • phpMyAdmin version: 5.1
@williamdes williamdes added 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 labels Mar 20, 2021
@williamdes williamdes added this to the 5.1.1 milestone Mar 20, 2021
@williamdes williamdes self-assigned this Mar 20, 2021
@williamdes williamdes added this to Needs triage in issues via automation Mar 20, 2021
@williamdes williamdes moved this from Needs triage to to be fixed soon in issues Mar 20, 2021
williamdes added a commit that referenced this issue Mar 20, 2021
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from to be fixed soon to Closed Mar 20, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 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 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

1 participant