Fix Bug Phpmyadmin [plugin_interface.lib.php] + Php7.2 + Ubuntu 18.04

After installing phpMyAdmin in Ubuntu 18.04, It usually shows a message like this,
Warning in ./libraries/plugin_interface.lib.php#551 count(): Parameter must be an array or an object that implements Countable  Backtrace  ./libraries/display_import.lib.php#371: PMA_pluginGetOptions( string 'Import', array, ) ./libraries/ New php version can’t use count() or sizeof() with un array type. Force parameter to array is easy way to solve this bug, Like This

Just edit the

sudo gedit /usr/share/phpmyadmin/libraries/plugin_interface.lib.php

Find this line

if ($options != null && count($options) > 0) {

Add (array) or replace with this

if ($options != null && count((array)$options) > 0) {

0 Komentar