View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
20630Bug reportsTheme editorpublic2026-09-10 14:12
ReporterFreda Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version7.0.x 
Fixed in Version7.0.x 
Summary20630: Renaming a parent custom theme breaks child theme inheritance and leaves stale parent references
Description

When a custom theme that serves as the parent of another custom theme is renamed, any child themes that extend it continue to reference the original parent theme internally, even though the Theme Editor overview displays the parent's new name.

As a result, the child theme can no longer resolve inherited assets and becomes unusable in the Theme Editor. Attempting to edit, duplicate, extend, or reinstall the child theme results in errors indicating that inherited files or the parent theme cannot be found, even though the parent theme still exists under its new name.

Steps To Reproduce

Steps to reproduce

  1. Create a custom theme (ParentTheme) extending fruity_twentythree.
  2. Create a second custom theme (ChildTheme) extending ParentTheme.
  3. Rename ParentTheme using the Theme Editor.
  4. Attempt to edit, duplicate, extend, or reinstall ChildTheme.

Expected result

Renaming a parent theme should either:

update the parent (extends) references of all dependent child themes automatically, or
prevent renaming while dependent themes exist, or
present a clear validation message indicating that renaming the parent theme will invalidate dependent themes.

Actual result

The child theme cannot resolve its parent and errors such as the following are displayed:

Theme 'ChildTheme' was not found, can't find file: ./css/variations/theme_apple.css

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build).
I will donate to the project if issue is resolvedNo
Story point estimate0
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

eusweisker

eusweisker

2026-09-04 14:26

manager   ~85568

Step to reproduce 4 still can be partially fulfilled.
If the child theme ('child') is uninstalled and the parent theme ('parent') changes name (e.g. to 'parent_renamed'), child theme can't be reinstalled.
The name of the parent doesn't change in the "Extends" column of the deinstalled themes table (stays 'parent' instead of changing to 'parent_renamed').

Error message:
"You can't import the theme 'child' because 'parent' is not installed."

c_schmitz

c_schmitz

2026-09-04 14:58

administrator   ~85569

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

eusweisker

eusweisker

2026-09-04 16:25

manager   ~85577

Last edited: 2026-09-04 16:27

Successfully fixed and tested on master, version 7.0.14

LimeBot

LimeBot

2026-09-10 14:12

administrator   ~85638

Fixed in Release 7.0.15+260910

Related Changesets

LimeSurvey: master 7c87895b

2026-09-04 14:57

c_schmitz


Details Diff
Fixed issue 20630: Renaming a parent custom theme breaks child theme inheritance and leaves stale parent references Affected Issues
20630
mod - application/models/TemplateManifest.php Diff File

Issue History

Date Modified Username Field Change
2026-08-04 14:54 Freda New Issue
2026-08-04 14:54 Freda File Added: Screenshot 2026-08-04 at 12.11.32.png
2026-08-04 15:16 tibor.pacalat Assigned To => DenisChenu
2026-08-04 15:16 tibor.pacalat Status new => assigned
2026-08-04 15:32 c_schmitz Assigned To DenisChenu => c_schmitz
2026-08-04 15:33 c_schmitz Status assigned => ready for code review
2026-08-13 16:56 gabrieljenik Assigned To c_schmitz => tibor.pacalat
2026-08-13 16:56 gabrieljenik Status ready for code review => ready for testing
2026-09-04 13:56 eusweisker Assigned To tibor.pacalat => eusweisker
2026-09-04 14:26 eusweisker Note Added: 85568
2026-09-04 14:26 eusweisker Bug heat 0 => 2
2026-09-04 14:27 eusweisker Assigned To eusweisker => c_schmitz
2026-09-04 14:27 eusweisker Status ready for testing => assigned
2026-09-04 14:58 c_schmitz Changeset attached => LimeSurvey master 7c87895b
2026-09-04 14:58 c_schmitz Note Added: 85569
2026-09-04 14:58 c_schmitz Status assigned => resolved
2026-09-04 14:58 c_schmitz Resolution open => fixed
2026-09-04 14:58 c_schmitz Bug heat 2 => 4
2026-09-04 16:25 eusweisker Note Added: 85577
2026-09-04 16:26 eusweisker Status resolved => closed
2026-09-04 16:26 eusweisker Fixed in Version => 7.0.x
2026-09-04 16:27 eusweisker Note Edited: 85577
2026-09-07 12:12 eusweisker Status closed => resolved
2026-09-10 14:12 LimeBot Note Added: 85638
2026-09-10 14:12 LimeBot Status resolved => closed
2026-09-10 14:12 LimeBot Bug heat 4 => 6