mySQL admin giving me fatal error message

Problems with the Windows version of XAMPP, questions, comments, and anything related.

mySQL admin giving me fatal error message

Postby ronip » 14. August 2022 16:56

whenever I click on the admin button for mySQL i keep getting this error

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in C:\xampp\phpMyAdmin\libraries\DatabaseInterface.php on line 518

I just installed xampp and have not even made any changes
I tried looking for the file according to the file path but the file doesn't even exist
what's going on??
ronip
 
Posts: 1
Joined: 14. August 2022 16:51
XAMPP version: 8.1.6
Operating System: Windows

Re: mySQL admin giving me fatal error message

Postby Altrea » 14. August 2022 19:40

Hi,

please provide the following information:
- Apache error.log
- Apache access.log
- PHPINfo() output
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: mySQL admin giving me fatal error message

Postby Froosh » 15. August 2022 00:14

In addition to what Altrea requested you provide, I wonder about the XAMPP 8.1.6 setup on your system.

I have XAMPP 8.1.6, and when I try launching phpMyAdmin launches from the XAMPP Control Panel, I am presented with the expected phpMyAdmin content.

On my system DatabaseInterface.php is located in C:\xampp\phpMyAdmin\libraries\classes folder, not C:\xampp\phpMyAdmin\libraries\.
Line 518 "$sql .= ' AND';" does not contain a ternary operator:
Code: Select all
if ($table_type) {
    if ($needAnd) {
        $sql .= ' AND';
    }

    if ($table_type === 'view') {


To me, this indicates either the error message is incorrect, or your XAMPP setup has issues. Possibly changes were made to the phpMyAdmin code base on your system?
User avatar
Froosh
 
Posts: 138
Joined: 27. March 2022 17:56
XAMPP version: 8.2.0
Operating System: Windows 11 Pro

Re: mySQL admin giving me fatal error message

Postby Nobbie » 15. August 2022 09:00

I think ronip has installed a different phpMyadmin, not the Xampp installation. The error message is known for older phpmyadmin releases in conjunction to PHP 8.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 154 guests