View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20767Bug reportsSurvey editingpublic2026-10-14 16:47
Reporterginosupport Assigned Toc_schmitz  
PrioritynoneSeveritycrash 
Status resolvedResolutionfixed 
Product Version7.5.x 
Summary20767: Stracktrace in new editor
Description

There is a stacktrace when i click any survey based on the fruity theme with the new editor enabled:

REQUEST_URI=/rest/v1/survey-detail/674933
2026/10/13 15:16:52 [error] [php] simplexml_load_string(): Entity: line 1: parser error : Extra content at the end of the document (/var/www/limesurvey/application/models/TemplateManifest.php:1457)
Stack trace:
#0 /var/www/limesurvey/application/models/TemplateManifest.php(1457): simplexml_load_string()
#1 /var/www/limesurvey/application/models/services/SurveyThemeConfiguration.php(186): getOptionAttributes()
#2 /var/www/limesurvey/application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputSurveyDetail.php(406): LimeSurvey\Models\Services\SurveyThemeConfiguration->updateCommon()
#3 /var/www/limesurvey/application/libraries/Api/Command/V1/Transformer/Output/TransformerOutputSurveyDetail.php(212): LimeSurvey\Api\Command\V1\Transformer\Output\TransformerOutputSurveyDetail->transformThemeSettings()
#4 /var/www/limesurvey/application/libraries/Api/Command/V1/SurveyDetail.php(117): LimeSurvey\Api\Command\V1\Transformer\Output\TransformerOutputSurveyDetail->transform()
#5 /var/www/limesurvey/application/libraries/Api/Rest/Endpoint.php(119): LimeSurvey\Api\Command\V1\SurveyDetail->run()
#6 /var/www/limesurvey/application/controllers/RestController.php(42): LimeSurvey\Api\Rest\Endpoint->run()
#7 /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): RestController->run()
#8 /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): LSYii_Application->runController()
#9 /var/www/limesurvey/vendor/yiisoft/yii/framework/base/CApplication.php(185): LSYii_Application->processRequest()
#10 /var/www/limesurvey/index.php(161): LSYii_Application->run()

Steps To Reproduce

Steps to reproduce

Unsure how to reproduce exactly, it fails for all my surveys on one environment but works on another environment.
The working environment was updated via comfortupdate from 6.17.19 -> 7.3.0 -> 7.5.0 -> 7.5.1
The failing environment was updated in 1 go from 6.17.19 to 7.5.1 based on the process described in https://www.limesurvey.org/manual/Upgrading_from_a_previous_version

After adding some debugging, the simplexml_load_string function from the stacktrace is called with this as input:
<optgroup label="Locale server - Kern"><option class="font-ibm-sans" value="ibm-sans" data-font-package="ibm-sans" >IBM Sans</option><option class="font-ibm-serif" value="ibm-serif" data-font-package="ibm-serif" >IBM Plex Serif</option><option class="font-icomoon" value="icomoon" data-font-package="icomoon" >IcoMoon</option><option class="font-lato" value="lato" data-font-package="lato" >Lato</option><option class="font-news_cycle" value="news_cycle" data-font-package="news_cycle" >News Cycle</option><option class="font-noto" value="noto" data-font-package="noto" >Noto</option><option class="font-roboto" value="roboto" data-font-package="roboto" >Roboto</option><option class="font-source-sans-pro" value="source-sans-pro" data-font-package="source-sans-pro" >Source Sans Pro</option><option class="font-raleway" value="raleway" data-font-package="raleway" >Raleway</option><option class="font-ubuntu" value="ubuntu" data-font-package="ubuntu" >Ubuntu</option></optgroup><optgroup label="Locale server - Gebruiker"><option class="font-opensans" value="opensans" data-font-package="opensans" >Open Sans</option></optgroup>

This has 2 optgroup nodes, without a wrapper node, which seems to trigger the issue.

I get the same error trying to open the theme options from the fruity theme. This too works on the environment that i updated in multiple steps via comfortupdate, but does not work on the environment that was updated in 1 go via the manual process.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)7.5.1+261007
I will donate to the project if issue is resolvedNo
Browser
Database type & versionPostgres 17
Server OS (if known)
Webserver software & version (if known)
PHP Version8.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-10-14 16:45

administrator   ~86445

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40846

c_schmitz

c_schmitz

2026-10-14 16:47

administrator   ~86446

Bug was triggered by an additional user font existing in upload /fonts

Related Changesets

LimeSurvey: master 15fa2eb0

2026-10-14 16:44

c_schmitz


Details Diff
Fixed issue 20767: Surveys could not be opened in the new editor and theme options failed to load when a user font was installed
Dev Core and user font optgroups are wrapped in a root element before parsing, font labels and titles are escaped
Affected Issues
20767
mod - application/models/TemplateManifest.php Diff File
add - tests/unit/models/TemplateManifestFontOptionsTest.php Diff File

Issue History

Date Modified Username Field Change
2026-10-14 15:29 ginosupport New Issue
2026-10-14 16:42 c_schmitz Assigned To => c_schmitz
2026-10-14 16:42 c_schmitz Status new => assigned
2026-10-14 16:45 c_schmitz Changeset attached => LimeSurvey master 15fa2eb0
2026-10-14 16:45 c_schmitz Note Added: 86445
2026-10-14 16:45 c_schmitz Status assigned => resolved
2026-10-14 16:45 c_schmitz Resolution open => fixed
2026-10-14 16:45 c_schmitz Bug heat 0 => 2
2026-10-14 16:47 c_schmitz Note Added: 86446