Fork me on GitHub

Autotheme Session Error - Please assist.  Bottom

  • Sorry if this has been addressed, but I couldn't find it by doing a search on the forums.

    Here's what I'm running:
    Windows NT 4.0 Server
    Apache 2.0.39 (I think)
    PostNuke 7.23
    AT Lite .7 (Just downloaded latest copy)
    PHP 4.2.2
    MySql (not sure what version, but if it the thing that comes up in PHPINFO.PHP as Client API version then it's 3.23.39 )

    My problem:
    Running a new module in Postnuke called DQ_Helpdesk. Any time I run an AutoTheme, I get the following error when trying to access the admin page of the module:
    Fatal error: Failed to initialize session module in C:\FoxServ\www\includes\pnSession.php on line 157

    Line 157 is the "session_register($var);" line in the following code:
    function pnSessionSetVar($name, $value)
    {
    $var = "PNSV$name";
    global $$var;
    $$var = $value;
    session_register($var);
    return true;
    }

    This problem only occurs on AutoThemes.

    I also tried using the update to the Theme.php file found on the AutoTheme downloads section. When I tried that, I get the same error as above AND I get an error stating to make sure the Temp directory exists at "C:\WINNT\Temp". I've verified the directory is there, that everybody has read/write permissions and there are actually session files already there.


    Anybody have a similar issue and figure it out?

    Any help is appreciated. It's not like I can't use the regular PostNuke themes, but the AutoThemes are so much nicer looking.
  • Found the issue:

    In the main Index.php file at line 131, there are these lines:

    Code

    if (function_exists('session_write_close'))
                session_write_close();
       }


    Once I commented them out, all works fine.
  • Very strange. AutoThem does not use any session functionality at all.

    -Shawn

    --
    Get the Revolutionary AutoTheme HTML Theme System! Currently for Zikula, PHP-Nuke, CRE Loaded, osCommerce and Wordpress!

This list is based on users active over the last 60 minutes.