clonemeagain / plugin-autocloser

An osTicket plugin to automatically close open tickets
GNU General Public License v2.0
40 stars 23 forks source link

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 1 year ago

Vudubond commented 1 year ago

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.