View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
19837Bug reportsComfortUpdatepublic2024-11-18 17:11
Reporter2BITS_PL Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version6.6.x 
Summary19837: DB Update: Undefined array key "user_status" (with debug enabled)
Description

I have updated the sources and am testing the DB update from version 490 to 623. The issue is cosmetic, related to the order of variable definitions in the User::scope() model.

The condition <code>if (App()->getConfig("DBVersion") < 495) {</code> should come first, because at DBVersion=490, the 'user_status' column does not exist.

After this condition, the $notExpiredScope variable should be defined, followed by the condition <code>if (App()->getConfig("DBVersion") < 619) {</code>. After that, the $userStatusType and $activeScope variables should be defined, right before the return statement.

Steps To Reproduce
  • source version 6.6.3
  • dbVersion: 490 (limesurvey v5.4.11)
  • enable debug mode = 1
  • run admin panel
TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)6.6.3+240909
I will donate to the project if issue is resolvedNo
Browser
Database type & versionSQL Server 2022
Server OS (if known)
Webserver software & version (if known)
PHP Versionv8.1.29 NTS x64

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2024-11-18 16:55

administrator   ~81415

This happens only if you are logged into the administration during update.
Problem is that we cannot prevent this as the user object can and will change during major updates.
I will add it to the instructions for the CE update. ("Log out of administration").

c_schmitz

c_schmitz

2024-11-18 17:11

administrator   ~81416

Updated manual page.

Issue History

Date Modified Username Field Change
2024-11-15 11:34 2BITS_PL New Issue
2024-11-18 16:55 c_schmitz Note Added: 81415
2024-11-18 16:55 c_schmitz Bug heat 0 => 2
2024-11-18 17:11 c_schmitz Assigned To => c_schmitz
2024-11-18 17:11 c_schmitz Status new => closed
2024-11-18 17:11 c_schmitz Resolution open => fixed
2024-11-18 17:11 c_schmitz Note Added: 81416