• With the latest version a PHP warning occurs (e.g. also when using the WP CLI:
    Warning: Trying to access array offset on value of type null in [...]/svg-support/functions/mime-types.php on line 22

    • This topic was modified 1 year, 12 months ago by strarsis.
Viewing 2 replies - 1 through 2 (of 2 total)
  • +1. Here’s what I changed that line too. Not sure if it’s a good fix or not but the error is gone.

    $allowed_roles_array = (array) $bodhi_svgs_options[‘restrict’] ?? array();

    Note, I think ?? only works with PHP 8 or higher. If using less than PHP 8, use isset() instead.

    Thread Starter strarsis

    (@strarsis)

    @jordanwebdev: Thanks!

    @benbodhi: If this could be fixed, it would be really great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to access array offset on value of type null (mime-types.php:22)’ is closed to new replies.