Fatal error: session_start(): Failed to initialize storage module: user

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mrbog

    Fatal error: session_start(): Failed to initialize storage module: user


    My server was working fine (no one else changes it but me, it's a
    local server on my lan), and all of a sudden I get:

    Fatal error: session_start() : Failed to initialize storage module:
    user...

    It didn't even happen after like a reboot or something, it just
    happened one morning.

    I fixed it by changing:

    session.save_ha ndler = user

    to

    session.save_ha ndler = files

    But my question is- why did I have to do that? What could've
    happened? How do I make it work with "user" again?

    thanks

  • Rik

    #2
    Re: Fatal error: session_start() : Failed to initialize storage module: user

    mrbog <dterrors@hotma il.comwrote:
    >
    My server was working fine (no one else changes it but me, it's a
    local server on my lan), and all of a sudden I get:
    >
    Fatal error: session_start() : Failed to initialize storage module:
    user...
    >
    It didn't even happen after like a reboot or something, it just
    happened one morning.
    >
    I fixed it by changing:
    >
    session.save_ha ndler = user
    >
    to
    >
    session.save_ha ndler = files
    >
    But my question is- why did I have to do that? What could've
    happened? How do I make it work with "user" again?
    Correct me if I'm wrong here, but AFAIK, 'user' is not a deault handler.
    If there are problems saving sessions with the 'user' session handler,
    you'd have to check that logic. In many custom handlers it's done in
    combination with a database, so you might check wether that database is
    reachable, not at it's limits (either by primary/unique index or size
    enforced by hoster).
    --
    Rik Wasmus

    Comment

    • mrbog

      #3
      Re: Fatal error: session_start() : Failed to initialize storage module: user

      On Mar 4, 11:28 pm, Rik <luiheidsgoe... @hotmail.comwro te:
      mrbog <dterr...@hotma il.comwrote:
      >
      My server was working fine (no one else changes it but me, it's a
      local server on my lan), and all of a sudden I get:
      >
      Fatal error: session_start() : Failed to initialize storage module:
      user...
      >
      It didn't even happen after like a reboot or something, it just
      happened one morning.
      >
      I fixed it by changing:
      >
      session.save_ha ndler = user
      >
      to
      >
      session.save_ha ndler = files
      >
      But my question is- why did I have to do that? What could've
      happened? How do I make it work with "user" again?
      >
      Correct me if I'm wrong here, but AFAIK, 'user' is not a deault handler.
      If there are problems saving sessions with the 'user' session handler,
      you'd have to check that logic. In many custom handlers it's done in
      combination with a database, so you might check wether that database is
      reachable, not at it's limits (either by primary/unique index or size
      enforced by hoster).
      --
      Rik Wasmus
      It's not saving to a database, it's creating a session file.

      And as stated in my question there is no "hoster", it's my lan server,
      and I'm the only one that touches it.



      Comment

      • Rik

        #4
        Re: Fatal error: session_start() : Failed to initialize storage module: user

        mrbog <dterrors@hotma il.comwrote:
        It's not saving to a database, it's creating a session file.
        Then check why you cannot create the file.
        And as stated in my question there is no "hoster", it's my lan server,
        and I'm the only one that touches it.
        Then it should be absolutely no trouble te check what logic you're using
        to save sessions. Don't leave us guessing, check the code. Troubleshooting
        without the code and a single incomplete error-message is not possible for
        us.

        --
        Rik Wasmus
        Posted on Usenet: any site claiming this as original content or me as an
        contributing member is stealing content.
        Ask Smart Questions: http://tinyurl.com/anel

        Comment

        • mrbog

          #5
          Re: Fatal error: session_start() : Failed to initialize storage module: user

          On Mar 6, 12:34 am, Rik <luiheidsgoe... @hotmail.comwro te:
          mrbog <dterr...@hotma il.comwrote:
          It's not saving to a database, it's creating a session file.
          >
          Then check why you cannot create the file.
          >
          And as stated in my question there is no "hoster", it's my lan server,
          and I'm the only one that touches it.
          >
          Then it should be absolutely no trouble te check what logic you're using
          to save sessions. Don't leave us guessing, check the code. Troubleshooting
          without the code and a single incomplete error-message is not possible for
          us.
          >
          --
          Rik Wasmus
          Posted on Usenet: any site claiming this as original content or me as an
          contributing member is stealing content.
          Ask Smart Questions:http://tinyurl.com/anel
          What code??

          session_start()

          There's the code.

          WTF??



          Comment

          • Rik

            #6
            Re: Fatal error: session_start() : Failed to initialize storage module: user

            mrbog <dterrors@hotma il.comwrote:
            On Mar 6, 12:34 am, Rik <luiheidsgoe... @hotmail.comwro te:
            >mrbog <dterr...@hotma il.comwrote:
            It's not saving to a database, it's creating a session file.
            >>
            >Then check why you cannot create the file.
            >>
            And as stated in my question there is no "hoster", it's my lan server,
            and I'm the only one that touches it.
            >>
            >Then it should be absolutely no trouble te check what logic you're using
            >to save sessions. Don't leave us guessing, check the code.
            >Troubleshootin g
            >without the code and a single incomplete error-message is not possible
            >for
            >us.
            >
            What code??
            >
            session_start()
            session.save_ha ndler = user means there's another handler then the default
            files handler busy with maintaining sessions. The save handler that
            actually does the work has code. That's the code that fails. That's the
            code we don't know.

            If you don't know what code does the handling, I seriously urge you to
            take better care in putting up just anything on your lan server, and do a
            server wide search in all files for the text 'session_set_sa ve_handler'.

            If there's no other session handler, setting session.save_ha ndler to
            anything other then files is just moronic.

            --
            Rik Wasmus
            Posted on Usenet, not any forum you might see this in.
            Ask Smart Questions: http://tinyurl.com/anel

            Comment

            Working...