View Issue Details

This bug affects 2 person(s).
 6
IDProjectCategoryView StatusLast Update
19740Bug reportsResponse browsingpublic2024-09-09 11:53
Reportertbart Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version6.4.x 
Summary19740: PHP deprecation warning (Passing null to parameter #2 deprecated) when viewing answer details
Description

When I set debug=2 in config.php, I get a deprecation warning when calling /responses/view?surveyId=123456&id=1 :

explode(): Passing null to parameter #2 ($string) of type string is deprecated
/application/helpers/common_helper.php(263)

This should be explicitly checked for.

I am also unable to navigate to "statistics" on the left navigation. This might be related.

This happens on 6.4.x, but I don't see any changes to this code location on 6.6.x, so current master seems to be affected as well.

Steps To Reproduce

Steps to reproduce

Set debug=2 in config.php
Add an answer to any survey.
Try to list its details.

Expected result

Get answer details.

Actual result

Get deprecation warning.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)6.4.11+240304
I will donate to the project if issue is resolvedNo
Browser
Database type & versionirrelevant
Server OS (if known)
Webserver software & version (if known)
PHP Version8.1.29

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-09-09 11:53 tbart New Issue
2024-09-17 10:04 prumand Bug heat 0 => 6