1
Howdy,
I've a working XOOPS site that I am migrating to a dedicated server at GoDaddy. Once I got the files over I see they turn off global variables in their default installation. A number of modules like xcgallery no longer function correctly. I am looking for a server wide solution to this problem where I don't have to hand edit a few hundred files. GoDaddy uses plesk 8.0 to manage the site. It's runing 5.0.4 on Fedora Core 4.
I've tried a number of things to turn this globals on . In /etc/php.ini I added this
register_globals = on
In the vhost.conf file I added these to $xoopsroot and the modules/xcgal directories.
php_admin_value global_variables On
php_value register_globals 1
I have some code I found by googling around that sometime fixes the issue
if (!empty($_GET))
{
extract($_GET);
}
else if (!empty($HTTP_GET_VARS))
{
extract($HTTP_GET_VARS);
}
if (!empty($_POST))
{
extract($_POST);
}
else if (!empty($HTTP_POST_VARS))
{
extract($HTTP_POST_VARS);
}
I have bounced the server a couple of times, stopped and started apache and run the GoDaddy warm apache start fix
/usr/local/psa/admin/bin/websrvmng -a -v.
Phpinfo loaded called from a XOOPS module directory show register_globals on for the local and master value. So the server thinks it's installed..why does references to HTTP_POST_VARS/HTTP_GET_VARS still fail?