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
When "Replace existing bookmark of same name" is selected when running a SQL query, the query fails with an "Error in processing request" popup. When looking in the server logs, I have the error:
PHP Fatal error: Uncaught TypeError: Argument 5 passed to PhpMyAdmin\\Sql::storeTheQueryAsBookmark() must be of the type bool or null, string given,
called in [path removed]/phpMyAdmin-5.0.2-english/import.php on line 772 and defined in [path
removed]/phpMyAdmin-5.0.2-english/libraries/classes/Sql.php:903\nStack trace:\n#0 [path removed]/phpMyAdmin-5.0.2-english/import.php(772): PhpMyAdmin\\Sql-
>storeTheQueryAsBookmark('aviary', 'chris', 'SELECT * FROM `...', 'testing1', 'true')\n#1 {main}
thrown in [path removed]/phpMyAdmin-5.0.2-english/libraries/classes/Sql.php on line 903
To Reproduce
Steps to reproduce the behavior:
Go to the SQL tab for a table in a database
Enter a query
Enter the name of a previously bookmarked query in the "Bookmark this SQL query:" box
Tick the "Replace existing bookmark of same name"
Click "Go"
500 "Error in processing request" popup appears and the above error is logged
Thank you for reporting this issue @TheWatcher !
It will be fixed in next 5.0 version and you can apply the patch (a06c62e) locally to fix it before the new version is out
Describe the bug
When "Replace existing bookmark of same name" is selected when running a SQL query, the query fails with an "Error in processing request" popup. When looking in the server logs, I have the error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Query run, and bookmarked SQL query updated.
Server configuration
Client configuration
Additional context
I have fixed this on my install with the attached patch
import.txt
The text was updated successfully, but these errors were encountered: