Persistent error with phpmyadmin "Array and string offset access syntax with curly braces is no longer supported"

The following error is in my /var/log/apache2/error.log file. I can not access the index.php file or any other phpmyadmin file, in replace of phpmyadmins interface my server returns an http 500 error. All other files work fine, its only phpmyadmin's which has this issue.

Array and string offset access syntax with curly braces is no longer supported in /usr/share/$
$share/phpmyadmin/libraries/Util.php on line 2087

I have tried reinstalling phpmyadmin and php but the issue persists.

PHP version: 8.0.12
phpmyadmin version: 4.6.6-5

2

1 Answer

The error tells you what the issue is:

Array and string offset access syntax with curly braces is no longer supported in /usr/share/$ $share/phpmyadmin/libraries/Util.php on line 2087

There are {} curly braces that are no longer supported in PHP. here's a source to check out regarding this:

sudo vi /share/phpmyadmin/libraries/Util.php

go to line 2087

then edit the {} curly braces and replace them with []

then type :wq

You can use any file editor you wish to, I personally use vim.

Since the above caused more issues do the following:

Run sudo apt remove --purge phpmyadminThen sudo apt autoremove

Then download the zip file from

The default location for the zip file should be Downloads unless you changed it

Next unzip the file, You can do this through the GUI into the default location which is /

Don't worry about changing it just unzip or extract right from there.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like