"You can disable this functionality.." <--How
Jester2000
Joined: 2003-06-24
Posts: 40 |
Posted: Tue, 2003-06-24 15:17 |
At the bottom of my Gallery I get this warning message: 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 My gallery seems to be working fine, and I don't have access or anything to update to the newest PHP... so I think that I want to disable this functionality. But how do you set session.bug_compat_42 or session.bug_compat_warn to off?? Thanks, ---- I'm not sure about some of those... but I got some info off NETCRAFT about my server: Web Server/0.1 (Unix) PHP/4.3.0 mod_gzip/1.3.19.1a mod_fastcgi/2.2.12 mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.6d on Linux. Go here for more info about the server: |
|
Posts: 13451
One way is checking FAQ C.18
Posts: 40
Thanks h0bbel!
This is what it says in the FAQs:
You can make it go away by editing your php.ini and setting
session.bug_compat_42 to off
or
session.bug_compat_warn to off
and then restarting Apache. Alternatively, you can edit your .htaccess file and put this line in it:
php_flag session.bug_compat_warn off
Well since I only have ftp access, I edited .htaccess
But it still didn't work.. UNTIL I added <server>php_flag session.bug_compat_warn off </server>
It works now :D
Thanks!
-=Jess=-
Posts: 13451
as stated in the faq. Great you got it working!
Posts: 40
Oh no!
I thought I had it working, because I refreshed the page. It turns out, when you refresh the page (with the error on it) it dissappears. Hmmmm... Well I don't know how to do this now.
I need help again! (i only have ftp access)
-Jess
Posts: 13451
What does your .htaccess look like, can you post it here?
Edit:
You may also need to add one of the following lines (try one at the time) to your .htaccess file:
php_flag register_globals on
php_value register_globals 1
Posts: 40
Well when I opened for the 1st time there was nothing in it. So I added:
php_flag session.bug_compat_warn off
should I keep that in there?
Should it look like this:
php_flag session.bug_compat_warn off
php_flag register_globals on
or this:
php_flag session.bug_compat_warn off
php_value register_globals 1
Or ???
Thanks, I really appreciate the help,
Jess
Posts: 40
I don't understand... it doesn't even seem to need the .htaccess file.
I deleted it (with a backup on my comp) and the gallery still works.. hmmm.. I tried a lot of combinations with:
php_flag session.bug_compat_warn off
php_value register_globals 1
php_flag session.bug_compat_warn off
Er...I'm lost..
Please help me,
Jess
Posts: 3473
with .htaccess, you can have
http://www.creativeartist.net/jester/gallery_1/jess
without it, you have
http://www.creativeartist.net/jester/gallery_1/view_album.php?set_albumName=jess
Posts: 40
Ok that makes sense... however there was nothing in my .htaccess file when I got it off my remote server to make the original change (or add-in):
php_flag session.bug_compat_warn off
Was should be in there??
Thanks,
Jess
Posts: 40
Please help! How do I get the .htaccess file working again? I don't think it was ever using it... i dunno! I'm just confused about the .htaccess file..
Thanks in advance,
Jess
Posts: 13451
Just delete the .htaccess, re-run the config wizard and after saving settings add "php_flag session.bug_compat_warn off" to it afterwards.
Posts: 40
Ok sounds great h0bbel!
But- I'm kinda nervous about just re-running the config wizard.
Do you think you could give me a more detailed newbie-geared reply on how to do this safely?
I'm just curious- If I just downloaded the albums folder to my comp.. Is that all I need to back it up later on? Could I just re-install Gallery and copy the albums folder to the designated gallery albums folder?
Thanks for helping!!
Jess
Posts: 13451
Well, you should be able to run the config again without any problems at all. As long as you have a backup of the albums/ and subdirs, you should be all set!
Posts: 11
Hi y'all,
I have the same problem with this warning message.
I've read the FAQ of course, but I'm confused about the .htaccess file. Which one do I have to put this statement into, and where is it? Is it the one in my gallery directory?
I've tried putting
php_flag session.bug_compat_warn off
php_flag register_globals on
as well as
php_flag session.bug_compat_warn off
php_value register_globals 1
in the .htaccess file that is in my gallery's directory (which was empty before my editing it), but it did no good.
Which .htaccess file should I edit, and is there any way this will actually work?
Note: I am not root on the server so I cannot edit php.ini.
Posts: 13451
php_flag session.bug_compat_warn off should do it, as long as your host allows php.ini overrides in .htaccess. And you are right, its tha .htaccess in your gallery dir.
Posts: 11
How can I tell whether my host allows php.ini overrides in .htaccess - or maybe evn change it so that it does?
Posts: 13451
dinosm, basically if it doesn't work, they don't allow it.
But, you could always contact your host with this info, and ask if they could fix it in their main php config.
Posts: 11
Right!
Thanks for your help! :D
Posts: 40
I'm still stuck.... ugh..
please help!
-Jess
Posts: 3473
I don't feel like reading the whole thread. Can you summarize, or start a new one?
Posts: 40
check this out:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=9964&sid=4f46f43a6a71a737909beaa052139f77
Thanks! :lol: