FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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-
Related topics
PB PHP, Iframe and Javascript
HTTP AUTH with PHP and mySQL
gmail drive
NTFS and FAT32
FireFox and Cookies/Sessions
Master Tutorial on SEO
Problem with mysql
Need help with htaccess
Microsoft Confirms 'Highly Critical' IE Hole!!
Enter your webpage in this form to KNOW your keywords
How to change extension php to html but the php script still
unresizable font
Check for subdomain availability at frihost.com
A Computer Virus on Linux (informed discussions only please)
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-2011 Frihost, forums powered by phpBB.