Opened 16 years ago

Closed 16 years ago

#2087 closed Bug (duplicate)

Error loadig fckstyles.xml

Reported by: Bart McLeod Owned by:
Priority: Must have (possibly next milestone) Milestone:
Component: Core : Styles Version: FCKeditor 2.6 RC
Keywords: Cc:

Description

If I download the nightly build or any other 2.6rc version so far, I will get an error stating fckstyles.xml could not be loaded and if I would like to see the response details.

The response detail shows the contents of fckstyles.xml in good condition. It has a status of 200.

I know that this bug has been reported earlier by someone else, and that you did not look into it further, because it is working ok for you. For others, however, it is definitely NOT ok.

What I did as a solution is open internals/classes/fckxml_ie.js (the error applies to the gecko version as well!). I swapped the conditions that check for the status.

//the if conditions below are swapped compared to your version
		if ( oXmlHttp.status == 0 && oXmlHttp.readyState == 4 )
			this.DOMDocument = oXmlHttp.responseXML ;
		else if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 )
		{
			this.DOMDocument = FCKTools.CreateXmlObject( 'DOMDocument' ) ;
			this.DOMDocument.async = false ;
			this.DOMDocument.resolveExternals = false ;
			this.DOMDocument.loadXML( oXmlHttp.responseText ) ;
		}

I do not know if the swapping is ok, I suspect not. But it works.

Change History (2)

comment:1 Changed 16 years ago by Bart McLeod

Sorry I set the priority and the milestone. Please change these.

comment:2 Changed 16 years ago by Martin Kou

Keywords: fckstyles.xml xml styles removed
Milestone: FCKeditor 2.6.1
Resolution: duplicate
Status: newclosed

This is a dup of #1426.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy