Wiriing Editor Example Save Does Not Work
Reported by tacoman | July 7th, 2009 @ 10:13 AM | 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 July 7th, 2009 @ 10:14 AM
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) July 7th, 2009 @ 11:11 AM
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 July 7th, 2009 @ 11:16 AM
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) July 7th, 2009 @ 11:25 AM
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 July 12th, 2009 @ 04:49 PM
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) July 13th, 2009 @ 03:18 PM
- Milestone set to 0.5.0
-
eric.abouaf (at gmail) July 21st, 2009 @ 01:19 AM
- 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