Page 1 of 1
Problem with xls attachments
Posted: 15 Oct 2010, 09:13
by master7
Hi.
After update to version 1.2.3 I noticed that there is a problem witch downloading .xls attachments.
Attachments in my Mantis are stored in files. When I try to download .xls file from my server via FTP everything is ok, but when I try to open it via Mantis there is a problem. It's not opening properly.
Any suggestions?
Regards.
Master7
Re: Problem with xls attachments
Posted: 15 Oct 2010, 10:14
by atrol
master7 wrote:there is a problem. It's not opening properly.
What does this mean? Any error message?
Re: Problem with xls attachments
Posted: 15 Oct 2010, 11:36
by master7
atrol wrote:master7 wrote:there is a problem. It's not opening properly.
What does this mean? Any error message?
When I'm opening file (or opening downloaded file from Mantis) in Excell it's look like in attachment.
There is some message error at the begining.
Code: Select all
<p style="color:red">SYSTEM WARNING: finfo::finfo() [<a href='finfo.finfo'>finfo.finfo</a>]: Failed to load magic database at '/usr/share/misc/magic'.</p><p style="color:red">SYSTEM WARNING: finfo::file() [<a href='finfo.file'>finfo.file</a>]: The invalid fileinfo object.</p><p style="color:red">SYSTEM WARNING: Cannot modify header information - headers already sent by (output started at /var/www/usterka/core/error_api.php:202)</p>
In Fact this error message is added into a .xls file, at the beginning of this file. When I remove manually this erros message (ex. by Notepad), then I can open it normally via Excell.
Re: Problem with xls attachments
Posted: 15 Oct 2010, 14:33
by atrol
Re: Problem with xls attachments
Posted: 12 Nov 2010, 08:20
by master7
Thanks a lot, I corected this.
regards.
Master7
Re: Problem with xls attachments
Posted: 01 Apr 2011, 11:50
by walsh_e
I have a similar issue but in my case it seems like when I try to download an excel file or image file they're corrupted. I've attached one of the corrupt image files. In my case I migrated the system across from one hosting company to the other. I upgraded to the 1.2.4 version of Mantis and I imported the database successfully than migrated the file folders via FTP and changed the paths in the project page. however all attachments are now unreadable is there some encrypting hash that's used?
Re: Problem with xls attachments
Posted: 03 Apr 2011, 20:16
by atrol
walsh_e wrote: migrated the file folders via FTP
Did you set FTP to binary mode?