phpmyadmin/phpmyadmin

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

Aberta

#17.597 aberto em 12 de jun. de 2022

 (13 comentários) (1 reação) (0 responsável)PHP (3.454 forks)batch import
Bugaffects/5.2affects/6.0confirmed/5.2confirmed/6.0help wanted

Métricas do repositório

Stars
 (6.886 estrelas)
Métricas de merge de PR
 (Mesclagem média 2d 17h) (11 fundiu PRs em 30d)

Description

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.

Guia do colaborador