Wiriing Editor Example Save Does Not Work
-
tacoman
Sorry:
POST:
{"id":1,"method":"listWirings","params":{"language":"jsBox"},"version":"json-rpc-2.0"}Reply:
{"id":1,"result":null,"error":"unknown method 'listWirings' or incorrect parameters"} -
eric.abouaf (at gmail)
Hi,
The sample php backend requires php 5.2. Could you give us your version ? (<?php phpinfo(); ?>)
Did you change the database username/password in backend/php/WiringEditor.php ?
-
tacoman
First of all - thanks so much for the prompt reply :)
my-macbook-pro:~ peyomp$ php --version
PHP 5.2.8 (cli) (built: Feb 5 2009 21:21:13)I did edit the WiringEditor.php.
-
eric.abouaf (at gmail)
quick again:
Could you try the phpinfo() through your webserver ? The cli and cgi versions might be different...
Anyway, the error only comes from the small backend/php/WiringEditor.php file, so you might try to debug it...
Can you see if the databse is queried ?
-
tacoman
Eric, I got it working. Thanks!
-
tacoman
Eric, one issue I was having is that the header information is incorrect in the POSTs from WiringEditor. You need to set it to application/json in YUI with this line:
YAHOO.util.Connect.setDefaultPostHeader('application/json');
I put that at the top of WiringEditor.js just after you assign Yahoo.util, and now any framework can read your YUI JSONRPC, not just PHP.
-
eric.abouaf (at gmail)
- Milestone set to 0.5.0
-
eric.abouaf (at gmail)
- State changed from new to resolved
I've added this line to the json-rpc adapter:
commits:
* http://github.com/neyric/wireit/commit/aab2620dae2c48dbb3834a06f41a... * http://github.com/neyric/wireit/commit/9708fdb155a1301afc472adad722...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.