Installation Troubles

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

Postby bobfelts » Wed Apr 04, 2007 10:50 pm

I have installed DataFace v. 13r4 & 12r1. I get the same failure when going to the dataface_info.php url.

Fatal error: Call to undefined function: file_get_contents() in /var/www/html/dataface/dataface_info.php on line 31

I have changed the owner and group of all dataface files to apache:apache, and insured the templates_c file is 775. I even tried to make templates_c 777 with no better results. All directories are 775 and all other files are 644. PHP version is 4.2.2, Apache is 1.3.27. I can not find any instance of conf.ini anywhere. There is a config.inc.php.

Where have I gone astray?

Thanks,
Bob
bobfelts
 
Posts: 10
Joined: Wed Dec 31, 1969 5:00 pm

Postby fcc » Thu Apr 05, 2007 12:40 am

Odd...why are you not just using the version listed on the home page:

https://sourceforge.net/project/showfiles.php?group_id=153729&package_id=170571&release_id=484974

You should be able to just unzip that into a folder on your webserver, chmod the necessary file and then point to the dataface_info.php and it should work.
fcc
 
Posts: 7
Joined: Wed Dec 31, 1969 5:00 pm

Postby fcc » Thu Apr 05, 2007 12:43 am

Opps I just realized that you probably were...just make sure you are downloading the file that says:

dataface-0.6.13r4.tar.gz

And any of the patches...the problem is that it can't find the file_get_contents() function. That most likely means you are missing out on some files. But that shouldn't be happening if you just download the file and unzip it.

Sorry I can't be of much help.
fcc
 
Posts: 7
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Apr 05, 2007 10:45 am

Hi Bob,

It appears as though your version of PHP is older and doesn't have the function 'file_get_contents' (http://www.php.net/file_get_contents).
You have a couple of options:
1. Upgrade your PHP to version 4.3 or higher.
2. Use the PHP_COMPAT pear class (http://pear.php.net/package/PHP_Compat).
There is a nice example in the docs for PHP_COMPAT that shows how to add the file_get_contents function to your PHP script.Ê You would add the code in the example to the beginning of your application's index.php file. (http://pear.php.net/manual/en/package.php.php-compat.intro.php)
Hope this helps a little.

-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 33 guests

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