I've asked the devs to take a peek at this thread.
PHP errors on creating ticket
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.
KevinTheJedi
I downloaded osTicket from https://osticket.com/download/ on 22. Feb 2019.
A good portion of our users have empty email record. I assume this is because we're using LDAP authentication (AD).
Does this mean that we'll have to fill in email fields of all our AD users?
Furthermore, is "session_regenerate_id()" also related to this problem, or is it something else entirely?
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.
- Edited
KevinTheJedi "session_regenerate_id()" refers to an error:
PHP Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in C:\inetpub\osTicket\open.php on line 49
I mentioned this error in my opening post. This error still pops up in PHP log each time a user creates a ticket.
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.
KevinTheJedi I see. Thank you.
I looked left and right trying to figure out why this warning occurs, but couldn't find any meaningful connection. Since everything seems to be working OK with osTicket, would it be safe to simply ignore this warning then?
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.
KevinTheJedi
One of the ways I was able to resolve it was by adding my name as the administrator on the server.
I don't know what you mean by that. Can you elaborate on what you mean by this?
Cheers.
KevinTheJedi
I just started another thread about this, but when I submit a new ticket I get a 500 error, but if the user is a administrator of the server the ticket is created with no errors
dustinakane I am having the same issues with the 500 error. so you made all users admins?