View Issue Details

IDProjectCategoryView StatusLast Update
0014353mantisbtattachmentspublic2012-06-19 12:54
ReporterNagendra Surya Assigned Toatrol  
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Summary0014353: error during viewing attachment
Description

SYSTEM WARNING: 'finfo::finfo() [finfo.finfo]: Failed to load magic database at '/usr/share/misc/magic'.' in '/var/www/html/mantisBT/core/utility_api.php' line 273

SYSTEM WARNING: 'finfo::buffer() [finfo.buffer]: The invalid fileinfo object.' in '/var/www/html/mantisBT/file_download.php' line 197

SYSTEM WARNING: 'Cannot modify header information - headers already sent by (output started at /var/www/html/mantisBT/core/error_api.php:202)' in '/var/www/html/mantisBT/file_download.php' line 208
ÿØÿàJFIF`ÿáZExifMM*JQQÄQĆ ±ÿÛC      ÿÛC  ÿÀeA"ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ ?ýü¢¾}ñ‡íêk^6×¼?ðŸá—ˆ¾+]xVðéÚΡmk¥éWkþ²Õnny³GÆõX! Šn—û}GàÉ ‡âÏÃß|&óʨԯãQѳm ×¶ÅÒ2Iÿ–¡½sKJ?²ïgo¿oÄóVm…æk™Ùu´¹{|våßM÷ÐúŠ«¡ë¶>&Ò-µ 6ò×P°¼ŒKÍ´«,3¡ ¬¤†w­WBg¢õAESQEW=ñ/âdž¾xjMcÅ:ޝ¡iÑñç]ÌÌlgj®Ç²¨$úW–þÑ_µìþ ñ´?þé1øÓ⎡ñš$Dö‹×lPN̆ËÊïMÙ¿ ÿ«Çã‹Z£|OñÔ€÷è—¦sŸ*ÚÛ

Additional Information

we get junk values when attachments are opened

TagsNo tags attached.

Relationships

duplicate of 0011728 closeddhx Attachments error when downloading or viewing 

Activities

atrol

atrol

2012-06-05 09:44

developer   ~0032019

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

Nagendra Surya

Nagendra Surya

2012-06-07 08:14

reporter   ~0032039

to test on the same environment i pointed my old mantis ver 1.1.6 to same database, I am able to view/download attachments.

atrol

atrol

2012-06-07 14:14

developer   ~0032041

Last edited: 2012-06-07 14:14

Nagendra Surya, 1.1.6 uses another way to get the document type of a file. Follow my (dhx's in duplicate issue) instruction to get this solved in 1.2.x.

Nagendra Surya

Nagendra Surya

2012-06-08 04:45

reporter   ~0032044

Thank you for the support. The actual issue was with mantis folder, we replaced it and it pointed it to database and it worked