• When installing/activating the Clerk module I’m getting the following error. We’re running PHP 7.4 on this instance.

    Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /<website-directory>/app/plugins/clerkio/includes/class-clerk-visitor-tracking.php:28 Stack trace: #0 /<website-directory>/app/plugins/clerkio/includes/class-clerk-visitor-tracking.php(13): Clerk_Visitor_Tracking->initHooks() #1 /<website-directory>/app/plugins/clerkio/includes/class-clerk-visitor-tracking.php(429): Clerk_Visitor_Tracking->__construct() #2 /<website-directory>/app/plugins/clerkio/clerk.php(41): require_once('...') #3 /<website-directory>/app/plugins/clerkio/clerk.php(23): Clerk->includes() #4 /<website-directory>/app/plugins/clerkio/clerk.php(70): Clerk->__construct() #5 /<website-directory>/wp/wp-admin/includes/plugin.php(2313): include_once('...') #6 /<website-directory>/wp/wp-admin/plugins.php(192): plugin_sandbox_scrape() #7 {main} thrown in /<website-directory>/app/plugins/clerkio/includes/class-clerk-visitor-tracking.php on line 28

Viewing 1 replies (of 1 total)
  • Thread Starter kipzes

    (@kipzes)

    I think this issue can be ommitted by replacing line 28 in the class-clerk-visitor-tracking.php file with the following:

    $options = get_option('clerk_options') !== false ? get_option('clerk_options') : [];

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error when activating/installing module’ is closed to new replies.