View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
19128Bug reportsInstallationpublic2026-10-08 12:50
Reportertbart Assigned Toc_schmitz  
PrioritynoneSeverityblock 
Status resolvedResolutionfixed 
Product Version6.2.x 
Summary19128: Upgrading with incompatible themes breaks DB backup
Description

Coming from latest 3.x, I tried to upgrade to 6.2.9.
Up until DB version 403, the DB updates succeeded.

I get a warning then, "Theme '%s' has been uninstalled because it's not compatible with this LimeSurvey version."

This was expected, as the manual at https://manual.limesurvey.org/Major_version_upgrade mentions it ("All custom survey themes (this includes extended themes) will be uninstalled..".

The message is therefore correct, it just seems it did not actually get uninstalled, as the browser returns to the exact same page.
Enabled debug=2 and debugsql=1 in config.php, but no errors logged whatsoever.

application/models/TemplateConfig.php
916 public static function validateTheme($themeName, $themePath, bool $redirect = true): bool
917 {
918 // check compatability with current limesurvey version
919 $isCompatible = TemplateConfig::isCompatible($themePath);
920 if (!$isCompatible) {
921 self::uninstallThemesRecursive($themeName);
922 if ($redirect) {
923 App()->setFlashMessage(
924 sprintf(
925 gT("Theme '%s' has been uninstalled because it's not compatible with this LimeSurvey version."),
926 $themeName
927 ),
928 'error'
929 );
930 App()->getController()->redirect(["themeOptions/index", "#" => "surveythemes"]);
931 App()->end();
932 }
933 }

calls App()->end();

This seems to be the cause for .. well, the update to end :-)

If I comment lines 930 and 931, the DB upgrade finishes and LS seems to be usable. The mentioned theme is then indeed listed with an error that it is not compatible (but it is not below "Deprecated survey themes").

Steps To Reproduce

Steps to reproduce

Have a 3.x design that extends bootswatch. Have another design that extends this one. Upgrade to 6.2.9. Get stuck at the DB update.

Expected result

Update should finish successfully.

Actual result

Update stuck.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)6.2.9+230925
I will donate to the project if issue is resolvedNo
Browser
Database type & version10.6.12-MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version8.1.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-10-08 12:50

administrator   ~86265

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

Related Changesets

LimeSurvey: master 86a1dfb9

2026-10-08 12:49

c_schmitz


Details Diff
Fixed issue 19128: Upgrading from LimeSurvey 3.x got stuck at the database update when the default survey theme was not compatible
Dev The incompatible theme is now uninstalled when it is first used after the update
Affected Issues
19128
mod - application/helpers/update/updatedb_helper.php Diff File

Issue History

Date Modified Username Field Change
2023-09-27 19:07 tbart New Issue
2026-10-08 12:50 c_schmitz Changeset attached => LimeSurvey master 86a1dfb9
2026-10-08 12:50 c_schmitz Note Added: 86265
2026-10-08 12:50 c_schmitz Assigned To => c_schmitz
2026-10-08 12:50 c_schmitz Status new => resolved
2026-10-08 12:50 c_schmitz Resolution open => fixed
2026-10-08 12:50 c_schmitz Bug heat 0 => 2