Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
17809Bug reportsTheme editorpublic2021-12-16 12:49
Reporterbaltzis Assigned Togalads  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version5.2.x 
Summary17809: Theme options for logo and background images are not saved
Description

On 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"):
\"brandlogofile\":\"invalid:image::generalfiles::logo_auth.png\"

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', aSurveyInfo.name, {"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 Reproduce

Steps 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 heat2
Complete LimeSurvey version number (& build)5.2.6+211213
I will donate to the project if issue is resolvedNo
BrowserChrome
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

Relationships

duplicate of 17811 closedgabrieljenik Theme options for logo and background images are not saved 

Activities

galads

galads

2021-12-16 12:49

reporter   ~67799

duplicate

Issue History

Date Modified Username Field Change
2021-12-16 11:28 baltzis New Issue
2021-12-16 12:49 galads Assigned To => galads
2021-12-16 12:49 galads Status new => closed
2021-12-16 12:49 galads Resolution open => fixed
2021-12-16 12:49 galads Note Added: 67799
2021-12-16 12:49 galads Bug heat 0 => 2
2021-12-16 12:49 galads Relationship added duplicate of 17811