an issue with authentication

gkhairallah
gkhairallah's picture

Joined: 2002-11-15
Posts: 11
Posted: Wed, 2004-07-21 06:46

Hi,

I'm just trying to install a test instance of G2Alpha, and when I get to the authentication step, I create the login.txt and paste the code in it, and when i click on "Authenticate me" I get the following error: Fatal error: Call to undefined function: file_get_contents() in /var/www/html/gallery2/install/steps/AuthenticateStep.class on line 67

I thought it might have been a permissions/ownership error, so I changed the ownership to the same as all other files in the install directory, and even went up to chmod-ing login.txt to 777. unfortunately, that didn't work either. would anyone have any ideas as to what might be happening?
Thanks in advance for your help.

 
ThorstenSchmidt

Joined: 2003-06-03
Posts: 5
Posted: Wed, 2004-07-21 13:17

It looks like your PHP version is too old.
The missing function "file_get_contents()" is introduced in PHP 4.3.0.

 
Ingimar

Joined: 2004-07-21
Posts: 7
Posted: Wed, 2004-07-21 13:39
ThorstenSchmidt wrote:
It looks like your PHP version is too old.
The missing function "file_get_contents()" is introduced in PHP 4.3.0.

According to php.net, file_get_contents was introduced in PHP 4.3.0 so there could be two options for Gallery:

1. Use another function so that older versions of PHP work with Gallery.

2. Change the Gallery README file to reflect that PHP 4.3.0 or newer is required, not PHP 4.1.0 or newer as is stated in the file now.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-07-21 13:41

This has been fixed in CVS, but not in the Alpah tarball.

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Wed, 2004-07-21 13:41

I believe this was fixed a few days ago. If you download the newest copy from CVS, you should not have this issue anymore.

 
Ingimar

Joined: 2004-07-21
Posts: 7
Posted: Wed, 2004-07-21 13:46

Confirmed, with the CVS version I don't get this error. Thanks! :-)