Hi,
Thank you, that updated fixed the issue. However, now the helpdesk is emailing me these db errors? Any ideas please?
** [SELECT audit.* FROM ost_audit audit WHERE audit.staff_id= ORDER BY audit.timestamp DESC LIMIT 0,30]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY audit.timestamp DESC LIMIT 0,30' at line 1<br /> <br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(200): osTicket->logDBError('DB Error #1064', '[SELECT audit....')<br />
#1 phar://(root)/include/plugins/audit.phar/class.audit.php(513): db_query('SELECT audit. ...')<br />
#2 phar://(root)/include/plugins/audit.phar/templates/agent-audit.tmpl.php(6): AuditEntry::getTableInfo(Object(Staff))<br />
#3 phar://(root)/include/plugins/audit.phar/audit.php(64): include('phar:///var/www...')<br />
#4 (root)/include/class.signal.php(98): AuditPlugin->{closure}(Object(Staff), Object(ArrayObject))<br />
#5 (root)/include/staff/staff.inc.php(449): Signal::send('agent.audit', Object(Staff), Object(ArrayObject))<br />
#6 (root)/scp/staff.php(190): require('/var/www/ostick...')<br />
#7 {main}
http://10.10.0.20
** Another 1:
[SELECT count(*) FROM ost_audit audit WHERE audit.staff_id=]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1<br /> <br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(200): osTicket->logDBError('DB Error #1064', '[SELECT count(...')<br />
#1 (root)/include/mysqli.php(212): db_query('SELECT count()...')<br />
#2 phar://(root)/include/plugins/audit.phar/class.audit.php(411): db_count('SELECT count(*)...')<br />
#3 phar://(root)/include/plugins/audit.phar/templates/agent-audit.tmpl.php(9): AuditEntry::getPageNav(' WHERE audit.st...')<br />
#4 phar://(root)/include/plugins/audit.phar/audit.php(64): include('phar:///var/www...')<br />
#5 (root)/include/class.signal.php(98): AuditPlugin->{closure}(Object(Staff), Object(ArrayObject))<br />
#6 (root)/include/staff/staff.inc.php(449): Signal::send('agent.audit', Object(Staff), Object(ArrayObject))<br />
#7 (root)/scp/staff.php(190): require('/var/www/ostick...')<br />
#8 {main}
http://10.10.0.20
Thanks,