Re: Problem with client interface

Claude Heiland-Allen <[email protected]> Wed, 27 Apr 2011 10:52:42 +0100
Newsgroups gmane.comp.gnu.gift.general
Message-ID <[email protected]>
Hi,

On 27/04/11 02:25, Rahayu A Hamid wrote:
> [Wed Apr 27 11:24:19 2011] [error] [client ::1] PHP Notice:  Undefined variable: HTTP_SERVER_VARS in /var/www/index.php on line 31

This is the problem, and the cause is likely that your PHP installation 
is newer than the version that the GIFT PHP code was originally written 
for, and your PHP installation no longer supports the old ways (at least 
by default).

> So, how do I solve this????

This might be a temporary workaround (untested):

http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays

It would be better in the long run to update the PHP code to use the 
non-deprecated features:

http://www.php.net/manual/en/language.variables.superglobals.php

Hopefully this helps (I haven't tested it with GIFT but had to fix some 
similar issues in an unrelated project recently)...


Claude