BoldMinded acquires Ansel, support ending for all add-ons. BoldMinded acquires Ansel, support ending for all add-ons. Read More →
Support has been discontinued. Issues remain available as an archive. Support has been discontinued. Issues remain available as an archive.
Getting mimetype error on upload.
#66 opened by Torch
Description
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
Replies
- TJ Draper
Replied 11/13/2017 2:03 PM, Edited 11/13/2017 2:59 PM
Hi,
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 themime_content_type()
function is not available and you have software that is expecting it. - Torch
Replied 11/13/2017 2:39 PM, Edited 11/13/2017 2:59 PM
That's helpful as well, it was actually fileinfo extension not being enabled. Thank you for the quick reply!
- TJ Draper
Replied 11/13/2017 2:59 PM
Great. Glad the issue was found!