Fatal error in Table.php, line 915

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

Fatal error in Table.php, line 915

Postby sophistry » Wed Jan 28, 2009 12:49 pm

Hi Steve,
I'm getting an error with a new installation of 1.1.2

Fatal error: Call to undefined function df_db() in /home/fitzgera/www/brickyard/Dataface/Table.php on line 915

I'm running older versions of xataface on other databases on the same server. Is there a php.ini config that I'd need for newer versions?

Thanks for any help,
Rory
sophistry
 
Posts: 27
Joined: Mon May 19, 2008 11:20 am

Postby shannah » Wed Jan 28, 2009 3:15 pm

This is a very strange error since the df_db() function is defined in the dataface-public-api.php file which should be the first included in your index.php page.

Could be a permissions issue... or perhaps there was a problem when you uploaded the new version. Try uploading again.

There shouldn't be any php.ini changes necessary. If anything the new version should be more compatible with different types of php.ini file settings.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby sophistry » Thu Jan 29, 2009 7:32 am

Hey Steve,
I re-unpacked the 1.1.2 archive, then re-uploaded it to the server, ending up with the same result. I ended up copying the index.php from another (older) install of xataface, changed the parameters, and it came up fine!

It must have just been my edits to the original index.php file. I think my original path to public-api was wrong - I was assuming it was the web path, which would have been / instead of /home/username/etc...

It was stripped down to just this and nothing else:

Code: Select all
require_once 'include/functions.inc.php';
require_once '/full-path-to/dataface-public-api.php';
df_init(__FILE__, 'http://mywebsite.com');
$app =& Dataface_Application::getInstance();
$app->display();


Thanks Again, Steve!
Rory
sophistry
 
Posts: 27
Joined: Mon May 19, 2008 11:20 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 12 guests

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