Skip to content

[Bug]: Latest PHP (8.5.3) & Latest phpMyAdmi (5.2.3) using old config.inc.php #20207

@DenisBasta

Description

@DenisBasta

Such a problem I've had...

After updating PHP and phpMyadmin to latest versions "TypeError" error appears without any additional information. After making some research I've discovered, that problem was in my config.inc.php (taken from older phpMyAdmin version) and declare(strict_types=1) in phpMyAdmin code.

Basicly problem was with config values.
In older phpMyAdmin versions, config settings such as AllowNoPassword, AllowRoot etc. was using on|off string values (at least in my config) and exactly the same with settings, such as controlport, MaxTableList etc. which supposed to be integers.

Problem solved by replacing on|off values to true|false and integer values defined as '250' to 250.

How to Reproduce

In config.inc.php change any bool settings from true|false to 'on|off' and the same for integer values from 250 to '250'

You'll see just 'TypeError' error...

in-depth investigation leads to something like this:
TypeError: PhpMyAdmin\Charsets::getCharsets(): Argument #2 ($disableIs) must be of type bool, string given, called in D:\WWW\WWW\mysql\libraries\classes\Controllers\HomeController.php on line 127

Hope it helps somebody.

Expected behavior

No response

Screenshots

Image

Operating System

Windows

Web Server

Apache 2.4.23 (Win64)

Database Server

MySQL

Database version

5.7.13-log

PHP version

8.5.3

phpMyAdmin version

5.2.3

browser

Any

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Author UpdatesStalequestionUsed when we need feedback from the submitter or when the issue is a question about PMA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions