Hello,

I am using the autocloser plugin by Grizly from https://github.com/clonemeagain/plugin-autocloser
I am also using the current version of OsTicket plugin - Audit.phar

When both plugins are active I receive the following PHP Fatal error, and stack trace.
Server Info: Microsoft Windows Server 2019
osTicket Version v1.14.3
Web Server Software: Microsoft-IIS/10.0
MySQL Version: 8.0.19
PHP Version: 7.3.15

PHP Fatal error: Uncaught Error: Call to a member function getName() on null in phar://C:/inetpub/wwwroot/helpdesk/include/plugins/audit.phar/class.audit.php:746
Stack trace:
#0 C:\inetpub\wwwroot\helpdesk\include\class.signal.php(98): AuditEntry::auditObjectEvent(Object(ConfigItem), Array)
#1 C:\inetpub\wwwroot\helpdesk\include\class.config.php(124): Signal::send('object.edited', Object(ConfigItem), Array)
#2 C:\inetpub\wwwroot\helpdesk\include\class.config.php(81): Config->update('last-run', 1598211725)
#3 C:\inetpub\wwwroot\helpdesk\include\plugins\autocloser\class.CloserPlugin.php(188): Config->set('last-run', 1598211725)
#4 C:\inetpub\wwwroot\helpdesk\include\plugins\autocloser\class.CloserPlugin.php(79): CloserPlugin->is_time_to_run(Object(CloserPluginConfig))
#5 C:\inetpub\wwwroot\helpdesk\include\plugins\autocloser\class.CloserPlugin.php(68): CloserPlugin->logans_run_mode()
#6 C:\inetpub\wwwroot\helpdesk\include\class.signal.php(98): CloserPlugin->{closure}(NULL, Array)
#7 C:\inetpub\wwwroot\helpdesk\include\class.cro in phar://C:/inetpub/wwwroot/helpdesk/include/plugins/audit.phar/class.audit.php on line 746

If you disable the 3rd party plugin (plugin-autocloser) do you still get the error?

No, the error stops.
Also stops when disabling audit, and keeping autocloser on.

Sounds like the autocloser plugin needs to be updated by its author to play well with the Audit plugin.

    8 months later

    ntozier

    You are right . Me also facing same issue .
    Your comment help me to solve it. I just simply disable audit service.

    Thank you.

    8 months later
    Write a Reply...