phpMyAdmin acting crazy

Then maybe you installed some php packages manually…?

Options:

1.- Change the owner of the dir:

chown -R www-data:www-data /usr/share/phpmyadmin/tmp/

Check phpmyadmin to see whether it works with no issues.

2.- Take a look to this post: