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
One specific table can not be browsed anymore: preg_match() expects parameter 2 to be string, null given #15877
Comments
|
@yashrajbothra could you please have a look? (if you want ^^) |
|
Definitely👍 |
|
After some lookup in error log i found error is related to sorting of table headers. Can you please try to elborate whole story of the issue @felsd which can help me reproducing. if you can give structure of those tables it can help? |
|
Only one table is affected. StructureIndexesPartitionsAdditional InfoThe StoryWhen I click on "Browse" I get the error dialog that I mentioned and the exception appears in the nginx log. The previous sorting of that table was either by |
|
@felsd Are you getting error again n again or it was only one time? |
|
I still get that error. |
|
I added the affected table structure to my local machine and tried reproducing the issue but unfortunately i was unable to reproduce the error. table structure
-- phpMyAdmin SQL Dump
-- version 5.1.0-dev
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 30, 2020 at 01:10 PM
-- Server version: 10.1.35-MariaDB
-- PHP Version: 7.2.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `bsr`
--
-- --------------------------------------------------------
--
-- Table structure for table `table`
--
CREATE TABLE `table` (
`id` int(11) NOT NULL,
`column_1` varchar(64) CHARACTER SET utf8mb4 NOT NULL,
`column_2` varchar(64) CHARACTER SET utf8mb4 NOT NULL,
`column_3` varchar(64) CHARACTER SET utf8mb4 NOT NULL,
`column_4` varchar(64) CHARACTER SET utf8mb4 NOT NULL,
`column_5` varchar(64) CHARACTER SET utf8 DEFAULT NULL,
`column_6` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL,
`column_7` text CHARACTER SET utf8mb4,
`column_8` int(11) NOT NULL,
`column_9` tinyint(1) NOT NULL,
`column_10` tinyint(1) NOT NULL,
`column_11` tinyint(1) NOT NULL DEFAULT '0',
`column_12` tinyint(1) NOT NULL DEFAULT '0',
`column_13` tinyint(1) NOT NULL,
`column_14` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`column_15` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`column_16` timestamp NULL DEFAULT NULL,
`column_17` varchar(16) CHARACTER SET utf8mb4 DEFAULT NULL,
`column_18` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `table`
--
ALTER TABLE `table`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `table`
--
ALTER TABLE `table`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;@williamdes Can You please help me reproducing the issue ? |
|
@yashrajbothra sorry, no computer for now |
|
Ping @williamdes |
|
I could not reproduce the issue but I am investigating |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
@williamdes Sorry for the late response - I just tried that but it didn't to the trick unfortunately. Here is a more detailed error message: |
|
Thank you |
|
I had the same issue. i try go to table options (operations) -> flush table and OPTIMIZE TABLE. This work for me. Maybe the problem is with mysql cache. |
|
@hcniet Thank you, that fixed it for me. |
@hcniet thanks you saved me! |
|
I got the same issue on few tables. To fix it, go to : structure tab > Move columns, switch some columns and save. |
|
Are you using the latest version @beYondeR732 ? |
|
I was on version 4.8 when I had the issue. The solution posted above worked fine for me. |
My phpMyAdmin version : 5.1.0-3.el7.remi (up to date) |
Since today I can't view the data of only one specific table anymore. I have been using phpMyAdmin on this server since several months with multiple databases and until today everything was working fine.
phpMyAdmin 4.9.4 in combination with PHP 7.0 displayed only the first column of the table and a long error message at the end of the page. Unfortunately I don't have the full message anymore, the only part that I remember is
Undefined offset: 2in the fileDisplay/Results.php.The 2nd column of that table is a
varchar(64)with collationutf8mb4_general_ci.After upgrading to phpMyAdmin 5.0.1 and PHP 7.3 I get an error dialog with the following message:
nginx error.log:
Server configuration
Debian 9nginx/1.10.310.1.41-MariaDB-0+deb9u1 - Debian 9.97.3.14-1+0~20200123.51+debian9~1.gbpcf42df5.0.1Client configuration
79.0.3945.79Lubuntu 18.04The text was updated successfully, but these errors were encountered: