PDA

View Full Version : Squirrel mail php error



prophecy
11-13-2003, 09:43 AM
I get this on each page while using squirrel

Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

DirectAdmin Support
11-13-2003, 10:36 AM
Hello,

I think you'll either need to upgrade php, or enable register_globals.

upgrade php:

cd /usr/local/directadmin/customapache
rm -f configure.*
./build clean
./build update
./build all
enable register_globals:
edit /usr/local/lib/php.ini
find the line that says:
register_globals = Off

and change it to

register_globals = On

or just run:

/usr/bin/perl -pi -e 's/^register_globals = Off/register_globals = On/' /usr/local/lib/php.ini
John

prophecy
11-13-2003, 10:37 AM
Should have mentioned, I'm running php 4.3.2 so that should be fine shouldn't it?

DirectAdmin Support
11-13-2003, 10:41 AM
Ok, I confused 4.2.3 with 4.3.2 .. but try turning on register globals then and restart httpd
service httpd restartJohn

prophecy
11-13-2003, 11:42 AM
Fixed it, thanks.