View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20106Bug reportsSurvey editingpublic2026-01-14 07:58
Reporterriku Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status newResolutionopen 
Summary20106: PR 04118 breaks the loading of Survey options with force_xmlsettings_for_survey_rendering enabled.
Description

Specifically the changes on lines 709 and 712 in application/core/LSETwigViewRenderer.php now give result in 'N/A' for the theme's config.xml options: https://github.com/LimeSurvey/LimeSurvey/pull/4118/files#diff-13389663d7f722bfdc7f856fb756237f993648facfd80697d9fe6f241f40027bR709-R712.

The issue occurs as is_string(SimpleXMLElement Object) is false.

Reverting these two lines fixes the issue.

Steps To Reproduce

The easiest way to see this in action would be to compare how the theme settings are applied in either case.

Steps to reproduce

  1. Check that the theme settings apply properly without the force_xmlsettings_for_survey_rendering setting enabled. For example, with the 'vanilla' theme, ensure that the Survey container setting is set to Yes and container-md is used when displaying the Survey.
  2. Set 'force_xmlsettings_for_survey_rendering' => true in config.
  3. Check the Survey again.

Expected result

The Survey content is aligned within container-md as the 'vanilla' theme by default has the container value set to 'on' in it's config.xml

Actual result

The Survey container setting cannot be retrieved (results in N/A) and therefore the content is aligned in container-fluid (edge to edge), even though the 'vanilla' theme by default has the container value set to 'on' in it's config.xml.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)6.13.2 github
I will donate to the project if issue is resolvedNo
Browser
Database type & version10.11.11-MariaDB
Server OS (if known)
Webserver software & version (if known)Apache/2.4.62
PHP Version8.1.32

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2026-01-14 07:58

developer   ~84090

Previous dev are removed.
Set it as new.

Issue History

Date Modified Username Field Change
2025-05-15 14:02 riku New Issue
2025-05-15 16:27 tibor.pacalat Assigned To => marcolombardo
2025-05-15 16:27 tibor.pacalat Status new => assigned
2026-01-14 07:57 DenisChenu Assigned To marcolombardo => tibor.pacalat
2026-01-14 07:58 DenisChenu Status assigned => new
2026-01-14 07:58 DenisChenu Note Added: 84090
2026-01-14 07:58 DenisChenu Bug heat 0 => 2