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

Illegal offset type in isset or empty on Replication configure replica #16863

Closed
williamdes opened this issue Apr 27, 2021 · 0 comments
Closed
Assignees
Labels
Bug A problem or regression with an existing feature
Milestone

Comments

@williamdes
Copy link
Member

Describe the bug

Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in
libraries/classes/DatabaseInterface.php:204 Stack trace: #0
libraries/classes/DatabaseInterface.php(1401): PhpMyAdmin\DatabaseInterface->tryQuery('SHOW MASTER STA...', Object(mysqli), 0, false) #1
libraries/classes/Replication.php(158): PhpMyAdmin\DatabaseInterface->fetchResult('SHOW MASTER STA...', NULL, NULL, Object(mysqli)) #2
libraries/classes/ReplicationGui.php(542): PhpMyAdmin\Replication->slaveBinLogMaster(Object(mysqli)) #3
libraries/classes/ReplicationGui.php(453): PhpMyAdmin\ReplicationGui->handleRequestForSlaveChangeMaster() #4
libraries/classes/Controllers/Server/ReplicationController.php(70): PhpMyAdmin\ReplicationGui->handleControlRequest() #5
libraries/classes/Routing.php(186): PhpMyAdmin\Controllers\Server\ReplicationController->index(Array) #6
index.php(18): PhpMyAdmin\Routing::callControllerForRoute('/server/replica...', Object(FastRoute\Dispatcher\GroupCountBased), Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #7 {main} thrown in
libraries/classes/DatabaseInterface.php on line 204

To Reproduce

Steps to reproduce the behavior:

  1. Go to Replication
  2. Configure a replica
  3. Make it fail because the account has not the good rights

Expected behavior

Error message

Screenshots

PHP error

Server configuration

  • phpMyAdmin version: 5.1
@williamdes williamdes added the Bug A problem or regression with an existing feature label Apr 27, 2021
@williamdes williamdes added this to the 5.1.1 milestone Apr 27, 2021
@williamdes williamdes self-assigned this Apr 27, 2021
williamdes added a commit that referenced this issue Apr 27, 2021
Signed-off-by: William Desportes <williamdes@wdes.fr>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 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
Projects
None yet
Development

No branches or pull requests

1 participant