PHP Fatal error: Uncaught Error: Call to undefined function mime_content_type() in C:\inetpub\wwwroot\openemr\library\sanitize.inc.php:117
Stack trace:
#0 C:\inetpub\wwwroot\openemr\controllers\C_Document.class.php(258): isWhiteFile('C:\\Windows\\Temp...')
#1 C:\inetpub\wwwroot\openemr\library\classes\Controller.class.php(147): C_Document->upload_action_process('1', '10')
#2 C:\inetpub\wwwroot\openemr\controller.php(6): Controller->act(Array)
#3 {main}
thrown in C:\inetpub\wwwroot\openemr\library\sanitize.inc.php on line 117
Gonna need more info that. What version of OpenEMR, on what OS, and how the install is managed.
looks like for windows have to do something special for fileinfo
installation according to php.net
thanks!!! that was it! Had to enable fileinfo
1 Like
I executed the command
sudo yum install php-fileinfo
from terminal
and restarted apache and the problem is fixed.
Windows only needs extension turn on in php.ini and should already be available by default.
-
Basic needs for openemr:
extension=bz2
extension=curl
extension=fileinfo
extension=gd
extension=gettext
extension=intl
extension=imap
extension=ldap
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
extension=pdo_mysql
extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
extension=soap
extension=sockets
extension=sodium
extension=xsl
extension=php_zip.dll