We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21257 MODX Staff
    • 730 Posts
    I just posted a related problem in the xPDO thread. http://modxcms.com/forums/index.php/topic,49964.0.html

    In Revo, what is causing the above referenced xPDO problem to occur is in modSessionHandler, specifically from calling this in a Windows environment:
    $session->get('access', '%s')
    


    That underlying problem can be hashed out in the xPDO thread, but I wanted to also note that each time the strftime function is called (again, just in Windows, with the ’%s’ formatter), it ends up triggering modErrorHandler :: handleError() 5 times. I can’t tell yet from debugging where this is going wrong. I’m sure that the xPDOObject :: get() is only running once, yet it is driving 5 calls to handleError() and therefore 5 entries show up in the error log. The $errcontext passed to handleError each time is exactly the same.

    I will file this in Jira once I understand a little better what is going on. Any thoughts?
      Mike Schell
      Lead Developer, MODX Cloud
      Email: [email protected]
      GitHub: https://github.com/netProphET/
      Twitter: @mkschell
      • 26903
      • 1,336 Posts
      There was this prob with strftime, http://modxcms.com/forums/index.php/topic,49535.msg289017.html#msg289017 but this was on linux and is a server config option, may be worth a quick look.
        Use MODx, or the cat gets it!
        • 22303 MODX Staff
        • 10,725 Posts
        Quote from: netProphET at May 31, 2010, 10:46 PM

        I just posted a related problem in the xPDO thread. http://modxcms.com/forums/index.php/topic,49964.0.html

        In Revo, what is causing the above referenced xPDO problem to occur is in modSessionHandler, specifically from calling this in a Windows environment:
        $session->get('access', '%s')
        


        That underlying problem can be hashed out in the xPDO thread, but I wanted to also note that each time the strftime function is called (again, just in Windows, with the ’%s’ formatter), it ends up triggering modErrorHandler :: handleError() 5 times. I can’t tell yet from debugging where this is going wrong. I’m sure that the xPDOObject :: get() is only running once, yet it is driving 5 calls to handleError() and therefore 5 entries show up in the error log. The $errcontext passed to handleError each time is exactly the same.

        I will file this in Jira once I understand a little better what is going on. Any thoughts?
        I think this should be filed in MODx only; this is not a bug in xPDO, but with the usage in modSessionHandler. It would be nice to know why it is triggering the error_handler five times though.