Hi. Could someone help me to identify why uploaded documents are unable to download, even the document exist under “upload” folder.
When you clic on the file, the browser shows a blank page, without any error.
Was this working before, and now it’s broken, or is this the first time you’re trying?
Check your ownership/permissions in the upload directory, or any .htaccess files in that directory.
Also check your logs for any errors:
suitecrm.log
php_errors.log
Hi.
Even the error seem to be an PHP issue, I made the suggested changes (using the extension=php_fileinfo.dll in php.ini) but still having same behavior.
This is the latest error:
[Tue Apr 10 10:47:05.524949 2018] [:error] [pid 27388] [client 192.168.0.189:56418] PHP Fatal error: Uncaught Error: Call to undefined function mime_content_type() in /srv/www/htdocs/new_suitecrm/download.php:180\nStack trace:\n#0 /srv/www/htdocs/new_suitecrm/include/MVC/Controller/SugarController.php(1014): require_once()\n#1 /srv/www/htdocs/new_suitecrm/include/MVC/Controller/SugarController.php(465): SugarController->handleEntryPoint()\n#2 /srv/www/htdocs/new_suitecrm/include/MVC/Controller/SugarController.php(373): SugarController->process()\n#3 /srv/www/htdocs/new_suitecrm/include/MVC/SugarApplication.php(109): SugarController->execute()\n#4 /srv/www/htdocs/new_suitecrm/index.php(52): SugarApplication->execute()\n#5 {main}\n thrown in /srv/www/htdocs/new_suitecrm/download.php on line 180, referer: http://crm.openitnet.com/new_suitecrm/index.php?module=Documents&action=index
There are a few suggestions here in this Issue
https://github.com/salesagility/SuiteCRM/issues/1863
see if you can get any one of those to work for you.
EDIT: please leave a comment on that issue saying you had the same problem, and how you did/didn’t solve it. That will help the devs know which old issues more deserve to be tackled first.
Gotcha.
Finally I got the issue.
You need to install the “php7-fileinfo” module under your PHP7, restart apache, pray a little bit, and hopefully it will be working again.
Thanks for your advice.
This solution worked for me. Thank you for posting. I use SuiteCRM on a Windows 2019 Server, PHP 7.3.10. Enabling php_fileinfo.dll did the trick. This information is missing on https://docs.suitecrm.com/admin/installation-guide/downloading-installing. It would be very useful to add it over there.
Hi Pieter
you are right, it would be good to update that page you link to.
Actually, you can update it - is a wiki page; all the doc pages are.