Closed (outdated)
Project:
MimeDetect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2011 at 23:31 UTC
Updated:
25 Feb 2017 at 19:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jgraham commentedUpdated patch uses the same function post install and pre-install, and verifies that the fileinfo extension is loaded prior to attempting to executing finfo_open().
See also http://drupal.org/node/927020
Comment #2
grkm2002 commentedHow do you install the patch? I put the file into the mimedetect folder and change ownership and put the snippet code from the readme file into settings.php and still nothing works. And.. yes i have cleared my cach and restarted apache and both magic and magic.mime works when using test.php. Using ubuntu 10.04 server.
Comment #3
jgraham commentedgrkm2002 review the patch documentation found here http://drupal.org/patch/apply
New patch re-rolled. The call to finfo_open() should have been @finfo_open() like before.
Comment #4
grkm2002 commentedWorks like a charm. Great job
Copied mimedetect.patch to modules/mimedetect.
Change ownership and ran "patch < mimedetect.patch"
Comment #5
Vc Developer commentedThanks, that did the job!...
Comment #6
jgraham commentedChanging status, as two others have chimed in indicating the patch worked for them.
Comment #7
pimok3000 commentedpatch from #3 works perfectly for me too...
Comment #8
rjbrown99 commented+1, also fixed a status report issue for me where mimedetect was showing a lack of the ability to open the info file.
Comment #9
gdl commentedThe patch in #3 addressed an installation issue for me as well.
Comment #10
paulrooney commentedPatch in #3 resolved this error on status page:
Mime type detection PHP Fileinfo Extension
Fileinfo could not load the magic file. It could be corrupted. Try reinstalling the magic file distributed with the MimeDetect module.
Comment #11
manuel.adanClosing this as outdated, feel free to re-open if you're still looking for a solution and waiting for appropriate assistance.