ResponsiveFilemanager icon indicating copy to clipboard operation
ResponsiveFilemanager copied to clipboard

Fatal error: Uncaught Error: Call to undefined function mime_content_type()

Open cfconsultancy opened this issue 7 years ago • 4 comments

Fatal error: Uncaught Error: Call to undefined function mime_content_type() in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\include\php_image_magician.php:2723

last version 9.12.0

way to many errors on different files (php 7.0)

cfconsultancy avatar Oct 09 '17 14:10 cfconsultancy

Is a php function (PHP 4 >= 4.3.0, PHP 5, PHP 7) http://php.net/manual/en/function.mime-content-type.php http://php.net/manual/en/function.mime-content-type.php Very strange your error.

Il giorno 09 ott 2017, alle ore 16:55, cfconsultancy [email protected] ha scritto:

Fatal error: Uncaught Error: Call to undefined function mime_content_type() in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\include\php_image_magician.php:2723

last version 9.12.0

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trippo/ResponsiveFilemanager/issues/393, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeWEfUIUpvA-svHEIDxllgjG0GodXBHks5sqjPngaJpZM4PynWO.

trippo avatar Oct 09 '17 15:10 trippo

Solved by using the extension=php_fileinfo.dll in php.ini But then a few notices will appear

used the fix upload.php

after that the following notices appear

PHP Notice: Undefined variable: storeFolder in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\upload.php on line 41

PHP Notice: Undefined variable: storeFolderThumb in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\upload.php on line 42

then after upading an image

PHP Notice: Undefined index: fldr in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\upload.php on line 27

PHP Notice: Undefined index: files in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\upload.php on line 102

mime_content_type(): Can only process string or stream arguments in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\upload.php on line 10

Undefined index: size in I:\Apache242\htdocs\prideproud\cms\tinymce\filemanager\upload.php on line 124

cfconsultancy avatar Oct 10 '17 10:10 cfconsultancy

Go to /filemanager/include/php_image_magician.php LIne Number 2724

find this code $extension = _mime_content_type($file); and replace with this $extension = pathinfo($file, PATHINFO_EXTENSION); 100% working solution

janbaskdev avatar Jun 27 '18 12:06 janbaskdev

thanks a lot

tridrv7 avatar Feb 21 '23 05:02 tridrv7