rtgui session_start error?

45 views
Skip to first unread message

crawln45

unread,
Mar 30, 2009, 11:30:03 AM3/30/09
to rtGui
I'm running freebsd 7.1, apache 1.341, mod_scsi 1.12, xmlrpc-c
1.06.30, rtorrent 0.7.9-1, rtgui 0.2.2-2, and php 5.2.8. I keep
getting this error:

Fatal error: Call to undefined function session_start() in /usr/local/
www/rtgui/index.php on line 8

any help would be appreciated.

Andrei Susanu

unread,
Mar 31, 2009, 3:10:09 AM3/31/09
to rt...@googlegroups.com
Two possible things...

1. Sessions support is commented out in the /etc/php.ini file.

2. There is a missing php-session software package. But I honestly don't know if this exists or not.


Andrei.

Anders Larsson

unread,
Apr 3, 2009, 10:02:30 AM4/3/09
to rt...@googlegroups.com
Hi!


I cant get it working with the rpc connect....

version

rTorrent 0.8.3/0.12.3


scgi_port = 127.0.0.1:5000


apache conf

SCGIMount /RPC2 127.0.0.1:5000


in apache log
193.15.240.60 - anders [03/Apr/2009:15:51:26 +0200] "GET
/rtgui/json.php?view=main HTTP/1.1" 200 38
193.15.240.60 - anders [03/Apr/2009:15:51:26 +0200] "GET /rtgui/ HTTP/1.1"
/ 200 901
193.15.240.60 - anders [03/Apr/2009:15:51:26 +0200] "GET
/ /rtgui/submodal/subModal.css HTTP/1.1" 304 -
193.15.240.60 - anders [03/Apr/2009:15:51:26 +0200] "GET
/rtgui/submodal/common.js HTTP/1.1" 304 -
193.15.240.60 - anders [03/Apr/2009:15:51:26 +0200] "GET
/ /rtgui/submodal/subModal.js HTTP/1.1" 304


xmlrpc localhost get_upload_rate
Error: HTTP response: 404 (-504)


php5-xmlrpc 5.2.9.dfsg.1-1

any hints ?

// Anders

orlando agostinho

unread,
Apr 3, 2009, 10:24:56 AM4/3/09
to rt...@googlegroups.com
Hi,

Did you check it out this first:  http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide?   In my case i followed the steps and everything was  fine! ;-)

Good luck!

Cheers!
Orlando Agostinho
Lisbon/Portugal

Anders Larsson

unread,
Apr 9, 2009, 8:10:27 AM4/9/09
to rt...@googlegroups.com
Thanks for the help.
i got it working now :) i got a syntax error..

Another quiz is how to setup Scheduled = watch_direcotry and multiple
download dirs ? i can do it in console but rtgui does not support that? cant
find it.
would be nice to have that setting in the gui

Regards Anders

llamaX

unread,
Apr 10, 2009, 12:06:58 PM4/10/09
to rtGui
On Apr 9, 8:10 am, Anders Larsson <and...@dio.nu> wrote:
> Another quiz is how to setup Scheduled = watch_direcotry and multiple
> download dirs ? i can do it in console but rtgui does not support that? cant
> find it.
> would be nice to have that setting in the gui

config.php, change $watchdir to an array. Something like this
(although key => value would likely be better, this just keeps
consistency with the way the feed array is set):
$watchdir[]=array("default", "/home/user/.rtorrent/torrent/");
$watchdir[]=array("Videos", "/home/user/.rtorrent/torrent/v/");
$watchdir[]=array("Pictures ;-)", "/home/user/.rtorrent/torrent/p/");

index.php, add this within the torrent upload form.
echo "<select name='watchdir'>\n";
foreach ($watchdir as $wd) {
echo "<option value='".$wd[0]."' />".$wd[0]."</option>\n";
}
echo "</select>\n";

control.php, replace the two lines that read:
if (move_uploaded_file($_FILES['uploadtorrent']['tmp_name'],
$watchdir.basename($_FILES['uploadtorrent']['name']))) {
$response = do_xmlrpc(xmlrpc_encode_request("load_start",array
($watchdir.basename($_FILES['uploadtorrent']['name']))));
...with this...
foreach ($watchdir as $wd) {
if ($wd[0] == $_POST['watchdir']) {
break;
}
}
if (move_uploaded_file($_FILES['uploadtorrent']['tmp_name'], $wd
[1].basename($_FILES['uploadtorrent']['name']))) {
$response = do_xmlrpc(xmlrpc_encode_request("load_start",array
($wd[1].basename($_FILES['uploadtorrent']['name']))));

Or something along those lines. Probably.
Reply all
Reply to author
Forward
0 new messages