PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  PostNuke 0.7 Support ::  Installation, Configuration, & Upgrades ::  PHP 5.2.0 pnSession.php Error

Moderated by: Support Team

Goto page : 1 | 2 Next Page
Bottom
PHP 5.2.0 pnSession.php Error

  • Link to this postingPosted: 03.11.2006, 20:19
    Profile
    Ruudje
    rank:
    pnFreshman pnFreshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    06.11.06
    Posts:
    24
    Hi i'm running PostNuke(0.762) on Windows Server 2003 with IIS 6 as webserver,
    Today i updated PHP to version 5.2.0
    After this update it is not longer possible to login to my site (either as admin or regular user)
    Once i submit the login form i get the "you are being logged in" screen and then it resturns me back to the index, in my logs i got this error message:

    Code
    PHP Fatal error:  Call to a member function Execute() on a non-object in C:\Inetpub\postnuke\includes\pnSession.php on line 378.


    Is the current PostNuke distibution incompatible with PHP 5.2.x and/or are you aware of any issues like this?

    RvdH



    edited by: Ruudje, Nov 03, 2006 - 08:20 PM
  • Link to this postingPosted: 03.11.2006, 23:55
    Profile Homepage
    AmmoDump
    rank:
    pnProfessional pnProfessional
    registered:
     December 2003
    Status:
    offline
    last visit:
    08.05.08
    Posts:
    2635
    http://community.postnuke...wtopic-topic-50830.htm

    -----
    -- David Pahl -- (PostNuke Support Team)

    <div id="me" class="none" style="none" />

  • Link to this postingPosted: 04.11.2006, 04:14
    Profile Homepage
    InvalidResponse
    rank:
    pnProfessional pnProfessional
    registered:
     September 2003
    Status:
    offline
    last visit:
    21.10.07
    Posts:
    2423
    same here. PN .763, PHP v5.2.0.. register_globals is off

    Quote
    Call to a member function on a non-object in pnSession.php on line 378


    it's pretty bizarre.. seems to only affect pnSessionWrite();



    edited by: InvalidResponse, Nov 03, 2006 - 11:57 PM

    -----
    http://www.invalidresponse.com
  • Link to this postingPosted: 04.11.2006, 08:28
    Profile Homepage
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    12.05.08
    Posts:
    13326
    session_info table corrupt?

    -----
    Regards,
    Simon

    itbegins.co.uk - PostNuke Consulting

    Please read the Support Guide
  • Link to this postingPosted: 04.11.2006, 09:49
    Profile
    Ruudje
    rank:
    pnFreshman pnFreshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    06.11.06
    Posts:
    24
    HammerHeadsession_info table corrupt?


    How can i check that? am i able to repair (& how)?

    EDIT: After turning back to PHP 5.1.2 i don't have this problem, telling me it is PHP 5.2.x related



    edited by: Ruudje, Nov 04, 2006 - 11:35 AM
  • Link to this postingPosted: 04.11.2006, 11:49
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    24.04.08
    Posts:
    7647
    I can reproduce this issue on my local test system too but haven't really had chance to look into it closely. It seems that by the time pnSessionWrite is executed the global database connection object no longer exists. As yet I can't explain why this is the case. However the .8x session code works fine.

    At this stage i'd recommend people stick with PHP 5.1.x or the latest PHP 4.x builds.

    -Mark
  • Link to this postingPosted: 04.11.2006, 12:04
    Profile
    Ruudje
    rank:
    pnFreshman pnFreshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    06.11.06
    Posts:
    24
    thx for your reply mark,
    will stick with 5.1.x for the time being...
  • Link to this postingPosted: 04.11.2006, 21:33
    Profile
    glansing
    rank:
    Registered User Registered User
    registered:
     November 2006
    Status:
    offline
    last visit:
    04.11.06
    Posts:
    1
    FYI -- this looks to be the problem:

    http://bugs.php.net/bug.php?id=39381
  • Link to this postingPosted: 06.11.2006, 23:04
    Profile
    Ruudje
    rank:
    pnFreshman pnFreshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    06.11.06
    Posts:
    24
    found other topics around the net with similiar problems, seems they found a workaround
    http://drupal.org/node/61900
    http://drupal.org/node/92802




    edited by: Ruudje, Nov 06, 2006 - 11:05 PM
  • Link to this postingPosted: 07.11.2006, 22:24
    Profile
    alinoe
    rank:
    pnFreshman pnFreshman
    registered:
     November 2006
    Status:
    offline
    last visit:
    08.11.06
    Posts:
    2
    Is there a chance for a similar simple workaround in PN? I have apache 2.2.2 installed and as far as I know PHP 5.1 won't run on it... So I would have to reinstall the server to go back to 5.1 :(
  • Link to this postingPosted: 07.11.2006, 22:40
    Profile
    Topiatic
    rank:
    pnProfessional pnProfessional
    registered:
     November 2003
    Status:
    offline
    last visit:
    09.05.08
    Posts:
    1530
    Not a workaround... well it is, but to your second delima, apacheaounge.com has a driver available to make apache2.2 work with PHP 5.1. and it worked fine for me. That is until I upgraded to PHP 5.2, which I'm now off to downgrade icon_biggrin .

    -----
    viewTopiaryWorks($twWorks, $twRosterMaster)
  • Link to this postingPosted: 08.11.2006, 11:04
    Profile
    alinoe
    rank:
    pnFreshman pnFreshman
    registered:
     November 2006
    Status:
    offline
    last visit:
    08.11.06
    Posts:
    2
    Thanks for the tip, will try it out. icon_smile
  • Link to this postingPosted: 08.11.2006, 14:21
    Profile Homepage
    slam
    rank:
    pnHelper pnHelper
    registered:
     May 2004
    Status:
    offline
    last visit:
    01.05.08
    Posts:
    176
    Seems that the best solution for the moment is a downgrade of all PHP 5.2 components to PHP 5.1, which works fine with Apache 2.2 and MySQL 5 WITHOUT any special driver. I would suggest to not upgrade to PHP 5.2 until fixes packages are available for your operating system. Specially libapache2-mod-php5 (version 5.2) will need a fix which will be ready soon.

    There is however no reason at all to run PostNuke on less than that - outdated Apache1 or PHP4 do make any sense, except you still need them for other reasons.

    Greetings,
    Chris



    edited by: slam, Nov 08, 2006 - 03:25 PM

    -----
    development is life. w3you.com
    an operating system must operate. sidux.com
  • Link to this postingPosted: 11.11.2006, 18:24
    Profile Homepage
    edfel
    rank:
    pnProfessional pnProfessional
    registered:
     
    Status:
    offline
    last visit:
    02.09.07
    Posts:
    831
    Hi:

    Any update regarding this? Drupal have this discussion and a 'fix':
    http://drupal.org/node/92802

    I don't know if the PHP guys are working on it, but some reading of the bug seems like they are not... IMO.

    Later

    icon_confused
  • Link to this postingPosted: 11.11.2006, 20:22
    Profile
    fredatwork
    rank:
    pnFreshman pnFreshman
    registered:
     November 2005
    Status:
    offline
    last visit:
    11.11.06
    Posts:
    17
    Hello,
    Reading Ruudje post (see above in this thread), I have found a workaround for this problem.
    I've migrated to PHP 5.2 and experienced the problem.
    I modified includes/pnSession.php in order to add in function pnSessionSetup()
    Code
    register_shutdown_function('session_write_close');

    just before
    Code
    session_set_save_handler('pnSessionOpen',
                                 'pnSessionClose',
                                 'pnSessionRead',
                                 'pnSessionWrite',
                                 'pnSessionDestroy',
                                 'pnSessionGC');

    My web site worked again after this fix. I can log in again now.
    Hope this helps.
    Fred
Goto page : 1 | 2 Next Page

Start ::  PostNuke 0.7 Support ::  Installation, Configuration, & Upgrades ::  PHP 5.2.0 pnSession.php Error

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke