View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20127Bug reportsResponse browsingpublic2025-05-30 09:49
Reportergabrieljenik Assigned Togabrieljenik  
PrioritynoneSeveritycrash 
Status assignedResolutionopen 
Summary20127: Dump when browsing responses, with DEBUG enabled.
Description

See attachment

TagsNo tags attached.
Attached Files
PHP warning.pdf (264,301 bytes)
Bug heat4
Complete LimeSurvey version number (& build)6.4
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)
Webserver software & version (if known)
PHP Version6.13.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

gabrieljenik

gabrieljenik

2025-05-28 21:05

manager   ~82787

@DenisChenu Unsure what to do here.

This seems to be failing because there is a corruption in DB.
Maybe linked to #20054.

Question here is if this method should return null if no language is found for that answer.
(or if it should return an "N/A", or a "?" or a "", or just the answer for the first language).
I incline for null.

This only happens with DEBUG, so maybe this is expected: When DEBUG is set and there are inconsistencies, errors should pop up?

DenisChenu

DenisChenu

2025-05-30 09:49

developer   ~82792

This only happens with DEBUG, so maybe this is expected: When DEBUG is set and there are inconsistencies, errors should pop up?

My opinion about debug : it's a developer setting ! NOt a super admin or Survey administrator

Then :

  1. DB issue must not throw 500 error
  2. DB issue must have a way to be logged every time as error or warning (using Yii::log with specific categorie)
  3. Bonus : a warning must be shown to survey admin about an issue in DB
  4. Super bonus : a Survey option are allowed to Survey admin (not super admn) to automatically fix such DB issue ( i think i already report such feature : checkintegrity restriced to single survey)

Here : 1+2 are OK in my opinon.

Question here is if this method should return null if no language is found for that answer.
(or if it should return an "N/A", or a "?" or a "", or just the answer for the first language).

If exist In primary language but not in this language : code ? But NULL is OK too. fifty/fifty here .
If it does not exist in any language : NULL : 100%

Issue History

Date Modified Username Field Change
2025-05-28 17:01 gabrieljenik New Issue
2025-05-28 17:01 gabrieljenik File Added: PHP warning.pdf
2025-05-28 17:01 gabrieljenik Assigned To => gabrieljenik
2025-05-28 17:01 gabrieljenik Status new => assigned
2025-05-28 21:05 gabrieljenik Note Added: 82787
2025-05-28 21:05 gabrieljenik Bug heat 0 => 2
2025-05-30 09:49 DenisChenu Note Added: 82792
2025-05-30 09:49 DenisChenu Bug heat 2 => 4