Community Support for OpenDocMan (Deprecated)

Full Version: Warning: finfo::finfo() [finfo.finfo]: Failed to load magic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Guest

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 ?
What is your exact PHP version? The 5.2 version is from 2006.
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?
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
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
Climb4fun,

Please verify you are running 1.2.6.5
Hi Stephen,

I confirm to run on 1.2.6.5.

Climb4fun
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