View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
08357Bug reportsImport/Exportpublic2013-11-21 00:07
ReporterResearchOnBlogs Assigned To 
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
Product Version2.05 RC 
Summary08357: can't import a question group
Description

I you try to import a question group you get an error on a white screen:

This is not a valid LimeSurvey group structure XML file.

My import file is a lsg.file

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)131105
I will donate to the project if issue is resolvedNo
Browser
Database type & versionx
Server OS (if known)x
Webserver software & version (if known)x
PHP Versionxx
Git branch / Pull Request URL

Relationships

duplicate of 08358 closedc_schmitz import of question from 2.05 RC causes error 

Users monitoring this issue

There are no users monitoring this issue.

Activities

ResearchOnBlogs

ResearchOnBlogs

2013-11-12 15:42

reporter   ~27177

<?xml version="1.0" encoding="UTF-8"?>
<document>
<LimeSurveyDocType>Group</LimeSurveyDocType>
<DBVersion>171</DBVersion>
<languages>
<language>en</language>
</languages>
<groups>

this is the head of the file!!

And this is the function that do import:

function XMLImportGroup($sFullFilepath, $iNewSID)
{
$clang = Yii::app()->lang;

$aLanguagesSupported = array();  // this array will keep all the languages supported for the survey

$sBaseLanguage = Survey::model()->findByPk($iNewSID)->language;
$aLanguagesSupported[]=$sBaseLanguage;     // adds the base language to the list of supported languages
$aLanguagesSupported=array_merge($aLanguagesSupported,Survey::model()->findByPk($iNewSID)->additionalLanguages);

$xml = @simplexml_load_file($sFullFilepath);
if ($xml==false || $xml->LimeSurveyDocType!='Group') safeDie('This is not a valid LimeSurvey group structure XML file.');

I think it can't read the header

ResearchOnBlogs

ResearchOnBlogs

2013-11-12 16:07

reporter   ~27178

Solution !!
The debug stuff (<script>....) causes this error

Issue History

Date Modified Username Field Change
2013-11-12 14:38 ResearchOnBlogs New Issue
2013-11-12 15:42 ResearchOnBlogs Note Added: 27177
2013-11-12 16:07 ResearchOnBlogs Note Added: 27178
2013-11-21 00:07 c_schmitz Status new => closed
2013-11-21 00:07 c_schmitz Resolution open => duplicate
2013-11-21 00:07 c_schmitz Relationship added duplicate of 08358