Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes on My version php #10

Open
eolandro opened this issue Mar 25, 2014 · 2 comments
Open

Changes on My version php #10

eolandro opened this issue Mar 25, 2014 · 2 comments

Comments

@eolandro
Copy link

helllo

On the server there is something sttrage :
in funtion
private function validate() {
.......
if (!isset($this->classes[$this->extension]) || !method_exists($this->classes[$this->extension],$this->request['method']) && $this->extension != "rpc"){
###hacks
if($this->request['method']!='listMethods'){
throw new Exception($this->errorCodes['methodNotFound']);
}###hacks

        };

........
}

i had to add the "if($this->request['method']!='listMethods'){" because fails to get the "listMethods" and raise "rpcException: -32601::Method not found" on Debian Unstable and PHP 5.5.9-1

@subutux
Copy link
Owner

subutux commented Apr 1, 2014

strange, I'm using the latest version (I've been updating it the past few days) in a project of mine and haven't had this problem.
Try to use the latest version. maybe I've fixed it in the past few days.

@blackmambahk
Copy link

Getting a similar related issue with latest version on the 'listMethods' call

line 227
if (!method_exists($this->classes[$this->extension],$this->request['method']) && $this->extension != "rpc"){

throws a php error
Notice: Undefined index: rpc in jsonRPC2Server.php on line 227

I wrapped the block of code with
if($this->request['method']!='listMethods'){

}

I was just using the demo ping/pong app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants