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
Argument #1 ($offset) must be greater than or equal to 0 #16614
Comments
Fixes phpmyadmin#16614 Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Do you mean a table with no columns, or one that has columns but no data in it? I'm trying reproduce this and having trouble. |
|
I have the same problem with phpMyAdmin-5.1.0-rc2-all-languages You can reproduce it with CREATE TABLE `tbl_post` (
`post_id` int(11) NOT NULL,
`post_name` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SELECT * FROM tbl_post ORDER BY post_id DESC
Fatal error: Uncaught ValueError: mysqli_result::data_seek(): Argument #1 ($offset) must be greater than or equal to 0 Without "ORDER BY post_id DESC" it works. |
|
Deleting all the rows of the last page of a table did trigger this for me. I created #16633 to fix that |
|
I've got it now, thank you. |
Signed-off-by: William Desportes <williamdes@wdes.fr>
5.1.0-rc1
PHP 8.0.1
When trying to browse an empty table:
The text was updated successfully, but these errors were encountered: