Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Call to a member function getName() on null #2

Open
jaketyo opened this issue Sep 27, 2016 · 2 comments
Open

PHP Fatal error: Call to a member function getName() on null #2

jaketyo opened this issue Sep 27, 2016 · 2 comments

Comments

@jaketyo
Copy link

jaketyo commented Sep 27, 2016

OSTicket Version: v1.10-rc.3 (907ec36)

Error:
PHP Fatal error: Call to a member function getName() on null in /var/www/html/osticket-dev/include/plugins/post-slack/slack.php on line 31 PHP Fatal error: Call to a member function getLastMessage() on null in /var/www/html/osticket-dev/include/class.ticket.php on line 801

For some reason getName() and getLastMessage() return these errors. Because of these errors, my entire instance of OSTicket crashes when creating a ticket unless they're commented out.

Also, $ticket->getSubject() returns nothing.

@patmandenver
Copy link
Owner

Thanks for posting the error. Its good timing for me.

Over the next 30 days I will be redoing the script I made and making some better documentation for it. I will look into this error as I do.

@seemple
Copy link

seemple commented Nov 30, 2017

Hi! I was working developing a similar solution. Have you tried to send a message when a ticket is commented/updated? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants