View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
20233Bug reportsQuestion themepublic2025-09-16 19:47
ReporterFreda Assigned Totibor.pacalat  
PrioritynoneSeveritycrash 
Status closedResolutionfixed 
Product Version6.6.x 
Summary20233: Question Themes not compatible with LimeSurvey 6
Description

Attempting to develop and use custom question themes in LimeSurvey 6 results in installation issues and PHP errors.

Notes from Reproduction

  • In config.xml, the <compatibility> block only contains 4.0 and 5.0, error persists even on adding 6.0.
  • Not properly setting the mother template may also be related.
  • Possibly the theme importer damages config.xml during upload.

Attached ZIP of the tested questiontheme_example

Steps To Reproduce

Steps to reproduce

  1. Download the example_question_theme from the official repo:
https://github.com/LimeSurvey/LimeSurvey/tree/develop/docs/themes/question_themes/example_question_theme
    https://github.com/LimeSurvey/LimeSurvey/tree/develop/docs/themes/questiontheme_example/survey/questions/answer/listradio
  2. Zip the folder and upload it in LimeSurvey.
  3. Install the theme.

Expected result

Question themes from the official repo or copies of built-in themes should install and function in LimeSurvey 6.

Actual result

On upload:
LS sometimes auto-uninstalls the theme with the message:
Theme 'questiontheme_example' has been uninstalled because it's not compatible with this LimeSurvey version.

config.xml seems to get corrupted on import.

TagsNo tags attached.
Attached Files
Bug heat10
Complete LimeSurvey version number (& build).
I will donate to the project if issue is resolvedNo
Browser
Database type & version.
Server OS (if known)
Webserver software & version (if known)
PHP Version.

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2025-08-25 14:09

administrator   ~83310

https://github.com/LimeSurvey/LimeSurvey/tree/develop/docs/themes/question_themes/example_question_theme does not even exist for me - also it is development branch.

gabrieljenik

gabrieljenik

2025-08-26 16:35

manager   ~83321

https://github.com/LimeSurvey/LimeSurvey/pull/4417/

The sample is theme is located in
docs/themes/questiontheme_example/survey/questions/answer/listradio/

tibor.pacalat

tibor.pacalat

2025-09-15 19:04

administrator   ~83406

@gabrieljenik please take a look at the video I sent you. There is an error when I first try to install the question theme.

gabrieljenik

gabrieljenik

2025-09-15 21:12

manager   ~83408

You tried to install the old zip?

Or created a zip from the uncompressed example question theme, named "questiontheme_example".?
docs/themes/questiontheme_example

thanks

tibor.pacalat

tibor.pacalat

2025-09-16 09:54

administrator   ~83409

I created a zip from docs/themes/questiontheme_example/survey/questions/answer/listradio

gabrieljenik

gabrieljenik

2025-09-16 15:42

manager   ~83412

The zip file should start including survey/questions/answer/listradio

tibor.pacalat

tibor.pacalat

2025-09-16 15:53

administrator   ~83414

Thanks Gabriel, I will try to test it like that.

guest

guest

2025-09-16 16:02

viewer   ~83415

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=39060

LimeBot

LimeBot

2025-09-16 19:47

administrator   ~83420

Fixed in Release 6.15.12+250916

Related Changesets

LimeSurvey: master d3bbcf3f

2025-09-16 16:02

Gabriel Jenik

Committer: GitHub


Details Diff
Fixed issue 20233: Question Themes not compatible with LimeSurvey 6 (04417)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
Affected Issues
20233
mod - application/models/services/ThemeQuestionAttributeProvider.php Diff File
mod - docs/themes/questiontheme_example/survey/questions/answer/listradio/config.xml Diff File
mod - docs/themes/questiontheme_example/survey/questions/answer/listradio/rows/answer_row.twig Diff File

Issue History

Date Modified Username Field Change
2025-08-21 09:44 Freda New Issue
2025-08-21 09:44 Freda File Added: questiontheme_example.zip
2025-08-25 14:08 c_schmitz Assigned To => gabrieljenik
2025-08-25 14:08 c_schmitz Status new => assigned
2025-08-25 14:09 c_schmitz Note Added: 83310
2025-08-25 14:09 c_schmitz Bug heat 0 => 2
2025-08-25 14:44 Freda Steps to Reproduce Updated
2025-08-26 16:35 gabrieljenik Assigned To gabrieljenik => DenisChenu
2025-08-26 16:35 gabrieljenik Status assigned => ready for code review
2025-08-26 16:35 gabrieljenik Note Added: 83321
2025-08-26 16:35 gabrieljenik Bug heat 2 => 4
2025-08-26 17:02 DenisChenu Assigned To DenisChenu => gabrieljenik
2025-08-26 17:02 DenisChenu Status ready for code review => in code review
2025-08-27 18:05 DenisChenu Assigned To gabrieljenik => tibor.pacalat
2025-08-27 18:05 DenisChenu Status in code review => ready for testing
2025-09-15 19:04 tibor.pacalat Note Added: 83406
2025-09-15 19:04 tibor.pacalat Bug heat 4 => 6
2025-09-15 21:12 gabrieljenik Note Added: 83408
2025-09-16 09:54 tibor.pacalat Note Added: 83409
2025-09-16 15:42 gabrieljenik Note Added: 83412
2025-09-16 15:53 tibor.pacalat Note Added: 83414
2025-09-16 16:02 Changeset attached => LimeSurvey master d3bbcf3f
2025-09-16 16:02 guest Note Added: 83415
2025-09-16 16:02 guest Bug heat 6 => 8
2025-09-16 16:02 tibor.pacalat Status ready for testing => resolved
2025-09-16 16:02 tibor.pacalat Resolution open => fixed
2025-09-16 19:47 LimeBot Note Added: 83420
2025-09-16 19:47 LimeBot Status resolved => closed
2025-09-16 19:47 LimeBot Bug heat 8 => 10