BuzzingPixel

Ansel for Craft

Ansel for EE

Treasury

Construct

Category Construct

Dashboard (open an issue here)

All Issues

My Issues

News Contact
Log in

Logged in as

Licenses Purchases Profile Change Password Billing Portal Admin
Log Out
Software
Ansel for Craft Ansel for EE Treasury Construct Category Construct
Support
Dashboard (open an issue here) All Issues My Issues
News Contact
Log in
Logged in as:
Licenses Purchases Profile Change Password Billing Portal Log Out
Dashboard All Issues My Issues
Support Dashboard
  1. Home
  2. Home
  3. Support Dashboard
  4. View Issue

Getting mimetype error on upload.

#66 opened by Torch

Subscribe

Details

Complete

Public Issue

Visibility: Public
3 replies
Last reply by TJ Draper
Created 11/13/2017 1:54 PM
Updated 11/13/2017 2:59 PM
Ansel for ExpressionEngine 2.0.10
CMS Version: 3.5.11
PHP Version: 7.1.7
Additional Environment Details:

Hosting on MS Azure.

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 the mime_content_type() function is not available and you have software that is expecting it.

    http://php.net/manual/en/function.mime-content-type.php

  • 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!

Use Markdown for formatting

Details

Complete

Public Issue

Visibility: Public
3 replies
Last reply by TJ Draper
Created 11/13/2017 1:54 PM
Updated 11/13/2017 2:59 PM
Ansel for ExpressionEngine 2.0.10
CMS Version: 3.5.11
PHP Version: 7.1.7
Additional Environment Details:

Hosting on MS Azure.

Cookie Policy
Privacy Policy
Terms of Service

© 2023 BuzzingPixel, LLC. All rights reserved.