phpmyadmin/phpmyadmin

TypeError: PhpMyAdmin\Export::getFilenameAndMimetype(): Argument #5 ($filenameTemplate) must be of type string, null given

开放

#17,597 创建于 2022年6月12日

 (13 条评论) (1 个反应) (0 位负责人)PHP (3,454 个派生)batch import
Bugaffects/5.2affects/6.0confirmed/5.2confirmed/6.0help wanted

仓库指标

星标
 (6,886 个星标)
PR 合并指标
 (平均合并 2天 17小时) (30 天内合并 11 个 PR)

描述

Describe the bug

TypeError: PhpMyAdmin\Export::getFilenameAndMimetype(): Argument #5 ($filenameTemplate) must be of type string, null given when exporting a database.

To Reproduce

Steps to reproduce the behavior:

  1. Set max_input_vars to 1000
  2. Create a database with 15000 tables
  3. Export database

Expected behavior

No error should be given and the export should work.

Screenshots

https://user-images.githubusercontent.com/25424343/173256112-c2f004e0-40e3-4f50-ae7c-27b3b7c46c6a.mp4

Server configuration

  • Operating system: Windows 10
  • Web server: nginx/1.22.0
  • Database version: 5.7.38 - MySQL Community Server (GPL)
  • PHP version: 8.1.6
  • phpMyAdmin version: 5.2.1-dev

Client configuration

  • Browser: Firefox 102
  • Operating system: Windows 10

Additional context

5.2.3-dev

Internal error in .\libraries\classes\Export.php#346
TypeError: PhpMyAdmin\Export::getFilenameAndMimetype(): Argument #5 ($filenameTemplate) must be of type string, null given, called in \phpmyadmin\libraries\classes\Controllers\Export\ExportController.php on line 398

6.0.0-dev

Export is incomplete, and filename is `sql` without any extension.

贡献者指南