FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

some warning and script doesn't work normally

 


oleszka
I use scrpit of catalog in PHP (+Mysql)
At frist time when I did login into admin panel ..I saw this:
Quote:
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


and now in admin panel i can not do anything: no edit pages, categories of site...
for example when I try to edit site (what was added to my catalog) it shows that I don't have access...

any idea?
wumingsden
oleszka wrote:
I use scrpit of catalog in PHP (+Mysql)
At frist time when I did login into admin panel ..I saw this:
Quote:
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


and now in admin panel i can not do anything: no edit pages, categories of site...
for example when I try to edit site (what was added to my catalog) it shows that I don't have access...

any idea?


Try enabling register globals.

Create the file .htaccess in the catalog directory with the following in it:

Code:
php_flag register_globals on


Then clear your cache/broswer, and try logging in again as admin.

Hope it helps.
oleszka
thanx a lot! It works now!
wumingsden
oleszka wrote:
thanx a lot! It works now!


your welcome

-locked-
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.