Getting mimetype error on upload.
Additional Environment Details
Hosting on MS Azure.
Getting this error when attempting to upload a file to an ansel field. This worked fine when on my dev linux environment. Fatal error: Uncaught Error: Call to undefined function BuzzingPixel\Ansel\Service\Sources\mime_content_type() in C:\inetpub\wwwroot\system\user\addons\ansel\Service\Sources\Ee.php:348 Stack trace: #0 [internal function]: BuzzingPixel\Ansel\Service\Sources\Ee->addFile(‘17’, ‘C:\inetpub\wwwr…’) #1 C:\inetpub\wwwroot\system\user\addons\ansel\Service\Sources\SourceRouter.php(87): call_user_func_array(Array, Array) #2 C:\inetpub\wwwroot\system\user\addons\ansel\Service\AnselImages\SaveRow.php(359): BuzzingPixel\Ansel\Service\Sources\SourceRouter->__call(‘addFile’, Array) #3 C:\inetpub\wwwroot\system\user\addons\ansel\Controller\Field\FieldSave.php(100): BuzzingPixel\Ansel\Service\AnselImages\SaveRow->save(Array, Object(BuzzingPixel\Ansel\Model\FieldSettings), ‘1’, 75, NULL, NULL) #4 C:\inetpub\wwwroot\system\user\addons\ansel\ft.ansel.php(554): BuzzingPixel\Ansel\Controller\Field\FieldSave->save(Array, ‘1’, 75) #5 C:\inetpub\wwwroot\system\ee\legacy\libraries\api\Api_channel_fields.php(409): Ansel_ft->post_save(Array) #6 in C:\inetpub\wwwroot\system\user\addons\ansel\Service\Sources\Ee.php on line 348
The extension(s) that provide the
mime_content_type() function are generally expected to be available in PHP. I would contact MS Azure support and let them know that they have a PHP configuration problem where the
mime_content_type() function is not available and you have software that is expecting it.
November 13, 2017, 2:03 pm
That’s helpful as well, it was actually fileinfo extension not being enabled. Thank you for the quick reply!
November 13, 2017, 2:39 pm
Great. Glad the issue was found!
November 13, 2017, 2:59 pm
Log In or Register to Comment
Your account with the old support system does not carry over to the new support system. The new system is all tied together and connected with your account for purchasing and licenses. If you have a license, you have an account and you can log in with that email address and password. If you have not set a new password yet, you can do so with the forgot password link. Very sorry for any inconvenience.