Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Subquestion texts missing when exporting questions to .lsq

  • wisniman
  • wisniman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 days ago #197180 by wisniman
When exporting questions to .lsq via "Export" the subquestion texts seem to be missing.
Shouldn't they be stored in the .lsq-file or are they being kept elsewhere, e.g. in a separate translation file?

I exported the first question [multiplechoice] from Question Group 1 in the survey found on www.limesurvey.org/about-limesurvey/surv...stionnaires-in-excel and re-imported it to a new question. While the question texts and settings could be imported successfully, only the subquestion titles could be loaded, while the texts defaulted to "Some example subquestion":



Within the .lsq-file the individual subquestion information was limited as follows with no text information stored:
Code:
...
   <row>
    <qid><![CDATA[5720]]></qid>
    <parent_qid><![CDATA[5714]]></parent_qid>
    <sid><![CDATA[326845]]></sid>
    <gid><![CDATA[39]]></gid>
    <type><![CDATA[M]]></type>
    <title><![CDATA[A1]]></title>
    <preg/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[1]]></question_order>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
...

File Attachment:

File Name: limesurvey...5714.lsq
File Size:7 KB


Am I missing something about how to export and (re-)import questions and subquestions correctly?

I am running LimeSurvey Version 4.1.18+200416 on XAMPP for Windows 7.4.4 (Apache/2.4.41 (Win64), PHP 7.4.4, mysqlnd 7.4.4, 5.5.5-10.4.11-MariaDB).
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 days ago #197182 by holch
No, in the language files you'll only find those texts that are standard texts in Limesurvey (for the backend and the frontend). All texts that belong to an individual survey should be stored in the database and the subquestions should be exportet within the .LSQ file.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 days ago #197183 by holch
But from what I understand, this happened with a survey that was created via excel and imported.

Can you confirm that these subquestions were in the survey in the first place?
If they have been there, then let's go to the next check: What happens when you create your own question and export it.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 days ago #197184 by holch
Your problem lies somewhere here:
Code:
<title><![CDATA[A1]]></title>
    <preg/>

There is no opening tag for <preg/>.

I checked on the demo (LimeSurvey Version 4.1.16) and this is also happening there. As you have the latest version 4.1.18 and it happens there, this seems to be a bug.

Please file a bug report.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: wisniman
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 days ago #197196 by DenisChenu

holch wrote: There is no opening tag for <preg/>. .

Auclosed tag : it's not an issue (se br for html)


Else : already reported and fixed
github.com/LimeSurvey/LimeSurvey/commit/...51a216f1c553f3bf98c9

Update your version.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 days ago - 4 years 2 days ago #197225 by holch

Auclosed tag : it's not an issue (se br for html)


Well it actually is THE issue here. Between <preg> and <preg/> there should be the subquestion text, as far as I understand the .LSQ file. But it is missing.

So while it might not be an issue in terms of valid XML, it is an issue in terms of an LSQ file. The <preg> tag should be there and it should be followed by the subquestion text, correct?

Good that it is already fixed. I checked on the Demo site because I currently have no other LS 4 easily accessible and surprisingly it runs a fairly old version (LimeSurvey Version 4.1.16).

However, it seems to be a problem for Wisiman, who says he is running 4.1.18+200416 which seems to be the latest version, as of yesterday night.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 4 years 2 days ago by holch.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 days ago #197227 by holch
By the way, your link goes to a fix for LSG files, we are talking about LSQ files. As OP seems to have the latest version available, I would assume that this might have been fixed for LSG files, but maybe not for LSQ files. As I said, I currently rely on the Demo when it comes to LS4 and unfortunately the demo is not up to date...

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • wisniman
  • wisniman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 days ago #197296 by wisniman
Thank you holch!

Error occurs also with self created questions+subquestions, as you experienced.

I filed a bug report: bugs.limesurvey.org/view.php?id=16152
The following user(s) said Thank You: cdorin
The topic has been locked.
More
4 years 2 days ago #197297 by cdorin
LSG and TSV received recently some fixes. Thanks for reporting the issue in the bugs tracker as well :) . We will include it in the next round of bugs fixing.

Manual: manual.limesurvey.org/LimeSurvey_Manual
Bugs tracker: bugs.limesurvey.org/my_view_page.php
If you self-host and need help, contact one of our partners: limesurvey.com
Please do not contact me via PM - thank you.
The following user(s) said Thank You: wisniman
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose