How do I get rid of a Warning

Discussion in 'Troubleshooting' started by Juice_Master, Apr 29, 2004.

  1. Juice_Master

    Juice_Master New Member

    Joined:
    Apr 25, 2004
    Messages:
    3
    I get this warning on a few pages, especially the members login page (members.php):

    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

    Only 1 file has sesion.bug_compat_42 - config-dist.inc.php

    if (!defined(INCLUDED_AMEMBER_CONFIG)){
    define('INCLUDED_AMEMBER_CONFIG', 1);
    ini_set('session.bug_compat_42', 1); <-- 1 to 0 ?
    set_magic_quotes_runtime(0);
    global $config, $plugins, $plugin_config;

    to turn it off, do I change the 1 to 0? If that's the case, then it doesn't work and I still get this annoying warning.

    Any help would be appreciated.

    Thank you,

    Scott
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Add lines to your amember/config.inc.php:

    PHP:
    ini_set('session.bug_compat_42'1);
    ini_set('session.bug_compat_warn'0);

Share This Page