Hi I am getting this 500 internal server error as soon as I click the responsivefilemanager upload file button in the TinyMCE toolbar.
Here are the screenshots of it:
I have the following js TinyMCE initialization code:
<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>
with this file structure:
-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
Here is my basic config.php code (the code is exactly the same as the default responsivefilemanager config file but with the uploads folder and the thumbnail folder URL edited, I couldn't post the whole code because StackOverflow doesn't allow more than 33000 characters on a post)
<?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/'
?>