View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20557Bug reportsRemoteControlpublic2026-08-07 14:56
Reporterbueffee Assigned Toc_schmitz  
PrioritynoneSeveritycrash 
Status resolvedResolutionfixed 
Product Version6.17.x 
Summary20557: calling get_question_properties without optional parameters crashes
Description

The PHP call $ls->get_question_properties($key,$code) results in

PHP Fatal error:  Uncaught Exception: Request error: Eigenschaft "DefaultValue.defaultvalue ist nicht definiert. in [...]/limesurvey/application/libraries/jsonRPCClient.php:162
Stack trace:
#0 [...]: jsonRPCClient->__call()
#1 [...]
#2 {main}
  thrown in [...]/limesurvey/application/libraries/jsonRPCClient.php on line 162

IMHO this can be fixed by replacing in application/helpers/remotecontrol/remotecontrol_handle.php, function get_question_properties the following part (located at the very end of the function):

                        $aResult['defaultvalue'] = DefaultValue::model()->with('defaultvaluel10ns')
                                                                        ->find(
                                                                            'qid = :qid AND defaultvaluel10ns.language = :language',
                                                                            array(':qid' => $iQuestionID, ':language' => $sLanguage)
                                                                        )
                                                                        ->defaultvalue;

by

                        $aResult['defaultvalue'] = DefaultValue::model()->with('defaultvaluel10ns')
                                                                        ->find(
                                                                            'qid = :qid AND defaultvaluel10ns.language = :language',
                                                                            array(':qid' => $iQuestionID, ':language' => $sLanguage)
                                                                        )
                                                                        ->defaultvaluel10ns[$sLanguage]->defaultvalue;
Steps To Reproduce

Steps to reproduce

(Replace this text with detailed step-by-step instructions on how to reproduce the issue)

Expected result

(Write here what you expected to happen)

Actual result

(Write here what happened instead)

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)6.17.6+260604
I will donate to the project if issue is resolvedNo
Story point estimate
Browser
Database type & version11.8.6-MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP VersionPHP 8.4.21

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-08-07 14:56

administrator   ~85394

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40122

Related Changesets

LimeSurvey: master de44c684

2026-08-07 14:56

c_schmitz


Details Diff
Fixed issue 20557: Calling RemoteControl function get_question_properties without optional parameters crashes Affected Issues
20557
mod - application/helpers/remotecontrol/remotecontrol_handle.php Diff File

Issue History

Date Modified Username Field Change
2026-06-10 10:58 bueffee New Issue
2026-08-07 14:56 c_schmitz Changeset attached => LimeSurvey master de44c684
2026-08-07 14:56 c_schmitz Note Added: 85394
2026-08-07 14:56 c_schmitz Assigned To => c_schmitz
2026-08-07 14:56 c_schmitz Status new => resolved
2026-08-07 14:56 c_schmitz Resolution open => fixed
2026-08-07 14:56 c_schmitz Bug heat 0 => 2