K
kbmerkur

  • Apr 18, 2019
  • Joined Mar 6, 2019
  • 0 best answers
  • @kbmerkur

    You can ignore them but it'd be nice to solve it. I'd suggest updating your codebase to the latest pull of the develop-next branch as this contains the latest bug fixes we've been working on. Once you update your codebase you can restart Apache and see if this resolved the issue.

    Cheers.

    • @kbmerkur

      Oh I see now. You pasted the wrong error.

      session_regenerate_id(): Cannot regenerate session id - session is not active in C:\inetpub\osTicket\open.php on line 49

      This shouldn't have anything to do with the other error (Call to a member function getId() on null in C:\inetpub\osTicket\include\client\view.inc.php:140) as TicketUser::lookupByEmail($email) uses an email string to lookup the user, not a session_id or anything.

      Cheers.

      • @kbmerkur

        No, LDAP should create the Agent/User in osTicket and should provide the email, name, phone, etc. Make sure you did not change your LDAP variables, for example, don't change email to something else otherwise the system will not add the email to the account in osTicket.

        Furthermore, is "session_regenerate_id()" also related to this problem, or is it something else entirely?

        Honestly, I have no idea what the context of this is so I'm not sure what you're talking about.

        Cheers.

        • @kbmerkur

          I just tested this with latest v1.11 and PHP 7.2 and cannot replicate the issue.

          You shouldn't be getting the getId() on null error as TicketUser::lookupByEmail($email) should always find a user. Upon ticket creation, the system creates a record in ost_user and ost_user_email tables for every person that creates a ticket. It appears as though your system is not creating a record in ost_user/ost_user_email for the person creating the ticket OR your system lags and returns the view template before the ost_user/ost_user_email records are created all the way.

          A few questions:

          • When and where did you download v1.11 from?
          • Can you confirm there is a record for the email in question in ost_user_email?
          • What are the exact steps to replicate the issue?

          Cheers.