extension php_fileinfo did not eanble.

URL http://localhost/d8/admin/config/development/configuration/full/export

I tried to get full export. I got broken page with fatal error.

CommentFileSizeAuthor
#4 2230013-04.patch370 bytesjhedstrom
Capture.PNG29.33 KBlalit774

Comments

berdir’s picture

Priority: Minor » Normal
Issue tags: -fatal error full export php_fileinfo

Hm, fatal error isn't a minor bug. We should probably add fileinfo to the list of extensions that we need, surprised that this didn't fail before..

Jamie Holly’s picture

+1. php_fileinfo isn't enabled on all distributions by default. Given this is a core item, it should probably be checked during prerequisites.

jhodgdon’s picture

Component: configuration system » config.module

This looks like config.module, not the generic config system?

jhedstrom’s picture

Status: Active » Needs review
StatusFileSize
new370 bytes

Hmm, fileinfo has been enabled by default since php 5.3.0. However, it's easy enough to add this to the list.

Jamie Holly’s picture

+1 to including this very minor check, especially for Win users, where you still must include the php_fileinfo.dll in your php.ini, even after 5.3.

chi’s picture

Issue tags: +Windows

This extension cannot be disabled on Linux based platforms, so that only windows users can test properly this patch.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Anonymous’s picture

Status: Needs review » Closed (duplicate)
Issue tags: -Windows
Related issues: +#2290261: Revert php_fileinfo requirement

I can not reproduce this error on Windows with disabled php_fileinfo extension. And looks like from #4 was just an analysis, without confirmation of the problem. Because it was fixed in #2387443: BinaryFileResponse can fail because the core MIME guessing is not added to the MimeType singleton.