I have an issue with CKFinder 2.1.1. When I click the button that's supposed to load it, it loads the window but it comes up with a response that says "It was not possible to load the XML response from the web server. The server returned an empty response." The javascript function that loads CKFinder is posted below. Any help would be greatly appreciated, thanks!
$('textarea.contentEditor').ckeditor(function(){}, { //Options~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resize_enabled : false, height : 600, fontSize_defaultLabel : '12', font_defaultLabel : 'Arial', //scayt_autoStartup : true, extraPlugins : 'contentPreview', contentsCss : [ $('#SITE_ROOT').html() + "/css/base/StandardWellness.css", $('#SITE_ROOT').html() + "/css/base/CKEditorOverrides.css" ], toolbar : [ { name: 'document', items : [ 'Source','-','DocProps','Print','-','Templates' ] }, { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] }, { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] }, '/', { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] }, { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] }, { name: 'links', items : [ 'Link','Unlink','Anchor' ] }, { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] }, '/', { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] }, { name: 'colors', items : [ 'TextColor','BGColor' ] }, { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }, { name: 'MyHealth', items : ['contentPreview']} ] }).ckeditor(function(){ //Callback ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ var editor = $('textarea.contentEditor').ckeditorGet(); CKFinder.setupCKEditor( editor, { basePath : '../ckfinder/', rememberLastFolder : true } ) ; CKEDITOR.on( 'dialogDefinition', function( ev ) { // Take the dialog name and its definition from the event data. var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'image' ) { dialogDefinition.removeContents( 'Upload' ); call_obj = new Object(); } if ( dialogName == 'flash' ) { dialogDefinition.removeContents( 'Upload' ); } if( dialogName == 'link' ) { dialogDefinition.removeContents( 'upload' ); } }); });
Re: Empty XML Response
PHP is often configured to not display error when they happen. As a result, if you for example forgot to add a semicolon in a PHP file and a fatal error occurs, the PHP script returns just a blank page.
To find out what's the problem you can do the following:
- enable error_reporting and set display_errors to "on" in php.ini
- check error logs.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Empty XML Response
Re: Empty XML Response
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Empty XML Response
Re: Empty XML Response
and check again.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Empty XML Response