responsivefilemanager9 internal server error

心不动则不痛 提交于 2021-02-10 18:44:29

问题


I installed responsive filemanager 9 from here into my local tinymce 4.

My tinymce config looks like this:

<script>
tinymce.init({
  selector: 'textarea',
  height: 500,
  theme: 'modern',
  plugins: 'print preview fullpage searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor wordcount imagetools contextmenu colorpicker textpattern help',
  toolbar1: 'formatselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify  | numlist bullist outdent indent  | removeformat | responsivefilemanager',
  image_advtab: true,
  language: 'de',

  external_filemanager_path:"http://XXXX/info/upload/filemanager/",
  filemanager_title:"BSW Infoterminal Dateimanager" ,
  external_plugins: { "filemanager" : "http://XXXX/info/upload/filemanager/plugin.min.js"},

  templates: [
    { title: 'Test template 1', content: 'Test 1' },
    { title: 'Test template 2', content: 'Test 2' }
  ],
  content_css: [
    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
    '//www.tinymce.com/css/codepen.min.css'
  ]  
 });
 </script>

I can upload images over responsivefilemanager9, but i always get a Error Internal Server Error in frontend from RFM9. In the overview from uploaded files is no file shown.

In logs i see the following errors:

[14-Sep-2018 12:31:59 Europe/Rome] PHP Fatal error:  Uncaught Error: Call to undefined function mime_content_type() in C:\inetpub\wwwroot\info\upload\filemanager\include\php_image_magician.php:2723
Stack trace:
#0 C:\inetpub\wwwroot\info\upload\filemanager\include\php_image_magician.php(230): imageLib->openImage('../source/ich.j...')
#1 C:\inetpub\wwwroot\info\upload\filemanager\include\utils.php(403): imageLib->__construct('../source/ich.j...')
#2 C:\inetpub\wwwroot\info\upload\filemanager\UploadHandler.php(1436): create_img('../source/ich.j...', '../thumbs/ich.j...', 122, 91)
#3 C:\inetpub\wwwroot\info\upload\filemanager\UploadHandler.php(1387): UploadHandler->onUploadEnd(Array)
#4 C:\inetpub\wwwroot\info\upload\filemanager\UploadHandler.php(187): UploadHandler->post(false)
#5 C:\inetpub\wwwroot\info\upload\filemanager\UploadHandler.php(171): UploadHandler->initialize()
#6 C:\inetpub\wwwroot\info\upload\filemanager\upload.php(167): UploadHandler->__construct(Array, true, Array)
#7 {main}
  thrown in C:\inetpub\wwwroot\info\upload\filemanager\include\php_image_magician.php on line 2723


回答1:


You just don't have php extension fileinfo installed. You can enable it by adding the following string to your php.ini

extension=php_fileinfo.dll 

and restart your web server.

Here you can find some more details about the installation process: https://secure.php.net/manual/en/fileinfo.installation.php



来源:https://stackoverflow.com/questions/52330326/responsivefilemanager9-internal-server-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!