Page 1 of 1

php error

Posted: Sun Sep 18, 2011 12:48 pm
by YoussefSiblini
Hi guys,
My website some times not all the time is showing this error at the bottom of the page:

Code: Select all

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
I tried creating a file called ini.php and added this code into it:

Code: Select all

session.bug_compat_42 = 1
session.bug_compat_warn = 0
But that didn't work?


Youssef

Re: php error

Posted: Sun Sep 18, 2011 9:22 pm
by Christopher
You probably can't set those config values from PHP. However, it might be easier to change error reporting to not show warnings. It is not an error, just a warning. You also might want to fix the problem.

Re: php error

Posted: Mon Sep 19, 2011 11:55 am
by YoussefSiblini
Hi Christopher,

Thank you for your reply, I have no idea how to change error reporting to not show warnings, I will appreciate if you can give me some help with that :D


Youssef

Re: php error

Posted: Mon Sep 19, 2011 2:52 pm
by Christopher