Community Support for OpenDocMan (Deprecated)
Warning: finfo::finfo() [finfo.finfo]: Failed to load magic - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Bug Reports (https://forum.opendocman.com/forum-8.html)
+--- Thread: Warning: finfo::finfo() [finfo.finfo]: Failed to load magic (/thread-599.html)



Warning: finfo::finfo() [finfo.finfo]: Failed to load magic - Guest - 03-12-2013

Hi,

I have installed OpenDocMan 1.2.6.4 on php 5.2 Directadmin with openbasedir on. After adding any document I am getting following error :

Warning: finfo::finfo() [finfo.finfo]: Failed to load magic database at '/usr/share/misc/magic'. in /home/.../odm/File_class.php on line 42

Warning: finfo::file() [finfo.file]: The invalid fileinfo object. in /home/.../odm/File_class.php on line 43

Warning: Cannot modify header information - headers already sent by (output started at /home/.../odm/File_class.php:42) in /home/.../odm/add.php on line 489

Does anyone has idea whats wrong ?


Re: Warning: finfo::finfo() [finfo.finfo]: Failed to load ma - Stephen - 03-12-2013

What is your exact PHP version? The 5.2 version is from 2006.


Re: Warning: finfo::finfo() [finfo.finfo]: Failed to load ma - plowman - 03-12-2013

This might be causing the problem if you are using less than 5.3:

Quote:Before PHP 5.3.0, the magic_open library is needed to build this extension.

http://www.php.net/manual/en/fileinfo.requirements.php

Does your phpinfo() return information about magic mime?


Re: Warning: finfo::finfo() [finfo.finfo]: Failed to load ma - Stephen - 03-12-2013

James, if you would like you can checkout the "develop" branch from our git repository. I have added some significant changes to the way mime types are determined but I don't know if your specific case will be handled or not. If you could test it out that would be very helpful.

https://github.com/opendocman/opendocman/tree/develop

If you want to download that branch you can click on the Zip button, or, you can checkout the branch using the "git" utility if you know how to use that.

Thanks


Re: Warning: finfo::finfo() [finfo.finfo]: Failed to load ma - climb4fun - 04-26-2013

Hi Stephen,

I have the same issue. My PHP is 5.3.x.
I have been able to deploy successfully on an local installation with XAMPP. But on my external web host it didn't work.
I tried your suggested development version, but it didn't work. Same issue.

Any more suggestions?

Thanks in advance.

climb4fun


Re: Warning: finfo::finfo() [finfo.finfo]: Failed to load ma - Stephen - 04-26-2013

Climb4fun,

Please verify you are running 1.2.6.5


Re: Warning: finfo::finfo() [finfo.finfo]: Failed to load ma - climb4fun - 04-28-2013

Hi Stephen,

I confirm to run on 1.2.6.5.

Climb4fun


Re: Warning: finfo::finfo() [finfo.finfo]: Failed to load ma - climb4fun - 05-05-2013

Hi all,

I could overcome this issue by moving to an other Web Hoster. This issue is due to constraints set by several Web Hoster.
Now I have it working well.

Regards,

climb4fun