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: Uncaught TypeError: Argument 1 passed to CloserPlugin::is_valid_thread_entry() must be an instance of AnnotatedModel, instance of AnnotatedModel___ThreadEntry given, #49

Open
Vudubond opened this issue Jan 26, 2023 · 0 comments

Comments

@Vudubond
Copy link

osTicket Version v1.16.3 (e148727)
Web Server Software | Apache
MySQL Version | 8.0.31
PHP Version | 7.4.33

Getting:

[26-Jan-2023 13:55:19 UTC] Looking for tickets with query: 
SELECT ticket_id 
FROM ost_ticket WHERE lastupdate < DATE_SUB(NOW(), INTERVAL 1 DAY)
AND status_id=6  AND isanswered=1
ORDER BY ticket_id ASC
LIMIT 20
[26-Jan-2023 13:55:19 UTC] CloserPlugin group [1]  has 1 open tickets.
[26-Jan-2023 13:55:19 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to CloserPlugin::is_valid_thread_entry() must be an instance of AnnotatedModel, instance of AnnotatedModel___ThreadEntry given, called in /home/osticket/public_html/include/plugins/plugin-autocloser-master/class.CloserPlugin.php on line 407 and defined in /home/osticket/public_html/include/plugins/plugin-autocloser-master/class.CloserPlugin.php:475
Stack trace:
#0 /home/osticket/public_html/include/plugins/plugin-autocloser-master/class.CloserPlugin.php(407): CloserPlugin->is_valid_thread_entry(Object(AnnotatedModel___ThreadEntry), false, true)
#1 /home/osticket/public_html/include/plugins/plugin-autocloser-master/class.CloserPlugin.php(348): CloserPlugin->fetch_last_response(Object(Ticket))
#2 /home/osticket/public_html/include/plugins/plugin-autocloser-master/class.CloserPlugin.php(158): CloserPlugin->post_reply(Object(Ticket), Object(TicketStatus), '<p>Buna ziua, %...', NULL)
#3 /home/osticket/public_html/include/plugins/plugin-autocloser-master/class.CloserPlugin.php( in /home/osticket/public_html/include/plugins/plugin-autocloser-master/class.CloserPlugin.php on line 475

Please advice.

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

1 participant