Trouble with relationship errors

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

Postby clester » Wed Dec 06, 2006 7:32 am

Hi,

I have been having trouble with dataface. I have a few simple tables with one to many relationships. The tree works ok but the tabs give me this:

Catchable fatal error: Object of class Dataface_SkinTool could not be converted to string in C:\wamp\www\dataface\Dataface\Error.php on line 64

DF Version : 0.6.9r1

tables are as follows:

CREATE TABLE `cards` (
`card_id` int(11) NOT NULL auto_increment,
`card_name` varchar(150) NOT NULL,
`primary_borrower` varchar(100) NOT NULL,
`secondary_borrower` varchar(100) default NULL,
`phone` varchar(10) default NULL,
`mobile` varchar(10) default NULL,
`fax` varchar(10) default NULL,
`email` varchar(50) default NULL,
`address` varchar(150) NOT NULL,
`suburb` varchar(50) NOT NULL,
`post_code` char(4) NOT NULL,
PRIMARY KEY (`card_id`),
KEY `card_name` (`card_name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

CREATE TABLE `loans` (
`loan_id` int(11) NOT NULL auto_increment,
`card_id` int(11) NOT NULL,
`lender` int(11) NOT NULL,
`loan_amount` decimal(10,0) default NULL,
`property_value` decimal(10,0) NOT NULL,
`secuity` text NOT NULL,
`lender_ref` varchar(20) NOT NULL default 'Unknown',
`status` int(11) NOT NULL default '0',
`start_date` timestamp NOT NULL default CURRENT_TIMESTAMP,
`processor` int(11) NOT NULL,
PRIMARY KEY (`loan_id`),
UNIQUE KEY `lender_ref` (`lender_ref`),
KEY `card_id` (`card_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

the relationship.ini in the cards dir:
[Loans]
loans.card_id = "$card_id"

Any help would be greatly appreciated

Regards
clester
 
Posts: 5
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Dec 06, 2006 12:07 pm

This error appears to be happening in the error handler - so there may be another error that is causing this one that we don't get to see. I have added an issue and uploaded a new version of Dataface_Error that should correct this issue - and allow us to see what the real error is.

http://framework.weblite.ca/development/issue-tracker/139

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

Postby clester » Wed Dec 06, 2006 4:51 pm

Hi Steve,

Thanks for your help. The patch has fixed the problem. There was no other error.
Perhaps its a windows-centric thing. I am using the latest wampserver stack for development.

A great product and great support.

Thanks again.
clester
 
Posts: 5
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 25 guests

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