-
Bug
-
Resolution: Fixed
-
Blocker
-
3.1.0-dev
-
None
-
None
<b>Fatal error</b>: Uncaught exception 'LogicException' with message 'Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)' in E:\Develop\develop\phpBB\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser.php:123
|
Stack trace:
|
#0 E:\Develop\develop\phpBB\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\File\File.php(87): Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser->guess('./files/pluploa...')
|
#1 E:\Develop\develop\phpBB\phpbb\plupload\plupload.php(131): Symfony\Component\HttpFoundation\File\File->getMimeType('./files/pluploa...')
|
#2 E:\Develop\develop\phpBB\includes\functions_upload.php(590): phpbb\plupload\plupload->handle_upload('fileupload')
|
#3 E:\Develop\develop\phpBB\includes\functions_posting.php(427): fileupload->form_upload('fileupload', Object(phpbb\plupload\plupload))
|
#4 E:\Develop\develop\phpBB\includes\message_parser.php(1508): upload_attachment('fileupload', 2, false, '', false, false, Object( in <b>E:\Develop\develop\phpBB\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser.php</b> on line <b>123</b><br />
|
The problem is, that the mimetype guesser requires php_fileinfo php extension, but we do not check for it on install/update?
If possible, we should try whether there are guessers available before calling it, and just dont use the mimetype guesser otherwise.