Skip to content

Get Database structure fails with PHP error on replicated server #15722

@gunnicom

Description

@gunnicom

Describe the bug

When clicking on a database name ( link is like https://DOMAIN/db_structure.php?db=DBNAME )
I get an error and i can not list the tables of that database.
I can show the tables in the treeview on the left. From there i can click on the table.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Start page
  2. Click on Database name in the treeview
  3. See error

Expected behavior

The structure and table names of the database should be shown.

Screenshots

If applicable, add screenshots to help explain your problem.
grafik

Server configuration

  • Operating system: Ubuntu 16.04
  • Web server: Apache 2.4.41
  • Database version: MariaDB 10.2.30
  • PHP version: 7.3.13
  • phpMyAdmin version: 5.0.0

Client configuration

  • Browser: Google Chrome 79
  • Operating system: Windows 7

Additional context

error.log:
[Mon Dec 30 13:41:35.992780 2019] [proxy_fcgi:error] [pid 8824:tid 140017895712512] [client CLIENT_IP:58044] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: strlen() expects parameter 1 to be string, bool given in /var/www/DOMAIN/pma.5.0.0/libraries/classes/Controllers/Database/StructureController.php:770\nStack trace:\n#0 /var/www/DOMAIN/pma.5.0.0/libraries/classes/Controllers/Database/StructureController.php(770): strlen(false)\n#1 /var/www/DOMAIN/pma.5.0.0/libraries/classes/Controllers/Database/StructureController.php(531): PhpMyAdmin\\Controllers\\Database\\StructureController->getReplicationStatus('archived_boepri...')\n#2 /var/www/DOMAIN/pma.5.0.0/libraries/classes/Controllers/Database/StructureController.php(172): PhpMyAdmin\\Controllers\\Database\\StructureController->displayTableList()\n#3 /var/www/DOMAIN/pma.5.0.0/db_structure.php(56): PhpMyAdmin\\Controllers\\Database\\StructureController->index(Array)\n#4 {main}\n thrown in /var/www/DOMAIN/pma.5.0.0/libraries/classes/C...'

Metadata

Metadata

Assignees

Labels

BugA problem or regression with an existing feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions