ResponsiveFilemanager
ResponsiveFilemanager copied to clipboard
Fatal error: Uncaught Error: Call to undefined function mime_content_type()
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)
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.
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
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
thanks a lot