• Resolved Ben Dunkle

    (@empireoflight)


    WordPress version 6.2
    Active theme: 223child (version 0.0.1)
    Current plugin: Create Block Theme (version 1.9.0)
    PHP version 8.1.18

    Error Details
    =============
    An error of type E_ERROR was caused in line 336 of the file /home/jmm/public_html/wp-content/plugins/create-block-theme/admin/class-manage-fonts.php. Error message: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/jmm/public_html/wp-content/plugins/create-block-theme/admin/class-manage-fonts.php:336
    Stack trace:
    #0 /home/jmm/public_html/wp-content/plugins/create-block-theme/admin/class-manage-fonts.php(244): Manage_Fonts_Admin->manage_font_license(‘Mulish’, ‘mulish_normal_8…’)
    #1 /home/jmm/public_html/wp-includes/class-wp-hook.php(308): Manage_Fonts_Admin->save_google_fonts_to_theme(”)
    #2 /home/jmm/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #3 /home/jmm/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /home/jmm/public_html/wp-admin/admin.php(175): do_action(‘admin_init’)
    #5 /home/jmm/public_html/wp-admin/themes.php(10): require_once(‘/home/jmm/publi…’)
    #6 {main}
      thrown

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @empireoflight which Google Font did you try to add to your site?

    My site is using the TT3 theme and I only have Gutenberg active, I was able to add a Google Font Anaheim without any issues.

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use the parent TT3 theme. If the problem goes away, enable them one by one to identify the source of your troubles. If you can install plugins, install and activate Health Check

    It will add some additional features under the menu item under Tools > Site Health. On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off, and switch between themes, without affecting normal visitors to your site.

    Plugin Author Sarah Norris

    (@mikachan)

    Hi @empireoflight. I believe this error should be fixed in the latest version of the plugin, 1.10.0. Please try updating the plugin, and if this doesn’t work, @thelmachido’s suggestions above are a great starting point for narrowing down the problem.

    Thread Starter Ben Dunkle

    (@empireoflight)

    Ok, looks like it’s fixed. I had a TT3 child theme created with Create Block Theme and just that plugin active-tried to add Mulish and got the error.

    • This reply was modified 1 year, 6 months ago by Ben Dunkle.
    Plugin Author Sarah Norris

    (@mikachan)

    Glad it’s fixed! Let us know if you have any other issues.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Got a critical error when trying to add a google font’ is closed to new replies.