Not a bug Importing style: The provided file was not a valid XML file

ShadyX

Well-known member
Hi, I just exported my style from a live 1.1 installation and tried to import it into a local 1.1 test site but I get this error:

The provided file was not a valid XML file. Please provide a valid XML file.
 

Mike

XenForo developer
Staff member
I can't reproduce this. I couldn't import the file you provided, due to unescaped CDATA close elements (]]>). I fixed those, imported the style, and exported it. These are now exported as "]-]->" (and fixed on import) as this was reported as a problem in 1.0.

Are you sure the file was exported from 1.1?
 

ShadyX

Well-known member
Yes I exported the style from adminforums which is using the latest 1.1 downloaded in the customer area.

So I would need to find and replace all ]]> to ]-]-> in the .xml file? Or could you pm me the fixed version?

Thanks.
 

Mike

XenForo developer
Staff member
Well, I'd like to be able to reproduce this and fix it as best as I can. Would it be possible to get FTP and admin CP access?
 

Mike

XenForo developer
Staff member
This is caused by an add-on manipulating the output when it shouldn't be.
 

Mike

XenForo developer
Staff member
No, I disabled all of the listeners via config.php and it didn't happen.
 

WebExp24h

New member
I meet solve same Mike! , When i install add one then i saw warning : The provided file was not a valid XML file. Please provide a valid XML file.
I can not install it, please help me . I have attach file xml bellow.

Thank you so much
 
Last edited by a moderator:
Top