php - Call to undefined function mime_content_type() -
using suite crm 7.9.1 . newbie suitecrm.
i created person form in campaigns module . created . when tried download , got below error .
fatal error: uncaught error: call undefined function mime_content_type() in /home/testsite/public_html/download.php:180 stack trace: #0 /home/testsite/public_html/include/mvc/controller/sugarcontroller.php(1007): require_once() #1 /home/testsite/public_html/include/mvc/controller/sugarcontroller.php(458): sugarcontroller->handleentrypoint() #2 /home/testsite/public_html/include/mvc/controller/sugarcontroller.php(366): sugarcontroller->process() #3 /home/testsite/public_html/include/mvc/sugarapplication.php(108): sugarcontroller->execute() #4 /home/testsite/public_html/index.php(53): sugarapplication->execute() #5 {main} thrown in /home/testsite/public_html/download.php on line 180
when browsed on error got solution install extension . using php 7 .
adding extensions cpanel in live , safe .. shared host , affects other php projects .
when executed phpinfo found mime_type . below default_mimetype - text/html mbstring.http_output_conv_mimetypes - ^(text/|application/xhtml+xml)
this function has been removed. change download.php @ root. replace finfo_file(http://php.net/manual/en/function.finfo-file.php)
wiki
Comments
Post a Comment