From: http://www.zettai.net/Forums/06/1067798714
Q:
I have installed gallery from gallery.sf.net. I get this warning when I run it... anyone know what might be the problem? Where shocould I set these variables? "Powered by gallery v1.4-pl2 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"
A:
See gallery FAQ 18: c.18. why do I get this warning: Your script possibly relies on a session side-effect which existed until PHP 4.2.3?
In PHP 4.2.3, they made a change to the way that the session code works that results in PHP generating a warning when a session is created. in order to resolve this, we have to update some code in Gallery. this warning has no effect, doesn't that it shows upon screen. you can make it go away by editing your php. INI and setting
Session. bug_compat_warn to off
And restart Apache.
If you don't have access to PhP. ini, add this line to your. htaccess
Php_flag session. bug_compat_warn off
This shoshould be fixed in future versions of gallery.
Regards