View Issue Details

This issue affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20660Bug reportsQuestion editorpublic2026-08-26 10:49
ReporterAnnaAfter Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary20660: A server-side error was reported in a supplier survey.
Description

Our survey returned an internal 500 server error. It was related to the LimeSurvey platform rather than a single questionnaire.
Based on the available survey configuration the error was the file attachment (File Upload) field.
The survey contained an attachment question where respondents could upload supporting documents. During processing, LimeSurvey attempted to evaluate or validate the field value as if it were a numeric value. However, the attachment field returns text-based data (such as file metadata, filenames, or JSON content), which can cause calculation or validation functions to fail.
The issue became particularly visible when a respondent uploaded the maximum allowed number of attachments. In that scenario, the attachment field returned a larger structured value, and LimeSurvey failed while processing the response, resulting in an HTTP 500 error and a PHP exception similar to:fmod(): Argument #1 ($num1) must be of type float, string given.
As a result, survey submission failed even though the uploaded files themselves were valid.
The attachment field configuration was changed, especially:Maximum number of files allowed.
Reducing the maximum number of attachments or removing the attachment field from calculations and validation expressions should prevent the error from occurring again.
Note: The root-cause section above is based on the investigation and troubleshooting conclusions discussed around the issue. The enterprise search results confirm the existence of the LimeSurvey-related server error but do not contain a detailed technical diagnosis of the attachment-field processing failure.

Steps To Reproduce

Create a new survey
Set up a simple test survey with at least one question group.
Add a File Upload question
Insert a File Upload question (type: “File upload”) into the survey.
Do not Set maximum number of files to a value
Activate the survey
Make the survey live so that LimeSurvey processes responses normally.
The server returns:
HTTP 500 Internal Server Error
PHP exception similar to:
fmod(): Argument #1 ($num1) must be of type float, string given

TagsNo tags attached.
Attached Files
Bug heat0
Complete LimeSurvey version number (& build)6.16.9&260217
I will donate to the project if issue is resolvedNo
Story point estimate0
Browser
Database type & version10.5.29-MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version 8.2.32

Users monitoring this issue

There are no users monitoring this issue.

Activities

Issue History

Date Modified Username Field Change
2026-08-26 10:49 AnnaAfter New Issue
2026-08-26 10:49 AnnaAfter File Added: limesurvey_survey_949849.lss