Hi guys, can you help me with the audit plugin. I get the follow error:
AH01071: Got error 'PHP message: PHP Warning: include(): Failed opening 'templates/agent-audit.tmpl.php' for inclusion (include_path='./:/var/www/vhosts/xxxxx.xxxx/httpdocs/osticket/include/:/var/www/vhosts/xxxx.xxxxx/httpdocs/osticket/include/pear/') in phar:///var/www/vhosts/xxxxx.xxxxx/httpdocs/osticket/include/plugins/audit.phar/audit.php on line 64\n', referer: https://xxxxxx.xxxxx/scp/staff.php

and found no soloution.

osTicket v1.14.4 //

PHP 7.2.24-0ubuntu0.18.04.7 // MySQL 10.1.47 // Apache web server

Thank you for your help

Edit #1

Here is an another failure from audit.
AH01071: Got error 'PHP message: PHP Warning: include(): Failed opening 'templates/ticket-audit.tmpl.php' for inclusion (include_path='./:/var/www/vhosts/xxxx.xxxx/httpdocs/osticket/include/:/var/www/vhosts/xxxxx.xxxxx/httpdocs/osticket/include/pear/') in phar:///var/www/vhosts/xxxxxx.xxxxxx/httpdocs/osticket/include/plugins/audit.phar/audit.php on line 80\n', referer: https://xxxxxx.xxxxxx/scp/tickets.php?id=30505

    cine Failed opening 'templates/agent-audit.tmpl.php' for inclusion

    This sounds like the permissions on your file(s) are wrong. It says that it (the script/php/webserver) cannot open the file. You should check the ownership and permissions on that file (and well probably all your files) in the site.

    hm ok, all plugins have the same rights, the other plugins are work correctly

    The folders have rwx r-x r-x
    and files rw- r-- r--

    Your response does not convey file ownership.

    Owner ist the hommpage xyz.com and Group is psacln on all Files and folders

    and how does that compare to the what user your webserver / php is running as?

    Web and php run as www-data

    and so the files/folders are also owned by www-data?

    no, every homepage is in its own name. As I said, everything works regardless of whether
    plugins in osticket or self-sufficient apps. Only the audit plugin causes problems

    4 days later

    @cine

    I would suggest upgrading to v1.14.5, downloading the latest build of the Audit Plugin, and retest.

    Cheers.

    4 months later

    i got the solution, yes of course there is any issue in audit logs in 1.14.1, but you may go on following location to check audit logs.
    Users-> Click on required user -> than click on Audits

    Write a Reply...