Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#20,207 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
mysql, php
Lĩnh vực
backend, databases

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện TypeError với các giá trị legacy trong config.inc.php, sau đó đọc HomeController.php quanh dòng 127 và điểm vào Charsets::getCharsets(). Xác định cách các giá trị cấu hình đi đến lệnh gọi đó, và xác định hoàn thành là xử lý hoặc báo cáo rõ ràng các giá trị legacy mà không gây ra TypeError thiếu thông tin.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Awaiting Maintainer Response question

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

Ngôn ngữ chính
PHP
Star
7.9k
Fork
3.6k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của phpmyadmin/phpmyadmin

Tất cả issue của phpmyadmin/phpmyadmin

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.