View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
10244 | Bug reports | RemoteControl | public | 2016-01-23 00:12 | 2016-02-06 00:36 |
Reporter | stefanverweij | Assigned To | c_schmitz | ||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.06+ | ||||
Fixed in Version | 2.50.x | ||||
Summary | 10244: 500 Internal Server Error on remote control ->add_survey call | ||||
Description | When the json-RPC remote control is use with the 'add_survey' command is send with (what i believe are) valid parameters, a 500 internal Server Error is returned. When I add a 'wrong' parameter it does work, as in it returns a 'faulty parameter' message. It does create a survey in the surveys table in mysql, but it does not create a new surveytable, etcetera. When discussing with Ole on irc, currently setting the debug value to 2 and reloading the limesurvey site returns a php notice: Trying to get property of non-object, in common_helper, line 203, ( $surveynames[] = array_merge($result->attributes, $result->defaultlanguage->attributes); ) and the stacktrace.. | ||||
Steps To Reproduce | 1) setup remote control, get a valid session token 2) send $myJSONRPCClient->add_survey($sessionKey,123456,"Survey","en","G"); 3) get error: Warning: fopen(https://sitel/index.php/admin/remotecontrol): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error in | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 2.06+ Build 160123 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | chrome/safari | ||||
Database type & version | mysql v184 | ||||
Server OS (if known) | ubuntu 4.14 | ||||
Webserver software & version (if known) | Apache/2.4.7, | ||||
PHP Version | PHP Version 5.5.9 | ||||
Hi Stefan // Load default email templates for the chosen language The class "Limesurvey_lang" can not be found and variable "$aDefaultTexts" is not used anywhere in the code. So it looks like this part of code is not necessary and it broke "remote control" functionality at the same time. The functionality works fine if this part of code is removed |
|
@badaboom : yes but survey NEED survey_language_seetings ... else broken survey |
|
You have to pass language. In other case you will get exception line 119 So you have to pass language in any way and in this case we don't need default language. Look at the file application/helpers/remotecontrol/remotecontrol_handle.php :: add_survey function. I am not a developer of a survey. I had the same problem. I have disabled part of code described in my first comment and it works |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=17116 |
|
2.50+ Build 160206 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2016-01-23 00:12 | stefanverweij | New Issue | |
2016-02-03 10:36 |
|
Note Added: 34504 | |
2016-02-03 10:53 | DenisChenu | Note Added: 34513 | |
2016-02-03 11:05 |
|
Note Added: 34517 | |
2016-02-03 12:39 | c_schmitz | Assigned To | => c_schmitz |
2016-02-03 12:39 | c_schmitz | Status | new => assigned |
2016-02-03 12:40 | c_schmitz | Status | assigned => resolved |
2016-02-03 12:40 | c_schmitz | Fixed in Version | => 2.5 |
2016-02-03 12:40 | c_schmitz | Resolution | open => fixed |
2016-02-03 12:40 | c_schmitz | Changeset attached | => LimeSurvey master 9b6e00bb |
2016-02-03 12:40 | c_schmitz | Note Added: 34527 | |
2016-02-06 00:36 | c_schmitz | Note Added: 34667 | |
2016-02-06 00:36 | c_schmitz | Status | resolved => closed |