View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20001Bug reportsTheme editorpublic2025-03-07 17:07
Reportermguzzinati Assigned To 
PrioritynoneSeveritypartial_block 
Status newResolutionopen 
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 heat0
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

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