'Phpmyadmin error: 'Undefined index: utf8'
I installed phpMyAdmin, but I have an error on the main page:
Notice in ./index.php#312
Undefined index: utf8
Index p.312:
echo ' ' , $mysql_charsets_descriptions[$mysql_charset_map['utf-8']];
Any idea how I can fix it? Thank you !
Solution 1:[1]
in index.php change
echo ' ' , $mysql_charsets_descriptions[$mysql_charset_map['utf-8']];
to
echo ' ' , $mysql_charsets_descriptions['utf8mb4'];
this is not required other than the error popup being annoying. it sets some html in the page source.
<span lang="en" dir="ltr"> UTF-8 Unicode (utf8) </span>
Alternatively you can edit the array directly in /libraries/common.inc.php line 1121
'utf-8' => 'utf8',
to 'utf-8' => 'utf8mb4',
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Scott Paterson |