View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011728 | mantisbt | attachments | public | 2010-03-30 04:07 | 2014-12-08 00:34 |
Reporter | oscar | Assigned To | dhx | ||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Chrome 4 | OS | Windows | OS Version | 2003 Server |
Product Version | 1.2.0 | ||||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0011728: Attachments error when downloading or viewing | ||||
Description | We have Mantis 1.2.0 installed on a shared hosting. The machine is a Linux server with PHP 5.2.11 and MySQL 5.0.89-community. | ||||
Steps To Reproduce | Go to http://apps.codytel.es/mantis/view.php?id=67 | ||||
Additional Information | Tried with Chrome 4.0.249, Firefox 3.0.6 and all have the same behaviour: Always error when trying to view the Word document previously downloaded: Sometimes error when trying to view the PDF document previously downloaded: Seems to depend on the origin of the content printed to PDF (Word, browser...). Not tested all combinations. Always error when trying to download / view a JPG image: SYSTEM WARNING: finfo::finfo() [finfo.finfo]: Failed to load magic database at '/usr/share/misc/magic'. SYSTEM WARNING: finfo::buffer() [finfo.buffer]: The invalid fileinfo object. SYSTEM WARNING: Cannot modify header information - headers already sent by (output started at /home/codytele/public_html/apps.codytel.es/mantis/core/error_api.php:202) ÿØÿàJFIF | ||||
Tags | No tags attached. | ||||
You'll need to change $g_fileinfo_magic_db_file within config_inc.php to point to a valid magic.db file. It seems your system/environment has the Fileinfo extension available but the magic.db file is not in the standard /usr/share/misc/magic.db location that the Fileinfo extension tries to use by default. I've added some further checks into the new 1.3.x check system to make it easier to debug incorrect Fileinfo settings. |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master 666e231f 2010-03-31 03:01 Details Diff |
Issue 0011728: Add Fileinfo checks to admin/check/ Add some further checks to check_attachments_inc.php as part of the new configuration/environment check script in 1.3.x to verify that Fileinfo is configured correctly. |
Affected Issues 0011728 |
|
mod - admin/check/check_attachments_inc.php | Diff File |