• scott8035

    (@scott8035)


    It seems that the latest release broke something. I now get the following error (and I’m making no attempt to access and SVG file or anything):

    Warning: Trying to access array offset on value of type null in /www/devph_206/public/wp-content/plugins/svg-support/functions/mime-types.php on line 22
    Fatal error: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in /www/devph_206/public/wp-content/plugins/svg-support/functions/mime-types.php:28
    Stack trace:
    #0 /www/devph_206/public/wp-content/plugins/svg-support/functions/mime-types.php(28): array_intersect(NULL, Array)
    #1 /www/devph_206/public/wp-includes/class-wp-hook.php(310): bodhi_svgs_upload_mimes(Array)
    #2 /www/devph_206/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #3 /www/devph_206/public/wp-includes/functions.php(3546): apply_filters('upload_mimes', Array, NULL)
    #4 /www/devph_206/public/wp-includes/block-editor.php(211): get_allowed_mime_types()
    #5 /www/devph_206/public/wp-includes/class-wp-theme-json-resolver.php(288): get_default_block_editor_settings()
    #6 /www/devph_206/public/wp-includes/class-wp-theme-json-resolver.php(540): WP_Theme_JSON_Resolver::get_theme_data()
    #7 /www/devph_206/public/wp-includes/script-loader.php(3205): WP_Theme_JSON_Resolver::get_merged_data()
    #8 /www/devph_206/public/wp-includes/script-loader.php(3401): {closure}()
    #9 /www/devph_206/public/wp-includes/class-wp-hook.php(308): {closure}('')
    #10 /www/devph_206/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #11 /www/devph_206/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #12 /www/devph_206/public/wp-settings.php(639): do_action('wp_loaded')
    #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1336): require('/www/devph_206/...')
    #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1254): WP_CLI\Runner->load_wordpress()
    #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
    #17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
    #18 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
    #19 /usr/local/bin/wp(4): include('phar:///usr/loc...')
    #20 {main}
      thrown in /www/devph_206/public/wp-content/plugins/svg-support/functions/mime-types.php on line 28
    Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter scott8035

    (@scott8035)

    FYI, reverting to 2.4.2 fixed the problem. I use “WP Rollback” to do so.

    Andreas

    (@westzipfler)

    I have exactly the same problem as Scott.
    Thanks, Scott, for hinting at WP Rollback.

    PS:

    I discovered the problem when using wp-cli to update a test website including all plugins and themes. Right after updating svg-support the error occured with each and every operation that involved using core functionality. I couldn’t even uninstall svg-support using wp-cli; I had to remove the directory ~/wp-content/plugins/svg-support manually to be able to continue.

    wp plugin install –version=2.4.2 svg-support
    wp plugin auto-updates disable svg-support

    reverted to the previous version and disabled auto-updates for now.

    I hope the next update of svg-support fixes the problem.

    Regards

    Andreas

    • This reply was modified 2 years ago by Andreas. Reason: additional remarks, wp-cli commands used
    rubidot

    (@rubidot)

    I had the same problem. Going back to 2.5.1 seems good enough to me.

    wp plugin install svg-support --version=2.5.1 --skip-plugins --force

    Thread Starter scott8035

    (@scott8035)

    Version 2.5.3 does not fix this problem.

    umduck

    (@umduck)

    Experiencing the same issues as mentioned here.

    Warning: array_intersect(): Expected parameter 1 to be an array, null given in /public/wp-content/plugins/svg-support/functions/mime-types.php on line 28

    Will try and roll back plugin for now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: Uncaught TypeError: array_intersect(), mime-types.php line 28’ is closed to new replies.