View Issue Details

This issue affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20907Bug reportsImport/Exportpublic2026-11-28 16:54
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version7.12.x 
Summary20907: PHP error whan import invalid XML files
Description

*Steps to reproduce**

Label set

Expected result

Actual result

Additional information

Steps To Reproduce

Steps to reproduce

  1. Label sets > Import, choose a non-well-formed .lsl file (attached broken.lsl)
  2. Import

Participants

  1. Create survey > Import, choose broken_tokens.lsa (valid .lss and .lsr, non-well-formed .lst)
  2. Import

Timings

  1. Create survey > Import, choose broken_timings.lsa (valid .lss with timings enabled, valid .lsr, non-well-formed .lsi)
  2. Import

Expected result

An import error message, as for the other XML imports:

  • "This is not a valid LimeSurvey label set structure XML file."
  • "This is not a valid participant data XML file." : no survey created or survey created: show success lines and the error for token
  • "This is not a valid timings data XML file.": no survey created or survey created: show success lines and the error for rtoken

Actual result

PHP error page (simplexml_load_string(): Entity: line 5: parser error …). With debug

  • 500 error for lsl
  • Only error : This is not a valid participant data XML file. but no success for survey
  • This is not a valid timings data XML file. but no success for Survey.
TagsNo tags attached.
Attached Files
broken.lsl (125 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Label set</LimeSurveyDocType>
 <labelsets>
</document>
broken.lsl (125 bytes)   
broken_timings.lsa (3,869 bytes)
broken_tokens.lsa (3,864 bytes)
Bug heat0
Complete LimeSurvey version number (& build)7.12.1
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant
Git branch / Pull Request URLN/A

Users monitoring this issue

There are no users monitoring this issue.

Activities

Issue History

Date Modified Username Field Change
2026-11-28 16:51 DenisChenu New Issue
2026-11-28 16:51 DenisChenu File Added: broken.lsl
2026-11-28 16:51 DenisChenu File Added: broken_timings.lsa
2026-11-28 16:51 DenisChenu File Added: broken_tokens.lsa
2026-11-28 16:51 DenisChenu File Added: Capture d’écran du 2026-11-28 16-46-40.png
2026-11-28 16:51 DenisChenu File Added: Capture d’écran du 2026-11-28 16-46-58.png
2026-11-28 16:51 DenisChenu File Added: Capture d’écran du 2026-11-28 16-47-32.png
2026-11-28 16:51 DenisChenu File Added: Capture d’écran du 2026-11-28 16-47-55.png
2026-11-28 16:51 DenisChenu File Added: Capture d’écran du 2026-11-28 16-48-29.png
2026-11-28 16:54 DenisChenu Steps to Reproduce Updated