The way we fixed this problem was by following the askubuntu instructions at depreciation notice error in phpmyadmin with 16.04. It involves changing three lines in /usr/share/php/php-gettext/streams.php and one line in /usr/share/php/php-gettext/gettext.php.
From that link, this are the changes you need to do (if you have ubuntu 16.04):
1 | sudo nano /usr/share/php/php-gettext/streams.php |
Line 48 StringReader Error.
Go to Line 52 and change
1 | function StringReader ($str='') { |
TO
1 | function __construct($str='') { |
Line 84 FileReader Error
Go to Line 90 and change
1 | function FileReader($filename) { |
to
1 | function __construct($filename) { |
Line 145 CacheFileReader error
Go to Line 146 and change
1 | function CachedFileReader($filename) { |
to
1 | function __construct($filename) { |
Using
1 | sudo nano /usr/share/php/php-gettext/gettext.php. |
Line 36 gettext_reader { error
I think you get the gist now, go to line 101 and change
1 | function gettext_reader($Reader, $enable_cache = true) { |
To
1 | function __construct($Reader, $enable_cache = true) { |