relationships

A place for users and developers of the Xataface to discuss and receive support.

Postby dst01 » Wed Jun 07, 2006 1:57 pm

Hi Steve,

As in my previous post i mentioned i would follow your tutorial and install a FacultyofWidgetry db. I followed everything and i am at the point of configuring Dataface for the relationship and here is the error i get when clicking on the "Courses" tab in Program.

Any idea what could be causing this? My fields seem good on the DB and i double checked my relationships.ini
file.

Notice: Array to string conversion in /var/www/html/dataface-0.5.3/Dataface/Error.php on line 61

Notice: In Dataface_RelatedList constructor, the first argument is expected to be an object of type 'Dataface_Record' but received ''.
On line 51 of file /var/www/html/dataface-0.5.3/Dataface/RelatedList.php in function printstacktrace()
On line 691 of file /var/www/html/dataface-0.5.3/Dataface/TableView.php in function dataface_relatedlist(,Courses)
On line 646 of file /var/www/html/dataface-0.5.3/Dataface/TableView.php in function _relatedlist()
On line of file in function _browse()
On line 1101 of file /var/www/html/dataface-0.5.3/Dataface/TableView.php in function call_user_func(Array)
On line 1150 of file /var/www/html/dataface-0.5.3/Dataface/TableView.php in function _body()
On line 452 of file /var/www/html/dataface-0.5.3/Dataface/Application.php in function tohtml()
On line 5 of file /var/www/html/FacultyOfWidgetry/index.php in function display()
in /var/www/html/dataface-0.5.3/Dataface/RelatedList.php on line 51

Fatal error: Call to a member function on a non-object in /var/www/html/dataface-0.5.3/Dataface/RelatedList.php on line 60
dst01
 
Posts: 9
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Jun 07, 2006 4:31 pm

Hi,

Thanks for posting this. This is a bug. I have filed a bug report and uploaded a fix at http://framework.weblite.ca/development/issue-tracker/2

Best regards

Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby dst01 » Thu Jun 08, 2006 6:50 am

Steve,

I applied the fix and it corrected my error but i have no "Add New Courses" button in the upper left ?

let me know.

thanks
dst01
 
Posts: 9
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Jun 08, 2006 8:50 am

Hi,

A relationship acts between records. i.e. you must first add a program record before you can add any related records to the program.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby dst01 » Thu Jun 08, 2006 9:36 am

Steve,

Ok i added a program record and now i have the button but ! i now have this error.

Notice: Array to string conversion in /var/www/html/dataface-0.5.3/Dataface/Error.php on line 61
dst01
 
Posts: 9
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Jun 08, 2006 12:19 pm

Hi,

I have logged this in the issue tracker at http://framework.weblite.ca/development/issue-tracker/3. Please see there for the solution to this issue.

Best regards

Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Jun 08, 2006 12:20 pm

Hi,

I have logged this in the issue tracker at http://framework.weblite.ca/development/issue-tracker/3 . Please see there for the solution to this problem.

Best regards

Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby dst01 » Thu Jun 08, 2006 12:27 pm

ok im using 0.5.3r2 thats why!

when was 0.5.4 released ? because i just installed Dataface a few days ago.
dst01
 
Posts: 9
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Jun 08, 2006 1:05 pm

It was just released a couple of days ago.. maybe minutes after you downloaded 0.5.3r2.

Stay tuned for 0.6 also. It is the version that has been under development for the past few months. It will change a number of things in the Look & Feel so I need to create new tutorials before I release it. But it will be coming very soon. I'm already using it on 3 production systems.

Best regards

Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby dst01 » Thu Jun 08, 2006 2:12 pm

I installed 0.5.4 and i still have the error but now its about line 62 ?!

Notice: Object to string conversion in /var/www/html/dataface-0.5.4/Dataface/Error.php on line 62

im looking forward to seeing 0.6, as a suggestion for that version maybe you could include a *.sql file to create the db and populate it with some data ? this will save time and avoid mistakes for people wanting to try Dataface out and tinker with it!

Also maybe include some other sql files for the addons like relationships or what ever other example mods can be done?
dst01
 
Posts: 9
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Jun 08, 2006 3:37 pm

Hi,

Sorry, can't reproduce this behavior. I'm trying on windows, os x, solaris, and linux. Strange...

I guess it would be possible for someone to put together a .sql file to accompany the tutorial. It wouldn't be terribly difficult to do. I fear that those would just be more difficult for people to figure out, though.

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 30 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved