View Issue Details

This bug affects 2 person(s).
IDProjectCategoryView StatusLast Update
17811Bug reportsTheme editorpublic2022-01-11 17:09
Reporterbaltzis Assigned Togalads  
Status assignedResolutionopen 
Product Version5.2.x 
Summary17811: Theme options for logo and background images are not saved
DescriptionOn the global, as well as on the survey Settings/Theme Options tab, the options for images (for both logo and background), are not saved correctly. When saving, in the template_configuration table, in the database, appears the following (notice the "invalid"):

On the images tab (survey theme options), in the logo field appears the following (see screenshot1):
Inherit [inherited value: invalid:image:theme::files\logo.png]

As a result, no logo or background images appear, although defined, and in the nav_bar.twig, the "aSurveyInfo.options.brandlogofile" specification does work, unless the image file is explicitly specified as follows:
{{ image('./files/logo.png',, {"class": "logo img-responsive"}) }}

Besides, when extending a theme, while trying to define the survey theme options for the first time, the following error message appears (see screenshot2):
Error: Malformed JSON - field files_js must be either a JSON array or the string "inherit". Found "null".
Steps To ReproduceSteps to reproduce
1. Delete all the extended themes and make sure they are gone from the template_configuration table.
2. Extend a single theme.
3. Query the template_configuration table to find the new template config row.
4. Look in the options field. The default logo is displayed as \"brandlogofile\":\"invalid:image::generalfiles::logo_auth.png\"
---Optional steps
5. Upload a new image.
6. Select the uploaded image in the Theme Options tab (either global or in a survey), using the drop-down menu, and click Save.
7. In the options field, the new value for "brandlogofile" will also include "invalid".

Expected result
To display the selected logo and/or background image.

Actual result
No logo and/or no background image displayed. No values are saved in the Theme Options tab (on both global and survey levels).
TagsNo tags attached.
Bug heat36
Complete LimeSurvey version number (& build)5.2.6+211213
I will donate to the project if issue is resolvedNo
Database type & versionmysql, driver version mysqlnd 5.0.12-dev - 20150407 - Id: 38fea24f2847fa7519001be390c98ae0acafe387
Server OS (if known)Windows NT WIN-A34LDHDT6H4 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
Webserver software & version (if known)Microsoft-IIS/8.5
PHP Version7.2.7


related to 17704 closedgalads Upload of resources (images) does not work 
has duplicate 17810 closedgalads Theme options for logo and background images are not saved 
has duplicate 17809 closedgalads Theme options for logo and background images are not saved 
has duplicate 17808 closedgalads Theme options for images are not saved 

Users monitoring this issue

User List baltzis, tammo




2021-12-16 11:33


Screenshot1.png (29,504 bytes)   
Screenshot1.png (29,504 bytes)   
Screenshot2.png (125,403 bytes)


2021-12-16 12:44

administrator   ~67797

Hello, thank you for reporting this issue. Which specific theme does this bug affect?

Or does it happen for all themes?


2021-12-16 13:27

reporter   ~67804

It happens for all themes (this is why I am not referring to any specific). However, in another installation under Linux (on another machine), this issue does not appear.


2021-12-16 14:48

administrator   ~67806

Thank you for the information. It seems to be a windows issue because I could also not reproduce in Linux.


2021-12-17 09:57

reporter   ~67809

I confirmed that the same issue appears with "Skelvanilla" theme too. It is definitely not a theme-dependent issue. If that helps, my tests show that it concerns only images. All other options are saved correctly.


2021-12-17 16:46

developer   ~67811

Image or file + windows : this surely check something without DIRECTORY_SEPARATOR when save :)


2021-12-20 09:57

developer   ~67813

If Denis is right, can this be solved, please. It is hindering theme development enormously...


2021-12-20 10:05

developer   ~67814

I think it also relates to error 17704, since that also occurs on WAMP (Windows) only, it seems.


2022-01-11 14:57

developer   ~67959

Is there anyone working on this, please?


2022-01-11 15:42

developer   ~67963

Not me : i don't have windows on 5.X

Issue History

Date Modified Username Field Change
2021-12-16 11:33 baltzis New Issue
2021-12-16 11:33 baltzis File Added: Screenshot1.png
2021-12-16 11:33 baltzis File Added: Screenshot2.png
2021-12-16 12:44 galads Note Added: 67797
2021-12-16 12:44 galads Bug heat 0 => 2
2021-12-16 12:45 galads Assigned To => galads
2021-12-16 12:45 galads Status new => feedback
2021-12-16 12:46 galads Relationship added has duplicate 17810
2021-12-16 12:46 galads Issue Monitored: baltzis
2021-12-16 12:46 galads Bug heat 2 => 10
2021-12-16 12:49 galads Relationship added has duplicate 17809
2021-12-16 12:49 galads Bug heat 10 => 16
2021-12-16 12:49 galads Relationship added has duplicate 17808
2021-12-16 12:49 galads Bug heat 16 => 22
2021-12-16 13:27 baltzis Note Added: 67804
2021-12-16 13:27 baltzis Bug heat 22 => 24
2021-12-16 13:27 baltzis Status feedback => assigned
2021-12-16 14:48 galads Note Added: 67806
2021-12-17 09:57 baltzis Note Added: 67809
2021-12-17 16:46 DenisChenu Note Added: 67811
2021-12-17 16:46 DenisChenu Bug heat 24 => 26
2021-12-20 09:56 tammo Issue Monitored: tammo
2021-12-20 09:56 tammo Bug heat 26 => 28
2021-12-20 09:57 tammo Note Added: 67813
2021-12-20 09:57 tammo Bug heat 28 => 30
2021-12-20 09:57 guest Bug heat 30 => 36
2021-12-20 10:04 tammo Relationship added related to 17704
2021-12-20 10:05 tammo Note Added: 67814
2022-01-11 14:57 tammo Note Added: 67959
2022-01-11 15:42 DenisChenu Note Added: 67963
2022-01-11 17:09 galads Description Updated View Revisions
2022-01-11 17:09 galads Steps to Reproduce Updated View Revisions