Unable to Download the documents

Hi,

I had some problem in my Suitecrm, i have uploaded few documents like PDF/Doc to documents. when i try to download them it takes to new webpage and it show page not working. can any one help me to resolve this issue.

Can you provide some screen shots?

If it’s just a white screen, this suggests a bug or incorrect permissions/set up.

Thanks,

Will.

Hi Will,

Please find the attached screen shots.

if you didn’t touch the code, that’s a permissions/ownership problem, if you did touch the code, that’s a bad code somewhere

best regards

I also had same problem but still unable to resolve it :frowning:
I’m running suitecrm in localhost with bitnami wamp stack, given all permissions through right clicking on suitecrm folder > properties > security > edit > full control, but still I unable to download my uploaded documents.

webpage exactly display the same as sivaksk147 shows in attached snaps.

help pls.

check your apache logs, every http error throws a readable error in apache logs

best regards

Thanks alot for prompt response :slight_smile:

My error log attached for reference(Snap attached):

[Fri Aug 12 17:24:25.961504 2016] [:error] [pid 2912:tid 988] [client ::1:16825] PHP Notice: Undefined offset: 1 in C:\Bitnami\wampstack-5.6.24-0\apache2\htdocs\SuiteCRM77\download.php on line 110
[Fri Aug 12 17:24:25.961504 2016] [:error] [pid 2912:tid 988] [client ::1:16825] PHP Fatal error: Call to undefined function mime_content_type() in C:\Bitnami\wampstack-5.6.24-0\apache2\htdocs\SuiteCRM77\download.php on line 174

what is you php version?

read these posts https://wordpress.org/support/topic/plugin-risal-download-fatal-error-call-to-undefined-function-mime_content_type
http://stackoverflow.com/questions/14809054/mime-content-type-function-not-working

maybe your bitnami wampstack has no mime content type activated

best regards

PHP Version
5.6.24

did you see those posts regarding mime content type not activated in your php.ini?

best regards

:slight_smile: Thanks Bro @ Mikebeck
You Rock B)
After reading your suggested posts regarding “mime content type not activated in your php.ini?” I find solution & follow:

Windows users: just edit php.ini and uncomment this line:
extension=php_fileinfo.dll
Remember to restart Apache for new php.ini to take effect.

& my issue has been resolved :slight_smile:

3 Likes

Guys,

I am having the same issue and been advised this is a known bug? I get a HTTP 500 error when I try to download/view the doc.

I dont have a php.ini but instead a phprc which as per my host https://help.dreamhost.com/hc/en-us/articles/214200688-php-ini-overview is the same thing.

It has the below code.

upload_max_filesize = 66M
max_execution_time = 200
post_max_size = 120M 
display_errors = off
error_reporting = E_ALL & ~E_NOTICE  & ~E_DEPRECATED & ~E_WARNING
session.gc_maxlifetime = 14400
gc_maxlifetime = 14400
date.timezone = "Asia/Hong_Kong"
memory_limit = 256M

Wonder what I need to change to get it to work?

Thanks

with error reporting turned on I get Fatal error: Call to undefined function mime_content_type() in /home/xxx/xxx.com/download.php on line 174 so I guess its indeed a mime-type error, but I am still not sure what to add to or remove from the code?

you have the answer two post above yours :stuck_out_tongue:

best regards

Hi,

I actually tried that by editing the PHPRC with the above but that didnt work for me. I believe I am on Linux, so is there a different solution for that?

I also tried upgrading to PHP7 but that just seems to throw up all kinds of errors. I am using php 5.6 fast CGI.

Would really appreciate any help with this.

Just want to add my OS is Ubuntu 12.04 LTS

Thanks

try to follow the windows guide in your php.ini

best regards

Plese refer to the messages in my last few posts.

  1. There is no php.ini on my server.
  2. My server is Ubuntu.

Thanks

Oh, OK I see, my bad… Then ask you host provider to activate that extension for you

Best regards

1 Like

My Host has advised i can do this via the .Htaccess file with instructions here https://help.dreamhost.com/hc/en-us/articles/216736088-MIME-Types

Now, this page has a long list of mime types, would really appreciate if you could share some advice on which mime types should be added?

Thanks