I upgraded to osTicket 1.14.2 and am trying to install audit plugin.
I read the installation instructions and moved audit.phar to include/plugin folder.

When I try to add the plugin through the Admin Panel

It doesn't show the plugin information and it cannot be enabled.

Any idea why that might be?

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? (see Admin panel -> Dashboard -> Information)

That error occurs when the ticket system thinks that the plugin does not exist on the filesystem.

I found this in the error logs
[01-May-2020 17:02:32 UTC] PHP Warning: array_merge(): Argument #2 is not an array in /home/supportticket/public_html/include/class.plugin.php on line 304

Server Information
osTicket Version v1.14.2 (cba6035) — Up to date
Web Server Software Apache
MySQL Version 10.1.44
PHP Version 7.1.33
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 UTC
Database Information and Usage
Schema supportticket_76 (localhost)
Schema Signature 4bd47d94b10bd8a6bab35c119dadf41f
Space Used 2.83 MiB
Space for Attachments 0.03 MiB
Timezone EDT (Interpreted as America/New_York)

@Jshen

Did you download the plugin from our website recently or is this an older download of the plugin?

Cheers.

    KevinTheJedi Directly from the website
    a5fe9b155a57b77cd5f2009aa932f681aa6f1cd05906a8b5712b57efc6c3d094 audit.phar

    @Jshen

    Just tested this and it's working correctly. We were making updates to the site today so maybe you caught it at the wrong time. Just re-download it and retest.

    Cheers.

      KevinTheJedi Still doesn't seem to work.

      My issue is with Zend opCache

      This is the error I found in my logs with opcache enabled
      [01-May-2020 18:26:21 UTC] PHP Warning: array_merge(): Argument #2 is not an array in /home/supportticket/public_html/include/class.plugin.php on line 304

      One of the persons suggested to disable opcache:
      https://wordpress.org/support/topic/warning-array_merge-argument-2-is-not-an-array-in-load-php-on-lin-63/

      Do you know of another fix so I don't have to disable opcache?

      Thanks

      @Jshen

      Try reading this article to see if any of the information helps. I can say that I and a coworker (the author of the plugin) have OPCache installed and enabled and we don’t run into this issue so it's looking like an OPCache configuration issue specific to your environment.

      Cheers.

        KevinTheJedi Thanks. I found that opcache.validate_permission=0 change gets the plugins to load.
        Could you check if your environment has the same setting?

        @Jshen

        Yes, I can confirm the setting in my environment is the same. Mine is actually commented out but the default is 0 which is Disabled.

        Cheers.

        Write a Reply...