cannot download attachments file_download.php

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
woosa1578
Posts: 3
Joined: 09 Jan 2014, 15:34

cannot download attachments file_download.php

Post by woosa1578 »

Hi there

I got this problem lately. When I try to download an attachment in Chrome I get

"This webpage is not available

Hide details
The webpage at http://example.local/file_download.php? ... 8&type=bug might be temporarily down or it may have moved permanently to a new web address.
Error code: ERR_INVALID_RESPONSE"

and also I get this in error log

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 844414130419152 bytes) in /var/www/mantis/file_download.php on line 197, referer: http://example.local/view.php?id=10888

This happens with files in a specific issue and the size of the file is 29 MB and 20 MB. The specific issue has other files as attachments with smaller size such as 33,452 bytes and those files can be downloaded.

In a new issue I uploaded a .exe file with same size and I can download it. Then I uploaded the same file but with different extension .log and I could not download. Then I uploaded again a .exe and a .log file and I could download. I repeated this process because I thought it had to do with naming of files. However, after repeating I can download all files. But when tried to download on the actual specific issue I was getting the same errors as above.

I am saving in Database and the MantisBT version is 1.2.15.

Any ideas why this happens?

Thank you in advance
Post Reply