LINUX, FOSS AND LIBRARY TECHNOLOGY ENTHUSIAST

Tuesday, August 20, 2019

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

1 comments
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/display_import.li. 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 plugin_interface.lib.ph

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) {

1 comment: