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

Error 500 after copying a table #16226

Closed
spyjo opened this issue Jun 25, 2020 · 3 comments
Closed

Error 500 after copying a table #16226

spyjo opened this issue Jun 25, 2020 · 3 comments
Assignees
Labels
Bug A problem or regression with an existing feature good first issue help wanted newbie
Projects
Milestone

Comments

@spyjo
Copy link

spyjo commented Jun 25, 2020

Describe the bug

A server error appears after copying a table. It appears only when we are in page 2 of table pagination.
The table is well copied. But the table list does not refresh.

To Reproduce

Go to page 2 of tables list in a database
Click on a table
Click on Operations
Copy the table structure with a new name
See the server error after submit

Server logs

[25-Jun-2020 10:05:52 Europe/Paris] PHP Fatal error:  Uncaught TypeError: Argument 2 passed to PhpMyAdmin\DatabaseInterface::dataSeek() must be of the type int, string given, called in /var/www/phpmyadmin/libraries/classes/Navigation/Nodes/NodeDatabase.php on line 488 and defined in /var/www/phpmyadmin/libraries/classes/DatabaseInterface.php:2724
Stack trace:
#0 /var/www/phpmyadmin/libraries/classes/Navigation/Nodes/NodeDatabase.php(488): PhpMyAdmin\DatabaseInterface->dataSeek(Object(mysqli_result), '50')
#1 /var/www/phpmyadmin/libraries/classes/Navigation/Nodes/NodeDatabase.php(514): PhpMyAdmin\Navigation\Nodes\NodeDatabase->getTablesOrViews('tables', '50', '')
#2 /var/www/phpmyadmin/libraries/classes/Navigation/Nodes/NodeDatabase.php(373): PhpMyAdmin\Navigation\Nodes\NodeDatabase->getTables('50', '')
#3 /var/www/phpmyadmin/libraries/classes/Navigation/NavigationTree.php(400): PhpMyAdmin\Navigation\Nodes\NodeDatabase->getData('tables', '50', '')
#4 /var/www/phpmyadmin/libraries/ in /var/www/phpmyadmin/libraries/classes/DatabaseInterface.php on line 2724

Server configuration

  • Operating system: Debian 10.4
  • Web server: nginx/1.14.2
  • Database version: Mariadb 10.3.23
  • PHP version: 7.3.14-1~deb10u1
  • phpMyAdmin version: 5.0.2

Client configuration

  • Browser: Chrome
  • Operating system: Mac 10.15

Additional context

I think this may be linked to this previous issue:
#15772

Thanks

@williamdes williamdes added the Bug A problem or regression with an existing feature label Jun 25, 2020
@williamdes williamdes added this to the 5.0.3 milestone Jun 25, 2020
@williamdes williamdes added this to Needs triage in issues via automation Jun 25, 2020
@williamdes williamdes moved this from Needs triage to Medium priority in issues Jun 25, 2020
@williamdes
Copy link
Member

Thank you, I assigned it to 5.0.3 to have it fixed ASAP :)

@williamdes williamdes self-assigned this Jun 26, 2020
williamdes added a commit that referenced this issue Jun 26, 2020
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from Medium priority to Closed Jun 26, 2020
@williamdes
Copy link
Member

Bonjour @spyjo

Could you try my patch 425c1c3 and let me know if the issue is fixed ?

Merci d'avance :)

@spyjo
Copy link
Author

spyjo commented Jun 26, 2020

Yes the issue is fixed with your patch

merci !

williamdes added a commit that referenced this issue Jun 27, 2020
Signed-off-by: William Desportes <williamdes@wdes.fr>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2021
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 good first issue help wanted newbie
Projects
issues
  
Closed
Development

No branches or pull requests

2 participants