I was trying to attach a file to Mantis because I was concerned about several problems within the forum about uploading bigger files...
Anyway... I uploaded a file of 1,67 MB. My Mantis is configured to handle files up to 2 MB.
Ok, so when I tried to upload the files, Mantis just stopped and returned a blank screen. It simply gave no response about what error could be happening... Just a plain blank screen appeared.
Has anybody gone through this?
Thank you!
P.S.: Small files work nicely... I uploaded a 400 KB file this week and it worked fine.
Upload attachment results in a clear screen...
Moderators: Developer, Contributor
Here's what I think is happening: PHP can be set to report the specifics of a runtime error or, for security reasons, to just barf and not say anything. Your installation is (properly) set to not report any php errors. In the php.ini file, find display_errors and turn it on. Restart Apache, then induce that error. The page will now give you a detailed report about what went wrong.
Be sure to turn that back off again if your web site is outside on the Big Bad Internet: It's a security risk.
Be sure to turn that back off again if your web site is outside on the Big Bad Internet: It's a security risk.
Nice work mroeder.
The result screen is blank because of the display_errors = Off in display_errors segment.
So I turned on the display_errors and induced the error again and received this response from Mantis:
I looked at that line and turns out to be:
Have you guys ever been through this? Is this a known bug? Am I missing something?
Thanks! :)
The result screen is blank because of the display_errors = Off in display_errors segment.
So I turned on the display_errors and induced the error again and received this response from Mantis:
Code: Select all
Fatal Error: 401 in (drive):\(path_to_mantis)\core\database_api.php on line 128.
Code: Select all
trigger_error( ERROR_DB_QUERY_FAILED, ERROR );
Thanks! :)
But the files you upload end up in a different folder: Each project can have its own folder for uploading files. (That's over in Manage Projects.) That directory has to exist and have permissions. It's complicated who allt he unix users are who write and read files, so I just set the upload directory permissions to 777.