Remote control 2

More
5 years 4 weeks ago #85607 by talel
talel created the topic: Remote control 2
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 ...

Please Log in to join the conversation.

More
5 years 4 weeks ago #85660 by Nickko
Nickko replied the topic: Remote control 2
For french they have a specific forum.
With with software try you to use Limesurvey RC ?

Nickko
Ergonome / Usability expert

Please Log in to join the conversation.

More
5 years 4 weeks ago #85676 by talel
talel replied the topic: Remote control 2
thanks for your replie.
yes I'm trying to use Limesurvey remote control 2 .

Please Log in to join the conversation.

More
5 years 4 weeks ago #85681 by Nickko
Nickko replied the topic: Remote control 2
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

Please Log in to join the conversation.

More
5 years 3 weeks ago #85696 by talel
talel replied the topic: Remote control 2
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,...)?

Please Log in to join the conversation.

More
5 years 3 weeks ago #85713 by jweberhofer
jweberhofer replied the topic: Aw: Re: Remote control 2

Please Log in to join the conversation.

More
5 years 3 weeks ago - 5 years 3 weeks ago #85714 by talel
talel replied the topic: Aw: Re: Remote control 2
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: 5 years 3 weeks ago by talel.

Please Log in to join the conversation.

More
5 years 3 weeks ago #85715 by jweberhofer
jweberhofer replied the topic: Remote control 2
I'had a look on line 132: I think it could be related with php's allow_url_fopen setting.

Please Log in to join the conversation.

More
4 years 9 months ago #91080 by STTY
STTY replied the topic: Aw: Re: Remote control 2
What's the url for remotecontrol 2 using the jsonRPCCLient. Is it
the path http://host/limesury/application/controllers/admin/remotecontrol.php?

Please Log in to join the conversation.

More
4 years 9 months ago #91083 by mdekker
mdekker replied the topic: Aw: Re: Remote control 2
Depends on your config. If you go into the admin part, do you see ?r=admin or not?

---
Menno Dekker

Please Log in to join the conversation.

More
4 years 9 months ago #91146 by STTY
STTY replied the topic: Aw: Re: Remote control 2
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

Please Log in to join the conversation.

More
4 years 9 months ago #91159 by mdekker
mdekker replied the topic: Aw: Re: Remote control 2
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 following user(s) said Thank You: mabellaneda

Please Log in to join the conversation.

More
4 years 9 months ago #91166 by mdekker
mdekker replied the topic: Aw: Re: Remote control 2
In the next release the global settings where you enable the remote control (tab interfaces) will show you the url to use.

---
Menno Dekker

Please Log in to join the conversation.

More
4 years 9 months ago #91190 by Mazi
Mazi replied the topic: Aw: Re: Remote control 2

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)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 9 months ago #91234 by STTY
STTY replied the topic: Aw: Re: Remote control 2
The url is working:

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

am able to run the remotecontrol.php instance.

I'm using the Apache web server.

Thanks

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now