Giter VIP home page Giter VIP logo

php-transmission-class's People

php-transmission-class's Issues

Exception handling error

$ php tests.php
Fatal error: Wrong parameters for Exception([string $exception [, long $code 
]]) in /home/jolanvps/new/class/TransmissionRPC.class.php on line 574

If I change:

parent::__construct( $message, $code, $previous );

to:

parent::__construct( $message, $code);

then it works ok.

Original issue reported on code.google.com by [email protected] on 9 Jul 2010 at 2:34

409 Conflict

Whenever the library tries to get the session id. On line 422:

if ( ! $fp = fopen( $this->url, 'r', false, $context ) )    // Open a filepointer 
to the data, and use fgets to get the result

The problem is that when it fopens the server returns the 409 conflict message 
with the session ID but no file handle is returned to $fp because it was an 
error. How do I fix this?

Original issue reported on code.google.com by [email protected] on 21 Jul 2010 at 7:53

cleanRequestData modifies arguments causing a set call to not work as required

What steps will reproduce the problem?
1. Call the set function with multiple "files-wanted" values, such as 
$arguments[ 'files-wanted' ] = array( 0,1,2,3,4 );
2. Dump the evaluated value of "json_encode( $arguments );" before the call to 
cleanRequestData in the request function, and again afterwards to see the 
effect its having. 

File Id 0 ends up being dropped from the arguments, whilst all other numbers 
now have an associated key, which Transmission doesn't seem to like and ignores 
all values.  Also makes File Id 0 impossible to set.

What is the expected output? What do you see instead?
I expect: "files-wanted":[0,1,2,3,4]
I get   : "files-wanted":{"1":1,"2":2,"3":3,"4":4}

What version of the product are you using? On what operating system?
v0.3, Windows 7, PHP v5.2.17


Please provide any additional information below.

Its the same with a set request for "files-unwanted".
Single Ids on their own aren't affected, except for specifying an Id of 0, 
which as a result of being stripped out leaves the id list empty and as per the 
spec, means all files will be marked as wanted/unwanted instead.
Commenting out the call to cleanRequestData gets the result I expect, but 
breaks other functionality.

Original issue reported on code.google.com by [email protected] on 27 May 2011 at 2:04

Trying to get property of non-object

What steps will reproduce the problem?
1. Set return_as_array to true
2. Enable error reporting

What is the expected output? What do you see instead?
I get the error:

Notice: Trying to get property of non-object

I would expect to get no errors at all.


What version of the product are you using?
Version 0.3


Please provide any additional information below.

On line 605 you find:

    $this->rpc_version = self::sget()->arguments->rpc_version;

Replace that with:

    if ($this->return_as_array) {
        $this->rpc_version = $data['arguments']['rpc-version'];
    } else {
        $this->rpc_version = $data->arguments->rpc_version;
    }


Original issue reported on code.google.com by [email protected] on 23 Jun 2012 at 7:15

Unable to connect Exception thrown when using set-location to move across filesystems

What steps will reproduce the problem?
1. use move function to move torrent contents across filesystems
2. if data moved is > 200-300 MB, "Unable to Connect" Exception is thrown.

Data is still moved, even if multiple torrents.  Seems as though transmission 
doesn't send any sort of response until the request is complete causing fopen 
is timing out.  As an aside, I cannot reconnect to the RPC server until the 
request completes, although this is likely a function of transmission, rather 
than this library


