phpMyAdmin 4.7.7 fatal error on PHP 7.2 and ini_set() / ini_get() are disabled

Panormitis

Verified User
Joined
Sep 13, 2014
Messages
37
phpMyAdmin gives fatal error on PHP 7.2 if the functions ini_set() and/or ini_get() are disabled. This wasn't happening in the past as far as I know.
One crude way to fix this for now, is to edit the file common.inc.php

Find the following part and delete it or comment it out:
Code:
if (! function_exists('ini_get') || ! function_exists('ini_set')) {
    PMA_fatalError(
        __(
            'You have disabled ini_get and/or ini_set in php.ini. '
            . 'This option is incompatible with phpMyAdmin!'
        )
    );
}
 
Hello,

As far as I know directadmin does not disable PHP functions ini_set() and ini_get(). So if the functions are disabled it's probably because you've disabled them.
 
Yes, I have disabled these functions myself and I prefer to keep them disabled.
I'm just saying I don't remember phpMyAdmin complaining about this on older versions, or on PHP 5.6.
I just posted this in case it helps someone.
 
Back
Top