phpMyAdmin 5.2.1 is not compatible with PHP 8.4.x.

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
Radjin
Posts: 12
Joined: Wed Nov 27, 2024 2:59 am

phpMyAdmin 5.2.1 is not compatible with PHP 8.4.x.

Post by Radjin »

I went to install the Extra, phpBB, and found I could not login with the admin credentials provided at install. A bit of research gave directions to go to phpMyAdmin and make some changes. When I tried to open phpMyAdmin from MAMP I got the error in the subject. This is the first time I received this error. I am not sure if it was caused by the phBB install, or the latest update as they were close together. I forgot to mention as listed below I am not using php 8.4.

I tried renaming the phpMyAdmin folder and restarting, it created the new folder, as expected, but with the same error.


MAMP v: 7.2
php v: 8.3.14
MySQL v: 8.0.4.0

on a Mac mini M4 pro.

Any suggestions?
Sunshinetsu0411
Posts: 1
Joined: Tue Mar 04, 2025 6:33 pm

Re: phpMyAdmin 5.2.1 is not compatible with PHP 8.4.x.

Post by Sunshinetsu0411 »

Hewwo, one of my friends had encountered a similar issue, she is also using a Mac OS, so I believe it is possible that these two issues have the same cause? The following steps are what I did to resolve the issue.

So the solution that I discovered just now was:
  1. Manually locate and open the MAMP folder (in VScode)
  2. Using the search function, look up the PHP version that is not compatible (the error message was displayed when the user trying to open phpMyAdmin at the browser, alongside with the incompatible version of PHP & phpMyAdmin; or the version that is not compatible can be found from the MAMP UI)
  3. Replace the PHP version to the installed phpMyAdmin version
Usually the changes would be like, replacing 8.4.4 (latest PHP version / the PHP version you installed) to 5.2.2 (latest phpMyAdmin version / the phpMyAdmin version you installed).
(In this case, I believe you would need to replace the 8.3.14 to 5.2.1)
And then after replacing the version, restart the server using MAMP, and everything should work fine.

The following screenshots provide some visual support to help with the steps listed above:
Image
Using the search and replace function in VScode to replace the version number

Image
Checking the PHP version from MAMP (sowwy this is from a Window version of MAMP, but I believe the concept should be same; you should be able to find it under the "Preferences" tab)

In my assumption, it may be a config error when the developers were writing the file? Like they may mistaken the version of PHP and phpMyAdmin and accidentally set the wrong version? Or maybe I really just brute force it to an older version to work... But at least it resolves the issue for my friend for now. (๑'ᵕ'๑)⸝*
Last edited by Sunshinetsu0411 on Tue Mar 04, 2025 8:02 pm, edited 2 times in total.
Post Reply