Page 1 of 1

Fatal error in Table.php, line 915

PostPosted: Wed Jan 28, 2009 12:49 pm
by sophistry
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

PostPosted: Wed Jan 28, 2009 3:15 pm
by shannah
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

PostPosted: Thu Jan 29, 2009 7:32 am
by sophistry
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