• Hi,

    Since PHP 8, undefined array keys have changed from notices to warnings which raises Exceptions in various situations and setups.

    There are multiple undefined array keys accessed in admin/admin.php, especially on line 658 and 659. I’ve had to fix it with the null coalesce operator to be able to save my Tag Manager id.

    
    $container_on_off = (bool) ($options['container-on'] ?? false);
    $container_compat = (int) ($options['compat-mode'] ?? 0);
    

    Hope this helps for others stumbling onto this error and hope the plugin is updated and tested for php 8 soon.

    Thanks!

The topic ‘PHP 8 errors’ is closed to new replies.