error undefinited function mime_content_type

Hi to all, when i try to download a document it give me an error:

[07-Mar-2018 16:42:15 Europe/Belgrade] PHP Fatal error:  Uncaught Error: Call to undefined function mime_content_type() in E:\Siti\CRM\download.php:180
Stack trace:
#0 E:\Siti\CRM\include\MVC\Controller\SugarController.php(1014): require_once()
#1 E:\Siti\CRM\include\MVC\Controller\SugarController.php(465): SugarController->handleEntryPoint()
#2 E:\Siti\CRM\include\MVC\Controller\SugarController.php(373): SugarController->process()
#3 E:\Siti\CRM\include\MVC\SugarApplication.php(105): SugarController->execute()
#4 E:\Siti\CRM\index.php(52): SugarApplication->execute()
#5 {main}
  thrown in E:\Siti\CRM\download.php on line 180

Sems like mime_content_type() deprecated. what can i do?

See the discussion here

and there’s a fix in the middle of that, you can try it.

1 Like

You’re on Windows, so maybe you just have to turn on that PHP extension mentioned in the beginning of that GitHub Issue.

By the way, which is your PHP version?

7.1 of php