View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17811 | Bug reports | Theme editor | public | 2021-12-16 11:33 | 2022-05-02 10:33 |
Reporter | baltzis | Assigned To | gabrieljenik | ||
Priority | high | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.2.x | ||||
Summary | 17811: 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"): On the images tab (survey theme options), in the logo field appears the following (see screenshot1): 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: Besides, when extending a theme, while trying to define the survey theme options for the first time, the following error message appears (see screenshot2): | ||||
Steps To Reproduce | Steps to reproduce
Expected resultTo display the selected logo and/or background image. Actual resultNo logo and/or no background image displayed. No values are saved in the Theme Options tab (on both global and survey levels). | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 50 | ||||
Complete LimeSurvey version number (& build) | 5.2.6+211213 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | mysql, 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 Version | 7.2.7 | ||||
related to | 17704 | closed | galads | Upload of resources (images) does not work |
has duplicate | 17810 | closed | galads | Theme options for logo and background images are not saved |
has duplicate | 17809 | closed | galads | Theme options for logo and background images are not saved |
has duplicate | 17808 | closed | galads | Theme options for images are not saved |
Hello, thank you for reporting this issue. Which specific theme does this bug affect? Or does it happen for all themes? |
|
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. |
|
Thank you for the information. It seems to be a windows issue because I could also not reproduce in Linux. |
|
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. |
|
Image or file + windows : this surely check something without DIRECTORY_SEPARATOR when save :) |
|
If Denis is right, can this be solved, please. It is hindering theme development enormously... |
|
I think it also relates to error 17704, since that also occurs on WAMP (Windows) only, it seems. |
|
Is there anyone working on this, please? |
|
Not me : i don't have windows on 5.X |
|
Is there any progress with this bug, please? No one using LimeSurvey on Windows will be able to develop custom themes. Very inconvenient. |
|
error still exists on ver. 5.2.10+220118, is anybody work on it ? |
|
Dear developer, please look into this. It is a regression from 3.x and I think it will not be very difficult to solve... |
|
Would it perhaps help to offer a donation if the issue is resolved? |
|
Hi, We are working on it. Thanks |
|
PR: https://github.com/LimeSurvey/LimeSurvey/pull/2336 Two problems found. |
|
@gabrieljenik: Thanks for the reply. This is very interesting and strange because the same problem does not appear in my other installation in Linux. --> Linux elpida3.it.auth.gr 4.15.0-176-generic #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022 x86_64 |
|
Could it be that 1 is the main problem that baltzis and I (and possibly others) encountered and that 2 was not (yet) encountered by us? |
|
Can you describe more about the theme and the logo path in the config.xml of it?
Sure. NUmber 2 should only appear on very specific situations. |
|
I am not sure what you are asking for. I am sending the config.xml for extends_bootswatch, as an example. Hopefully, this responds to your request. Please, let me know if you need more information. For the custom logo to appear, I have to specify the path explicitly in the nav_bar.twig: If I don't make any changes, the logo does not appear, because in the config.xml the specified file is not saved at all (see the tag <brandlogofile>). In addition, the field "Brandlogo file" in the options of the theme, appears blank, even if I specify the default theme logo (see attached screenshot). config.xml (2,248 bytes)
<?xml version="1.0" encoding="UTF-8"?> <!-- (¯`·._.·(¯`·._.· Bootswatch Theme Manifest ·._.·´¯)·._.·´¯) Base configuration for Vanilla Theme. The content of this file is imported into DB when you install the template. --> <config> <!-- Those metadata are displayed in the theme configuration page. --> <metadata> <name>extends_bootswatch</name> <title>Bootswatch Theme</title> <creationDate/> <author>baltzis</author> <authorEmail>baltzis@jour.auth.gr</authorEmail> <authorUrl>http://www.limesurvey.org</authorUrl> <copyright>Copyright (C) 2005 - 2016 LimeSurvey Gmbh, Inc. All rights reserved.</copyright> <license>GNU General Public License version 2 or later</license> <version>2.0</version> <apiVersion>3</apiVersion> <description><![CDATA[<strong>LimeSurvey Bootwatch Theme</strong><br>Based on BootsWatch Themes: <a href='https://bootswatch.com/3/'>Visit BootsWatch page</a> ]]></description> <last_update>2021-08-30 03:10:07</last_update> <extends>bootswatch</extends> <lastUpdate>2021-12-06 15:08:54</lastUpdate></metadata> <!-- Here the list of the css/js files to add to the template package. About packages in Yii: http://www.yiiframework.com/doc/api/1.1/CClientScript#packages-detail --> <files> <css> <add>css/ajaxify.css</add> <add>css/theme.css</add> <add>css/custom.css</add> </css> <js> <add>scripts/theme.js</add> <add>scripts/ajaxify.js</add> <add>scripts/custom.js</add> </js> <print_css> <add>css/print_theme.css</add> </print_css> </files> <!-- You can add here any option you want. It will be available in twig file via aSurveyInfo.options.youroptionname --> <!-- eg: Ajaxmode: will be available with aSurveyInfo.options.ajaxmode --> <options> <ajaxmode>on</ajaxmode> <brandlogo>on</brandlogo> <brandlogofile>./files/logo.png</brandlogofile> <container>on</container> </options> <!-- Here datas about how LimeSurvey should load the theme --> </config> |
|
Couple of questions. |
|
1) In step #2, I uploaded the logo_auth.png after extending the template (it appears on the right side - see screenshot). |
|
1) After uploading it, do you set it as logo on the theme options? |
|
As I tried to explain, the logo (ANY logo) is not displayed when set on the theme options. It appears only when forced in the twig file. I forced the logo in the twig file only after I established that LimeSurvey fails to save the path correctly in the theme options. Concerning the patch, I don't understand what you mean. I did not apply any patch, as I don't know how to do this. |
|
Hi Baltiz, I think the conversation got a little de-railed. I mentioned there was an issue that should be happening on both Win and Linux. So,my suggestion. What do you think? |
|
I am saying that the bug appears only on my Windows installation. Everything I have said concerns the Windows installation alone. The installation on Linux works just fine. I never said anything about the bug appearing in Linux and I was very specific about the bug NOT appearing in my Linux installation: see my notes #67804 and #68938 above. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33441 |
|
Fixed in Release 5.3.12+220502 |
|
LimeSurvey: master 3713129c 2022-04-27 11:09 Committer: GitHub Details Diff |
Fixed issue 17811: Theme options for logo and background images are not saved (#2336) Co-authored-by: encuestabizdevgit <devgit@encuesta.biz> |
Affected Issues 17811 |
|
mod - application/helpers/SurveyThemeHelper.php | Diff File | ||
mod - themes/survey/bootswatch/config.xml | Diff File | ||
mod - themes/survey/fruity/config.xml | Diff File | ||
mod - themes/survey/vanilla/config.xml | Diff File |
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 | |
2022-01-11 17:09 | galads | Steps to Reproduce Updated | |
2022-01-11 17:09 | galads | Zoho Project Synchronization | => |Yes| |
2022-03-13 18:29 | baltzis | Note Added: 68647 | |
2022-03-14 08:04 | galads | Zoho Project Synchronization | Yes => |Yes| |
2022-03-14 08:04 | DenisChenu | Issue Monitored: DenisChenu | |
2022-03-14 08:04 | DenisChenu | Bug heat | 36 => 38 |
2022-03-14 08:05 | galads | Zoho Project Synchronization | Yes => |
2022-03-14 08:06 | galads | Zoho Project Synchronization | => |Yes| |
2022-03-14 11:43 | lamacs | Note Added: 68660 | |
2022-03-14 11:43 | lamacs | File Added: image.png | |
2022-03-14 11:43 | lamacs | Bug heat | 38 => 40 |
2022-03-15 07:55 | galads | Zoho Project Synchronization | Yes => |
2022-03-15 07:56 | galads | Assigned To | galads => gabrieljenik |
2022-03-15 07:56 | galads | Zoho Project Synchronization | => |Yes| |
2022-04-06 16:41 | gabrieljenik | Priority | none => high |
2022-04-06 16:41 | gabrieljenik | Severity | minor => partial_block |
2022-04-06 16:41 | gabrieljenik | Zoho Project Synchronization | Yes => |Yes| |
2022-04-07 09:57 | tammo | Note Added: 68919 | |
2022-04-07 11:42 | baltzis | Note Added: 68920 | |
2022-04-07 15:28 | gabrieljenik | Note Added: 68926 | |
2022-04-07 15:28 | gabrieljenik | Bug heat | 40 => 42 |
2022-04-07 17:33 | gabrieljenik | Note Added: 68929 | |
2022-04-07 17:34 | gabrieljenik | Status | assigned => ready for testing |
2022-04-07 18:58 | baltzis | Note Added: 68938 | |
2022-04-08 17:18 | guest | Bug heat | 42 => 48 |
2022-04-09 10:59 | tammo | Note Added: 68961 | |
2022-04-11 16:16 | gabrieljenik | Note Added: 68995 | |
2022-04-12 09:50 | baltzis | Note Added: 68997 | |
2022-04-12 09:50 | baltzis | File Added: Screenshot 2022-04-12 104548.png | |
2022-04-12 09:50 | baltzis | File Added: config.xml | |
2022-04-12 21:11 | gabrieljenik | Note Added: 69021 | |
2022-04-12 21:48 | baltzis | Note Added: 69023 | |
2022-04-12 21:48 | baltzis | File Added: Screenshot 2022-04-12 224629.png | |
2022-04-12 22:28 | gabrieljenik | Note Added: 69024 | |
2022-04-13 07:55 | baltzis | Note Added: 69031 | |
2022-04-13 14:37 | gabrieljenik | Note Added: 69053 | |
2022-04-13 19:57 | baltzis | Note Added: 69064 | |
2022-04-27 09:09 | gabrieljenik | Changeset attached | => LimeSurvey master 3713129c |
2022-04-27 09:09 | gabrieljenik | Note Added: 69263 | |
2022-04-27 09:09 | gabrieljenik | Resolution | open => fixed |
2022-05-02 10:33 | LimeBot | Note Added: 69339 | |
2022-05-02 10:33 | LimeBot | Status | ready for testing => closed |
2022-05-02 10:33 | LimeBot | Bug heat | 48 => 50 |