问题描述
嗨,我在TinyMCE工具栏中单击响应文件管理器上载文件按钮时,立即收到这500个内部服务器错误。
我有以下js TinyMCE初始化代码:
<script>
tinymce.init({
selector: "textarea",plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak","searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking","table contextmenu directionality emoticons paste textcolor responsivefilemanager code codesample"
],toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect",toolbar2: "| responsivefilemanager | link unlink anchor | image media | codesample | forecolor backcolor | print preview code ",image_advtab: true,branding: false,external_filemanager_path: "plugins/tinymce/plugins/filemanager/",filemanager_title: "Filemanager for projecthub",external_plugins: {
"filemanager": "plugins/filemanager/plugin.min.js"
}
});
</script>
具有以下文件结构:
-project folder name
-index.php (which also apparently contains the javascript TinyMCE initialization code)
-plugins folder (which contains TinyMCE folder)
-TinyMCE folder
-plugins folder (which contains all the plugins for TinyMCE)
-responsivefilemanager folder
-config
-config.php file
这是我的基本config.php代码(该代码与默认的响应文件管理器配置文件完全相同,但是在编辑了上载文件夹和缩略图文件夹URL的情况下,由于StackOverflow不允许,我无法发布整个代码帖子中超过33000个字符)
<?php
/*
|--------------------------------------------------------------------------
| DON'T TOUCH (base url (only domain) of site).
|--------------------------------------------------------------------------
|
| without final / (DON'T TOUCH)
|
*/
'base_url' => ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"). "://". @$_SERVER['HTTP_HOST'],/*
|--------------------------------------------------------------------------
| path from base_url to base of upload folder
|--------------------------------------------------------------------------
|
| with start and final /
|
*/
'upload_dir' => '/projecthub/uploads/',/*
|--------------------------------------------------------------------------
| relative path from filemanager folder to upload folder
|--------------------------------------------------------------------------
|
| with final /
|
*/
'current_path' => '../../../../uploads/',/*
|--------------------------------------------------------------------------
| relative path from filemanager folder to thumbs folder
|--------------------------------------------------------------------------
|
| with final /
| DO NOT put inside upload folder
|
*/
'thumbs_base_path' => '../../../../thumb/',/*
|--------------------------------------------------------------------------
| path from base_url to base of thumbs folder
|--------------------------------------------------------------------------
|
| with final /
| DO NOT put inside upload folder
|
*/
'thumbs_upload_dir' => '../../../../thumb/'
?>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)