Search code examples
phpiis-7downloadmantisbug-tracker

Mantis Bugtracker: File download stops after 4Kb has been downloaded


I'm having an issue with Mantis Bugtracker (version 1.1.8), where file downloads only reach 4 Kb, and then stop. I don't know if this is a problem in the product itself, or in the PHP installation on the server. I've tried disabling output buffering (that was the only value close to 4Kb), but that didn't help.

The files are stored in the database. The application is running on IIS7 on Windows Server 2008 and Sql Server 2005, and the installed version of PHP is 5.2.11.

Does anyone have a solution that might help fix this?


Solution

  • Okay, I think that I'm just going to have to face the fact that I'm an idiot. I had changed the textsize and textlimit properties in php.ini for MSSQL, but I missed the semicolon in the beginning of the lines. I just uncommented those two lines, and now it works like a charm.

    ; Valid range 0 - 2147483647.  Default = 4096.
    mssql.textlimit = 2147483647 
    
    ; Valid range 0 - 2147483647.  Default = 4096.
    mssql.textsize = 2147483647