Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Remote control 2

Remote control 2 3 years 11 months ago #85607

  • talel
  • talel's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi all;
i'm tring to use Remote control 2 with LS 2 RC9 but when i call ~/remotecontrol/test i get the following error :
"Internal Server Error

Unable to connect to http://localhost:81/limesurvey200RC9/admin/remotecontrol

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem."

After some investigation , i see that the problem is coming from
"$sSessionKey= $myJSONRPCClient->get_session_key('admin','password');"
in file ~\application\controllers\admin\remotecontrol.php line 67.

is there some one Who can help me ?
Thank you
... je parle français si vous voulez ...
The administrator has disabled public write access.

Remote control 2 3 years 11 months ago #85660

  • Nickko
  • Nickko's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 2789
  • Thank you received: 365
  • Karma: 78
For french they have a specific forum.
With with software try you to use Limesurvey RC ?
Nickko
Ergonome / Usability expert
The administrator has disabled public write access.

Remote control 2 3 years 11 months ago #85676

  • talel
  • talel's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
thanks for your replie.
yes I'm trying to use Limesurvey remote control 2 .
The administrator has disabled public write access.

Remote control 2 3 years 11 months ago #85681

  • Nickko
  • Nickko's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 2789
  • Thank you received: 365
  • Karma: 78
J'entends bien que tu essaies d'utiliser LS avec le remote control 2, mais comment ou avec quel autre outils ?
Nickko
Ergonome / Usability expert
The administrator has disabled public write access.

Remote control 2 3 years 11 months ago #85696

  • talel
  • talel's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
je suis juste au début ,j'ai installé limesurvey (plusieurs version) et j'ai suivis la documentation : docs.limesurvey.org/RemoteControl+2
j'ai activé JSON-RPC et j'ai voulu tester quelque commandes manuellement .
j'ai commencé par localhost:81/limesurvey200RC9/admin/remotecontrol/test et j'ai eu l'erreur mentionnée en haut.
déjà comment lancer une commande qui a des arguments via l'URL ? ~/remotecontrol/fct(param1,param2,...)?
The administrator has disabled public write access.

Aw: Re: Remote control 2 3 years 11 months ago #85713

I have added a php example to docs.limesurvey.org/RemoteControl+2#PHP_Example
The administrator has disabled public write access.

Aw: Re: Remote control 2 3 years 11 months ago #85714

  • talel
  • talel's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Thank you for the example.
i putted PHP code inside a file called RCP.php ,i changed require_once path to "jsonRPCClient.php" and i putted my user/password (admin/password).
when i run rcp.php i get the following error :

Warning: fopen(http://localhost/limesurvey200RC9//admin/remotecontrol) [function.fopen]: failed to open stream: HTTP request failed! in C:\xampp\htdocs\limesurvey200RC9\application\libraries\jsonRPCClient.php on line 132

Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://localhost/limesurvey200RC9//admin/remotecontrol' in C:\xampp\htdocs\limesurvey200RC9\application\libraries\jsonRPCClient.php:141 Stack trace: #0 [internal function]: jsonRPCClient->__call('get_session_key', Array) #1 C:\xampp\htdocs\limesurvey200RC9\rcp.php(16): jsonRPCClient->get_session_key('admin', 'password') #2 {main} thrown in C:\xampp\htdocs\limesurvey200RC9\application\libraries\jsonRPCClient.php on line 141

my machine is windows 7 and i trie to use remote control 2 with the same machine. (may be helps)
with an installation on windows server 2003 i can get session ID but with "Unknown method" error .
Last Edit: 3 years 11 months ago by talel.
The administrator has disabled public write access.

Remote control 2 3 years 11 months ago #85715

I'had a look on line 132: I think it could be related with php's allow_url_fopen setting.
The administrator has disabled public write access.

Aw: Re: Remote control 2 3 years 7 months ago #91080

  • STTY
  • STTY's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
What's the url for remotecontrol 2 using the jsonRPCCLient. Is it
the path http://host/limesury/application/controllers/admin/remotecontrol.php?
The administrator has disabled public write access.

Aw: Re: Remote control 2 3 years 7 months ago #91083

  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 343
  • Thank you received: 68
  • Karma: 38
Depends on your config. If you go into the admin part, do you see ?r=admin or not?
---
Menno Dekker
The administrator has disabled public write access.

Aw: Re: Remote control 2 3 years 7 months ago #91146

  • STTY
  • STTY's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks for the reply.

I was following the example in the remote control doc:
<?php
require_once 'jsonRPCClient.php';

define( 'LS_BASEURL', 'http://localhost/limesurvey/'); // adjust this one to your actual LimeSurvey URL

// instanciate a new client
$myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'/admin/remotecontrol' );

in my admin (localhost/limesurvey/application/controller/admin) folder, there is a file called remotecontrol.php, didn't see a folder called remotecontrol

there is a remotecontrol folder under ..../views/admin

The version of Limesurvey is 2.0+

Thanks
The administrator has disabled public write access.

Aw: Re: Remote control 2 3 years 7 months ago #91159

  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 343
  • Thank you received: 68
  • Karma: 38
If you log in to the admin part, you should take a close look at the url. If it is xxxxx/index.php/admin/ then you can add /remotecontrol after admin. If you have xxxx/index.php?r=admin then use that and add /remotecontrol after it.

Normally the first form from the docs works with apache webserver and .htaccess url rewriting. The other form with index.php?r= works for the other servers like IIS or nginx.
---
Menno Dekker
The administrator has disabled public write access.
The following user(s) said Thank You: mabellaneda

Aw: Re: Remote control 2 3 years 7 months ago #91166

  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 343
  • Thank you received: 68
  • Karma: 38
In the next release the global settings where you enable the remote control (tab interfaces) will show you the url to use.
---
Menno Dekker
The administrator has disabled public write access.

Aw: Re: Remote control 2 3 years 7 months ago #91190

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5977
  • Thank you received: 368
  • Karma: 260
mdekker wrote:
In the next release the global settings where you enable the remote control (tab interfaces) will show you the url to use.
Great improvement, thanks for enhancing Limesurvey.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Aw: Re: Remote control 2 3 years 7 months ago #91234

  • STTY
  • STTY's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
The url is working:

..../index.php/admin/remotecontrol

am able to run the remotecontrol.php instance.

I'm using the Apache web server.

Thanks
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.646 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form