View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20001Bug reportsTheme editorpublic2025-05-03 21:59
Reportermguzzinati Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionno change required 
Product Version6.6.x 
Summary20001: JavaScript error and "JavaScript disabled" warning in Theme Editor Welcome page preview.
Description

After a fresh installation of LimeSurvey, when opening the Theme Editor and previewing the Welcome page of any theme (e.g., Fruity), a warning message appears at the top of the preview:

"Caution: JavaScript execution is disabled in your browser or for this website. You may not be able to answer all questions in this survey. Please, verify your browser parameters."

This message is incorrect because JavaScript is fully enabled in the browser.

Additionally, the Welcome page preview displays with broken styles (misaligned elements, incorrect formatting), and the browser console logs multiple JavaScript errors, such as:

Steps To Reproduce

Steps to reproduce

Install a fresh version of LimeSurvey.

Login to the LimeSurvey administration panel.

Go to Configuration > Themes.

Select a theme, for example "Fruity".

Open the Theme Editor.

In the preview section of welcome screen, I can see the theme preview, but at the top of the preview I also see the following message:

"Caution: JavaScript execution is disabled in your browser or for this website. You may not be able to answer all questions in this survey. Please, verify your browser parameters."

Expected result

When opening the Theme Editor for a theme (e.g., Fruity), the Welcome page preview should appear correctly, fully styled according to the theme.
There should be no errors or warnings, and the layout, text, and design should reflect the selected theme without any visual or functional issues.

Actual result

After opening the Theme Editor and loading the preview of the Welcome page, the preview displays with the following issues:

At the top of the preview, the following warning message appears:

"Caution: JavaScript execution is disabled in your browser or for this website. You may not be able to answer all questions in this survey. Please, verify your browser parameters."

This message is incorrect, because JavaScript is fully enabled in the browser.

The Welcome page preview itself has graphical issues, including:

Some elements appear misaligned.
Certain styles are not applied correctly.
The overall appearance does not match the expected look of the selected theme.
The browser console reports several JavaScript errors, including:

Uncaught ReferenceError: LSvar is not defined
Uncaught TypeError: Cannot read properties of undefined (reading 'hideQuestionWithRelevanceSubQuestion')
Uncaught ReferenceError: activateLanguageChanger is not defined
Uncaught TypeError: Cannot read properties of undefined (reading 'init')

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)6.10.5
I will donate to the project if issue is resolvedNo
Browserfirefox, chrome
Database type & versionpostgres
Server OS (if known)
Webserver software & version (if known)
PHP Version8.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

mguzzinati

mguzzinati

2025-03-17 11:33

reporter   ~82257

I also encountered the same problem in version 6.12.0

mguzzinati

mguzzinati

2025-03-20 16:01

reporter   ~82299

I also encountered the same problem in version 6.12.1

mguzzinati

mguzzinati

2025-04-14 11:49

reporter   ~82421

sorry, is there any news? thanks

c_schmitz

c_schmitz

2025-04-29 13:27

administrator   ~82522

The message is part of the theme preview.
Naturally it only appears if a browser is not capable of JavaScript- it is in the preview to show how this message would look like and how it is styled.

mguzzinati

mguzzinati

2025-05-03 21:59

reporter   ~82561

Thank you for your reply.

I understand that the message is intended to demonstrate how the theme handles JavaScript-disabled browsers.
However, I would like to point out that in previous LimeSurvey versions, this message did not appear in the theme editor preview, unless JavaScript was actually disabled.

In the current version, this message is always shown at the top of the preview, even though JavaScript is enabled.
More importantly, the browser console shows several JavaScript errors (e.g., LSvar is not defined, init undefined, etc.), which likely prevent the preview from working correctly.

Because of these errors:

Any modification made in the editor is not reflected in the preview, making the theme editor practically unusable.

The visual preview does not update properly or appears broken, which defeats the purpose of having a live preview while editing.

I believe this is a regression and not intended behavior.
Let me know if I can provide more details, such as exact version numbers or further logs.

Issue History

Date Modified Username Field Change
2025-03-07 17:07 mguzzinati New Issue
2025-03-07 17:07 mguzzinati File Added: Screenshot 2025-03-07 170549.png
2025-03-07 17:07 mguzzinati File Added: Screenshot 2025-03-07 170659.png
2025-03-17 11:33 mguzzinati Note Added: 82257
2025-03-17 11:33 mguzzinati Bug heat 0 => 2
2025-03-20 16:01 mguzzinati Note Added: 82299
2025-04-14 11:49 mguzzinati Note Added: 82421
2025-04-29 13:27 c_schmitz Assigned To => c_schmitz
2025-04-29 13:27 c_schmitz Status new => closed
2025-04-29 13:27 c_schmitz Resolution open => no change required
2025-04-29 13:27 c_schmitz Note Added: 82522
2025-04-29 13:27 c_schmitz Bug heat 2 => 4
2025-05-03 21:59 mguzzinati Note Added: 82561