I am using using TinyMCE with responsive filemanager and the code is written in PHP but It gives 500 internal server error
Get the solution ↓↓↓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
/*
|
Answer
Answer
Answer
Answer
Answer
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: undefined array key php
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.