Check out the LimeSurvey source code on GitHub!

This is not a valid LimeSurvey survey structure XML file.

More
6 years 2 weeks ago #56685 by waitz
I get a new strange error. I tried to copy an existing and working survey, but get the error: This is not a valid LimeSurvey survey structure XML file.

I also tried to export and import, and I get the same error. I have exported and imported several times before, without any problems, so I am surprised that this happened now...

I checked the data integrity on the top tool bar, and it was fine.

What can I do..?

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |

Please Log in to join the conversation.

More
6 years 2 weeks ago #56694 by Mazi
Does the problem show up when importing a survey that you just exported and did neither edit nor open at all?

Can you reproduce the problem with every survey?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 2 weeks ago #56710 by waitz
Hi

No, it seems to be connected to this survey. I created a new one, and I could copy and export/import it. It is just strange that I get the error now, which I haven't gotten before. Hmmm, wonder what I might have done...

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |

Please Log in to join the conversation.

More
6 years 2 weeks ago #56712 by waitz
I exported the survey to xml, and compared it in winmerge with an earlier version of the survey. I see in the new one that there are many incidents of:

between lines, which are not in the old one. Can this be the cause, and do you know what it might be about?

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |

Please Log in to join the conversation.

More
6 years 2 weeks ago #56715 by Mazi
This might be the cause if these additional characters break the XML structure.

I have never seen this though so I wonder where this comes from. Did you copy-paste content from MS Word?
Anything else that is special with this survey?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 2 weeks ago #56721 by waitz
No, I have only copied content from dreamweaver, if anything. I have made some changes since the last survey I have that works on import, but not structural things...

I tried to remove the characters and import it to Limesurvey again, but I could not import xml files, I understand?

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |

Please Log in to join the conversation.

More
6 years 2 weeks ago - 6 years 2 weeks ago #56722 by waitz
I have found it... I added a SSL trust logo on the welcoming page, and it has a script:
<script language="javascript" type="text/javascript">
//<![CDATA[
var tl_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/trustlogo.js" :
"http://www.trustlogo.com/trustlogo/javascript/trustlogo.js";
document.writeln('<scr' + 'ipt language="JavaScript" src="'+tl_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
When I remove the whole thing, it works.
It doesn't help to remove the commenting // at the beginning and the end, which I don't know why they are not there. But is CDATA not allowed?

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |
Last Edit: 6 years 2 weeks ago by waitz.

Please Log in to join the conversation.

More
6 years 2 weeks ago #56726 by tpartner
The CDATA is for very strict XHTML validation. It is commented out to hide it from old browsers that don't understand it. However, I don't think it is commented out quite correctly. Additionally I don't see any closing of the <script> tag. I think the whole thing should look like:
<script language="javascript" type="text/javascript">
	/*<![CDATA[*/
		var tl_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/trustlogo.js" :
		"http://www.trustlogo.com/trustlogo/javascript/trustlogo.js";
		document.writeln('<scr' + 'ipt language="JavaScript" src="'+tl_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
	/*]]>*/
</script>

Having said that, the JavaScript imported from "trust logo" may be causing problems. Should you trust it ? :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
6 years 2 weeks ago #56731 by waitz
He he, trust or not to trust ;)
I will take it up with the trustlogo company.

Thanks

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |

Please Log in to join the conversation.

More
6 years 2 weeks ago #56738 by Mazi
Thanks for your feedback. As said, the CDATA probably irritates the import and breaks the structure.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form