Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11912

"Unable to guess the mime type as no guessers are available" when uploading files

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 3.1.0-dev
    • 3.1.0-a3
    • None
    • None

    Description

      <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-&gt;guess('./files/pluploa...')
      #1 E:\Develop\develop\phpBB\phpbb\plupload\plupload.php(131): Symfony\Component\HttpFoundation\File\File-&gt;getMimeType('./files/pluploa...')
      #2 E:\Develop\develop\phpBB\includes\functions_upload.php(590): phpbb\plupload\plupload-&gt;handle_upload('fileupload')
      #3 E:\Develop\develop\phpBB\includes\functions_posting.php(427): fileupload-&gt;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.

      Attachments

        Activity

          People

            EXreaction EXreaction [X] (Inactive)
            nickvergessen Joas Schilling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: