Error Solved "Some Errors Have Been Detected On The Server, Please Look At The Bottom Of This Window." In PhpMyAdmin
Hi guys,
Today i will explained Error Solved "Some Errors Have Been Detected On The Server, Please Look At The Bottom Of This Window." In PhpMyAdmin. This example is so easy to use and solve error in php my admin.
You might have already worked in phpMyAdmin. PHP 7 or newer version, when you click any table or columns in phpMyAdmin, you might get pop-up error message "Some errors have been detected on the server, please look at the bottom of this window."
This error caused phpMyAdmin not compatibility with PHP 7.2 or newer version.
You can fix this issue with small change in the file /usr/share/phpmyadmin/libraries/sql.lib.php. First, backup sql.lib.php before editing with below command.
So let's start to the example.
sudo cp /usr/share/phpmyadmin/libraries/sql.lib.php /usr/share/phpmyadmin/libraries/sql.lib.php.backup
Now edit sql.lib.php file using nano command.
sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php
Press CTRL + W and find the line
(count($analyzed_sql_results['select_expr'] == 1)
And replace it with:
((count($analyzed_sql_results['select_expr']) == 1)
Press CTRL + X, and then SHIFT + Y and then press ENTER. That's it. The error should have gone.
There is also one other method to ignore the errors in phpMyAdmin.
Open the /etc/phpmyadmin/config.inc.php file in nano editor.
sudo nano /etc/phpmyadmin/config.inc.php
And add the below lines at the end of file
$cfg['SendErrorReports'] = 'never';
Save file and exit. This will ignore and hide all errors in phpMyAdmin.
Now you can check your own.
- How To Use Php Conditional Statement Example
- How to Check if String Contains Regex in PHP?
- PHP Array_column() Function Example
- PHP Generate List of Random Numbers Between 0 and 100 Example
- How to User Login with Facebook in PHP?
- How to Explode Every Character into Array Using PHP Example?
- PHP Form Validation Tutorial
- PHP Convert XML to JSON Example