Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: [-1] 1 - 2

Bottom
PHP 5.2.0 pnSession.php Error
  • Posted: 12.11.2006, 03:08
     
    larsneo
    rank:
    Software Foundation Software Foundation
    registered:
     December 1969
    Status:
    offline
    last visit:
    15.11.08
    Posts:
    4481
    thx for the heads up - can you checkout *the latest svn vers…n of pnSession.php* and test with PHP 5.2.0?


    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • Posted: 12.11.2006, 05:05
     
    edfel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    02.09.07
    Posts:
    831
    Hi larsneo:

    Thanks! Seems to be working. Dunno if I am wrong but _login_ seems a little bit slower. I may be wrong tou...

    Anyway PHP 5.2.0 - PN seems usable with this fix.

    Regards!

    icon_biggrin



    edited by: edfel, Nov 11, 2006 - 07:05 PM
  • Posted: 12.11.2006, 18:59
     
    Topiatic
    rank:
    Professional Professional
    registered:
     November 2003
    Status:
    online
    Posts:
    1678

    slam

    PHP 5.1, which works fine with Apache 2.2 and MySQL 5 WITHOUT any special driveredited by: slam, Nov 08, 2006 - 03:25 PM


    Not on windows systems (see OP for enviroment), the Apache2.2 driver does not exist in the installation and unfortunately php.net does not make it available.

    --
    Under Construction!
  • Posted: 17.11.2006, 14:41
     
    ellegaard
    rank:
    Softmore Softmore
    registered:
     September 2002
    Status:
    offline
    last visit:
    13.04.08
    Posts:
    51
    thx, helped me with my problem too!

    Same situation (PHP5.2 on servage.net) but the error message seems to turn up many other places as well.
    Register Off helped on the website installed in the root, but those testsites running in subfolder had to have their 'fix' icon_biggrin

    --
    Cars are afraid of trains...

    Userfriendly design based on open source CMS PostNuke at www.eid.dk
  • Posted: 20.11.2006, 20:54
     
    InvalidResponse
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    21.10.07
    Posts:
    2423
    fixed in PN v.764

    thanks a lot.

    --
    http://www.invalidresponse.com
  • Posted: 30.12.2006, 23:40
     
    lpole
    rank:
    Freshman Freshman
    registered:
     December 2006
    Status:
    offline
    last visit:
    30.12.06
    Posts:
    4
    thanx man :)
  • Posted: 17.11.2007, 01:44
     
    jeverson
    rank:
    Freshman Freshman
    registered:
     January 2005
    Status:
    offline
    last visit:
    16.11.07
    Posts:
    15
    I have this same problem. My hosting company just rebuilt the server the site is hosted on and is using Apahce 1.3.39 and PHP 5.2.4 on linux. I'm getting:

    Code

    PHP Fatal error:  Call to a member function Execute() on a non-object in <path>/pnSession.php on line 378


    I upgraded from v761 to v764 and I changed line 377 in pnSession.php to

    Code

    if (version_compare(phpversion(), '5.2.4', '>=')) {


    hoping that would solve the problem, but it has not. Any help would be greatly appreciated.

    Edit: Nevermind, it is in fact working with the change above. I just had a moment of lameness.






    edited by: jeverson, Nov 16, 2007 - 09:39 PM
  • Posted: 08.01.2008, 12:48
     
    hugoandyou
    rank:
    Registered User Registered User
    registered:
     January 2008
    Status:
    offline
    last visit:
    07.01.08
    Posts:
    1
    Thanks you All.




    edited by: hugoandyou, Jan 08, 2008 - 08:00 AM
  • Posted: 25.08.2008, 23:13
     
    schwim
    rank:
    Softmore Softmore
    registered:
     December 1969
    Status:
    offline
    last visit:
    17.10.08
    Posts:
    97

    fredatwork

    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


    Hi there fred,

    I know that this thread is incredibly old but I just wanted to log in and thank you very much for sharing this. My site is such a hack-job, an upgrade would have been a nightmare.

    --
    If at first you don't succeed, then skydiving's not for you.
  • Posted: 26.08.2008, 08:35
     
    larsneo
    rank:
    Software Foundation Software Foundation
    registered:
     December 1969
    Status:
    offline
    last visit:
    15.11.08
    Posts:
    4481

    Quote

    My site is such a hack-job, an upgrade would have been a nightmare.

    keep in mind that previous versions had some security issues - therefore it's highly recommended to update to the latest .76x build.
    if this is not possible i'd definitly recommend to keep at least an eye on the overall security (check with e.g. phpsecinfo ) - anyway: don't blame the project if getting hacked when using outdated versions...

    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • Posted: 28.08.2008, 15:06
     
    schwim
    rank:
    Softmore Softmore
    registered:
     December 1969
    Status:
    offline
    last visit:
    17.10.08
    Posts:
    97
    Thanks for letting me know not to blame the project for something someone else did. Otherwise, I would have sure looked silly when blaming you.

    thanks,
    json

    --
    If at first you don't succeed, then skydiving's not for you.

Goto page: [-1] 1 - 2

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula