• Resolved tgelles

    (@tgelles)


    Since upgrading our apache server to php 8.1, this plugin is crashing a few of my sites (front and back end), especially those with the Events Calendar 6.0.1.1 activated. The error given is:

    PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /[…]/wp-content/plugins/wp-security-audit-log/classes/AlertManager.php:520

    As I’d rather not edit core files to fix this, is there a patch available?

    I am running WordPress 6.0.2.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support robertabela

    (@robert681)

    Thank you for using our plugin @tgelles

    I am sorry to read about your issue. Someone else has already reported this in the Premium edition of our plugin. We already have a patch for this.

    Later on today we will upload a patch for the Free edition and we’ll update this ticket so you can get the patch.

    Thank you for your patience and cooperation.

    Plugin Support Danny Jones

    (@distinctivepixels)

    Hello @tgelles

    I have uploaded a patched version of the plugin which should resolve this for you. To download it please head to https://www.wpwhitesecurity.com/support/plugins-patches/

    Once done, if you continue to experience any issues – do let me know.

    Kind regards, Daniel – Support @ WP White Security

    Thread Starter tgelles

    (@tgelles)

    Thanks for the prompt response!

    Unfortunately, when I attempt to activate the patched version of the plugin it triggers a fatal error:

    Fatal error: Uncaught Error: Undefined constant “WSAL_CONN_PREFIX”
    in /[…]/wp-content/plugins/wp-security-audit-log/classes/Migration/class-migration.php on line 581

    Plugin Support Danny Jones

    (@distinctivepixels)

    Hello @tgelles

    Sorry to read you are having an issue – iv just tested the zip here again and its installing without an issue.

    Can I ask, are you deactivating your current version of the plugin prior to activating the new build?

    Either way – im more than happy to take a direct look into this if you can drop me an email on [email protected]. I am certain we will get you up and running in no time.

    Look forward to hearing from you.

    Kind regards, Daniel – Support @ WP White Security

    Thread Starter tgelles

    (@tgelles)

    Just emailed!

    Which of the patches on https://www.wpwhitesecurity.com/support/plugins-patches/ fixes the in_array() issue? I couldn’t work it out from the titles.

    Plugin Support robertabela

    (@robert681)

    Hello @pjohanneson

    Thank you for using our plugin. As per the guidelines of these forums, please open your own support thread so we can assist you.

    Thank you for your understanding and cooperation.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Uncaught TypeError: in_array() in AlertManager.php:520’ is closed to new replies.