View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
06879Bug reportsRemoteControlpublic2012-11-16 10:40
Reporterrbauling0818 Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary06879: export_responses function does not work
Description

When I try to use the function export_responses it does not work it gives me one of two errors either
Exception: Request error: unknown method or incorrect parameters

or

Exception: Incorrect response id (request id: 1, response id: )

No matter what I change in the parameters it does not seem to work. I take out the Survey Id and the error goes away, but it display [status] => No Permission

I have attached a sample php file

TagsNo tags attached.
Attached Files
sample.php (622 bytes)   
<?php
require_once 'jsonRPCClient.php';
 
define( 'LS_BASEURL', 'limesurveyurl');
define( 'LS_USER', 'admin' );
define( 'LS_PASSWORD','password' )
 
$survey_id=96293;
$sSurveyLanguage = 'en';
$status = 'all';
$heading = 'code';
$responseType = 'short';
$doc_type= 'csv';
 
$myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'/admin/remotecontrol' );
$sSessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );
 
$export_responses = $myJSONRPCClient->export_responses($sSessionKey, $survey_id, $doc_type, $sSurveyLanguage, $status, $heading, $responseType);

print_r($export_responses);
?>
 
sample.php (622 bytes)   
Bug heat2
Complete LimeSurvey version number (& build)121115
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.1.61
Server OS (if known)Red Hat Enterprise Linux Server release 6.3
Webserver software & version (if known)Apache/2.2.15
PHP Version5.3.0

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-11-16 10:40

administrator   ~22251

New version 2.00+ Build 121116 released

Related Changesets

LimeSurvey: master ed6a0f8e

2012-11-13 18:20:48

c_schmitz

Details Diff
Merge pull request #52 from weberhofer/master

fixed some issues which caused the remote-controls csv-export not to work
Affected Issues
06879
mod - application/helpers/admin/exportresults_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-11-15 14:55 rbauling0818 New Issue
2012-11-15 14:55 rbauling0818 File Added: sample.php
2012-11-15 15:11 c_schmitz Assigned To => c_schmitz
2012-11-15 15:11 c_schmitz Status new => assigned
2012-11-15 15:39 c_schmitz Status assigned => resolved
2012-11-15 15:39 c_schmitz Fixed in Version => 2.00+
2012-11-15 15:39 c_schmitz Resolution open => fixed
2012-11-15 15:40 c_schmitz Changeset attached => LimeSurvey master ed6a0f8e
2012-11-16 10:40 c_schmitz Note Added: 22251
2012-11-16 10:40 c_schmitz Status resolved => closed