I have the following issue with Audit plugin when I am running a cron job that has the following job
/usr/bin/php /var/www/html/support/api/cron.php

PHP Fatal error: Uncaught Error: Call to a member function getName() on null in phar:///var/www/html/support/include/plugins/audit.phar/class.audit.php:745
Stack trace:
#0 /var/www/html/support/include/class.signal.php(98): AuditEntry::auditObjectEvent()
#1 /var/www/html/support/include/class.config.php(124): Signal::send()
#2 /var/www/html/support/include/class.config.php(81): Config->update()
#3 /var/www/html/support/include/plugins/autocloser/class.CloserPlugin.php(188): Config->set()
#4 /var/www/html/support/include/plugins/autocloser/class.CloserPlugin.php(79): CloserPlugin->is_time_to_run()
#5 /var/www/html/support/include/plugins/autocloser/class.CloserPlugin.php(68): CloserPlugin->logans_run_mode()
#6 /var/www/html/support/include/class.signal.php(98): CloserPlugin->{closure}()
#7 /var/www/html/support/include/class.cron.php(122): Signal::send()
#8 /var/www/html/support/include/api.cron.php(19): Cron::run()
#9 /var/www/html/support/include/api.cron.php(40): CronApiController->run()
#10 /var/www/html/support/api/cron.p in phar:///var/www/html/support/include/plugins/audit.phar/class.audit.php on line 745

Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.

Environment details?
Version of osTicket?

2 years later

Getting similar error message:

PHP Fatal error: Uncaught Error: Call to a member function getName() on null in phar:///var/www/html/include/plugins/audit.phar/class.audit.php:746
Stack trace:
#0 /var/www/html/include/class.signal.php(98): AuditEntry::auditObjectEvent()
#1 /var/www/html/include/class.config.php(124): Signal::send()
#2 /var/www/html/include/class.config.php(81): Config->update()
#3 /var/www/html/include/class.search.php(602): Config->set()
#4 /var/www/html/include/class.signal.php(98): MysqlSearchBackend->IndexOldStuff()
#5 /var/www/html/include/class.cron.php(122): Signal::send()
#6 /var/www/html/include/api.cron.php(19): Cron::run()
#7 /var/www/html/include/api.cron.php(40): CronApiController->run()
#8 /var/www/html/api/cron.php(23): LocalCronApiController::call()
#9 {main}
thrown in phar:///var/www/html/include/plugins/audit.phar/class.audit.php on line 746

Server Information
osTicket Version v1.15.4 (6bd7884) — Up to date
Web Server Software Apache
MySQL Version 10.6.5
PHP Version 7.4.3
PHP Extensions
gdlib Used for image manipulation and PDF printing
imap Used for email fetching
xml XML API
xml-dom Used for HTML email processing
json Improves performance creating and processing JSON
mbstring Highly recommended for non western european language content
phar Highly recommended for plugins and language packs
intl Highly recommended for non western european language content
fileinfo Used to detect file types for uploads
zip Used for ticket and task exporting
APCu Improves overall performance
Zend Opcache Improves overall performance
PHP Settings
cgi.fix_pathinfo "1" is recommended if AJAX is not working
date.timezone America/New_York
Database Information and Usage
Schema lea_osticket (10.10.10.5)
Schema Signature add628927ee030469f5d3272ebda1e16
Space Used 3.05 MiB
Space for Attachments 0.02 MiB
Timezone EST (Interpreted as America/New_York)

Write a Reply...