I had same error on fresh startup of phpMyAdmin, every time , on first start after fresh install, a complaint, of an error and some options being disabled, solution , install newer, reinstall same or whatever version from scratch, the problem is /tmp folder .. now to the solution, a fair warning i don't knw will this damage or erase or in any other way the already present database cluster, so backup .. :
Backup existing phpMyAdmin :
mv /usr/local/cwpsrv/var/services/pma /usr/local/cwpsrv/var/services/pma.baks
Lets go to .. :
cd /usr/local/cwpsrv/var/services/
.. and download :
wget https://files.phpmyadmin.net/phpMyAdmin/4.9.7/phpMyAdmin-4.9.7-all-languages.zip
.. blahblahbla .. just execute them .. :
unzip phpMyAdmin-4.9.7-all-languages.zip
mv phpMyAdmin-4.9.7-all-languages pma
cd /usr/local/cwpsrv/var/services/pma
mv config.sample.inc.php config.inc.php
mkdir /usr/local/cwpsrv/var/services/pma/tmp
Now this one is important :
mysql -u root -ppISQpNih9ZqX < /usr/local/cwpsrv/var/services/pma/sql/create_tables.sql
... just in case :
chown -R nobody:nobody /usr/local/cwpsrv/var/services/pma/
chmod 4744 tmp
Blowfish secret , at least 32 chars , here (i use nano as editor, personal choice) :
nano config.inc.php
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
$cfg['blowfish_secret'] = '$2a$07$s4r2eS3qMvw1PdzMlUwYsdffyuftynfugu6erg68AuzH3I3gyoN7ncnSkblZ7iEfcx3Qm'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
... and here is the devil himself (still open config.inc.php .. after blowfish key insertion) :
Navigate down few rows to this key $cfg['SaveDir'] = ''; and add this below > $cfg['TempDir'] = '/tmp/';
(Control+o > Enter > Control+x) Save>Exit>Reboot (just in case)
start phpMyAdmin from the panel > Boooom login page (use user root and password generated at the end of installation of the panel)
and finally ... peace
Now im in a MMA fight with PHP selectors switchers, optional modules just give a hard fight .. ouch, ouch ..