View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20581Bug reportsResponse browsingpublic2026-06-29 16:48
Reporterfradeff Assigned To 
PrioritynoneSeveritycrash 
Status newResolutionopen 
Product Version6.17.x 
Summary20581: application/controllers/ResponsesController.php crashes (due to php 8.4)
Description

The display of responses generates a php error:
ResponsesController::actionDeleteAttachments(): Implicitly marking parameter $responseId as nullable is deprecated, the explicit nullable type must be used instead
/srv/www/formulaire.unige.ch/html_root/outils/limeemploi/application/controllers/ResponsesController.php(808)

I've patched it adding a "?" before the second "int" on line 808:

diff ResponsesController.php.00 ResponsesController.php
808c808

< public function actionDeleteAttachments(int $surveyId, int $responseId = null): void

public function actionDeleteAttachments(int $surveyId, ?int $responseId = null): void

I've checked, the error is still in v 6.17.10

Steps To Reproduce

Steps to reproduce

create form activate fille, display answers

Expected result

the table of answers

Actual result

a php error

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build) LimeSurvey Community Edition Version 6.17.9+260619
I will donate to the project if issue is resolvedNo
BrowserFF 152.0.3
Database type & versionmysqlnd 8.4.22
Server OS (if known)Debian GNU/Linux 12
Webserver software & version (if known)Apache 2
PHP VersionPHP Version 8.4.22

Users monitoring this issue

There are no users monitoring this issue.

Activities

fradeff

fradeff

2026-06-29 16:48

reporter   ~85104

idem with application/helpers/admin/export/SurveyDao.php quick fixed:

diff helpers/admin/export/SurveyDao.php.00 helpers/admin/export/SurveyDao.php
17c17
< public function loadSurveyById($id, $lang = null, FormattingOptions $oOptions = null)

public function loadSurveyById($id, $lang = null, ?FormattingOptions $oOptions = null)

Issue History

Date Modified Username Field Change
2026-06-29 14:05 fradeff New Issue
2026-06-29 16:48 fradeff Note Added: 85104
2026-06-29 16:48 fradeff Bug heat 0 => 2