Wiriing Editor Example Save Does Not Work
Reported by tacoman | 2009-07-07 10:13:38 UTC | in 0.5.0
I have created the mysql database 'wireit' and the table
'wirings.' I have configure the WiringEditor.php to use this
database.
However, saves do nothing, and listWirings POST of:
{id
results in:
What have I done wrong? I am hesitant to move forward customizing things without getting the basic example working.
Comments and changes to this ticket
-

tacoman 2009-07-07 10:14:43 UTC
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) 2009-07-07 11:11:37 UTC
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 2009-07-07 11:16:46 UTC
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) 2009-07-07 11:25:47 UTC
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 2009-07-12 16:49:51 UTC
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) 2009-07-13 15:18:38 UTC
- Milestone set to 0.5.0
-

eric.abouaf (at gmail) 2009-07-21 01:19:22 UTC
- 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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
WireIt is an open-source javascript library to create web wirable interfaces for dataflow applications, visual programming languages or graphical modeling.
The issue tracker has moved to GitHub:
http://github.com/neyric/wireit/issues