Problem with Relationship.ini
Posted: Mon May 12, 2008 12:33 pm
Hi,
I have been using xataface for sometime for a university research project and I have come up against a problem which I can't solve! I've looked through the forum for something similar but I can't seem to find anything.
The problem is basically that I have a local installation of dataface which works fine with the following relationship.ini
[Category]
tblFileCardCategories.FileCardID = "$FileCardID"
When I use this same code on the live site I get this error when opening the detail view of the table in question.
| // +----------------------------------------------------------------------+ // // require_once 'SQL/Compiler.php'; /** * An SQL Compiler to generate MySQL compliant SQL. */ class SQL_Compiler_mysql extends SQL_Compiler { function SQL_Compiler_mysql( $array = null ){ $this->SQL_Compiler($array); $this->type = 'mysql'; } /** * Wraps identifier in back-ticks. */ function compileIdent($value){ if ( strpos($value, '.') !== false ){ return implode('.',array_map(array(&$this, 'compileIdent'), explode('.', $value))); } switch ($value) { case '*' : return $value; default: return '`'.$value.'`'; } } }?>
Fatal error: Call to undefined method PEAR_Error::compile() in /Volumes/www/cddc/host/sigcis/atm/dataface/Dataface/Relationship.php on line 549
Is this something to do with the installation of MySQL on the host server? I can't seem to see what the issue is! BTW I might have made some hideous mistake as I am fairly new to all this.
Thanks for any help you can offer,
Robert
I have been using xataface for sometime for a university research project and I have come up against a problem which I can't solve! I've looked through the forum for something similar but I can't seem to find anything.
The problem is basically that I have a local installation of dataface which works fine with the following relationship.ini
[Category]
tblFileCardCategories.FileCardID = "$FileCardID"
When I use this same code on the live site I get this error when opening the detail view of the table in question.
| // +----------------------------------------------------------------------+ // // require_once 'SQL/Compiler.php'; /** * An SQL Compiler to generate MySQL compliant SQL. */ class SQL_Compiler_mysql extends SQL_Compiler { function SQL_Compiler_mysql( $array = null ){ $this->SQL_Compiler($array); $this->type = 'mysql'; } /** * Wraps identifier in back-ticks. */ function compileIdent($value){ if ( strpos($value, '.') !== false ){ return implode('.',array_map(array(&$this, 'compileIdent'), explode('.', $value))); } switch ($value) { case '*' : return $value; default: return '`'.$value.'`'; } } }?>
Fatal error: Call to undefined method PEAR_Error::compile() in /Volumes/www/cddc/host/sigcis/atm/dataface/Dataface/Relationship.php on line 549
Is this something to do with the installation of MySQL on the host server? I can't seem to see what the issue is! BTW I might have made some hideous mistake as I am fairly new to all this.
Thanks for any help you can offer,
Robert