Warning: fopen(http://localhost:9091/transmission/rpc): failed to open stream: 
HTTP request failed!  in /homedir/Development/down/TransmissionRPC.class.php on 
line 399

Original issue reported on code.google.com by [email protected] on 5 Dec 2010 at 3:00

We should get e-mail notifications!

What steps will reproduce the problem?
1. Commit a revision, post an issue
2. Wait...
3. Keep waiting...

What is the expected output? What do you see instead?
I expect something to get done. But it doesn't.

Please use labels and text to provide additional information.
Okay.

Original issue reported on code.google.com by [email protected] on 10 Jul 2010 at 2:21

MySql

Please add mysql function

name save in mysql
every time chek torrent downloaded allready or not

Original issue reported on code.google.com by [email protected] on 11 Apr 2011 at 12:14

Version of php require not shown.


What steps will reproduce the problem?
Version of php less than 5.2.10
rurning tests.pgp

Error:
The TransmissionRPC class requires PHP version {TransmissionRPC::MIN_PHPVER} or 
above.

What is the expected output? What do you see instead?
The TransmissionRPC class requires PHP version 5.2.10 or above.

What version of the product are you using? On what operating system?
ReadyNAS Duo PHP 5.2.0


Please provide any additional information below.
changed line 33 of TransmissionRPC.class.php
die( "The TransmissionRPC class requires PHP version 
".TransmissionRPC::MIN_PHPVER." or above." . PHP_EOL );

Original issue reported on code.google.com by [email protected] on 6 May 2011 at 9:31

can't connect

I'm no longer able to connect to transmission for some unknown reason:

$ php tests.php 
[ERROR] Unable to connect to http://localhost:9091/transmission/rpc

~/.config/transmission-daemon/settings.json has:

"rpc-authentication-required": false,
"rpc-enabled": true,
"rpc-port": 9091,
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": true,

and transmission-remote works:


$ transmission-remote -b -l
posting:
--------
{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}

--------
* Couldn't find host localhost in the .netrc file, using defaults
* About to connect() to localhost port 9091
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 9091
> POST /transmission/rpc HTTP/1.1
User-Agent: transmission-remote/2.01 (10898)
Host: localhost:9091
Accept: */*
Accept-Encoding: deflate, gzip
Content-Length: 233
Content-Type: application/x-www-form-urlencoded

{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}
< HTTP/1.1 409 Conflict
< Server: Transmission
< X-Transmission-Session-Id: dJO2nFr5lViQpp7QTESNZdiDAcpOgSzKG3rc3ftvwSgjPSQ6
< Date: Fri, 09 Jul 2010 02:39:05 GMT
< Content-Length: 580
< Content-Type: text/html; charset=ISO-8859-1
* Connection #0 to host localhost left intact
* Closing connection #0
posting:
--------
{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}

--------
* Couldn't find host localhost in the .netrc file, using defaults
* About to connect() to localhost port 9091
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 9091
> POST /transmission/rpc HTTP/1.1
User-Agent: transmission-remote/2.01 (10898)
Host: localhost:9091
Accept: */*
Accept-Encoding: deflate, gzip
X-Transmission-Session-Id: dJO2nFr5lViQpp7QTESNZdiDAcpOgSzKG3rc3ftvwSgjPSQ6
Content-Length: 233
Content-Type: application/x-www-form-urlencoded

{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}
< HTTP/1.1 200 OK
< Server: Transmission
< Content-Type: application/json; charset=UTF-8
< Date: Fri, 09 Jul 2010 02:39:05 GMT
< Content-Length: 57
* Connection #0 to host localhost left intact
got response (len 57):
--------
{"arguments":{"torrents":[]},"result":"success","tag":2}

--------
ID     Done       Have  ETA           Up    Down  Ratio  Status       Name
Sum:              None               0.0     0.0
* Closing connection #0

Original issue reported on code.google.com by [email protected] on 9 Jul 2010 at 2:41

Fatal error


use thepiratebay-example.php geting error


Found dvdrip episode..
Adding: Red.Dawn.1984.LiMiTED.SWESUB.DVDRip.XviD.AC3-Martin.Shareitall.s.. <br 
/>
<b>Fatal error</b>:  Wrong parameters for Exception([string $exception [, long 
$code ]]) in 
<b>/root/php-transmission-class-0.3/class/TransmissionRPC.class.php</b> on line 
<b>539</b><br />

Original issue reported on code.google.com by [email protected] on 9 Apr 2011 at 1:01

409 Conflict

When the library tries to get the session id. On line 422:

if ( ! $fp = fopen( $this->url, 'r', false, $context ) )    // Open a filepointer 
to the data, and use fgets to get the result

The problem is that when it fopens the server returns the 409 conflict message 
with the session ID but no file handle is returned to $fp because it was an 
error.

I found a similar issue tagged as Issue #6. But that one says we need PHP 5.2.6 
minimum. I am running on PHP 5.5.3. 

Please see the output of php -v:

PHP 5.3.3-7+squeeze6 with Suhosin-Patch (cli) (built: Jan 31 2012 19:30:53) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

I have commented the same on Issue #6. If you wish to handle it in the old 
Issue, please delete this one.

Original issue reported on code.google.com by [email protected] on 13 Feb 2012 at 7:51

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.