-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
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
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