• Resolved davidafoster

    (@davidafoster)


    Is anyone else encountering this error? I’ve had Use Any Font working fine on my WP site on Bluehost for some time, but this morning my whole site went down, and Bluehost support said it was because of the Use Any Font plugin which was generating this error:

    plugins/use-any-font/includes/functions/uaf_block_editor_functions.php on line 59

    They disabled the plugin for me so I could get back into wp-admin. I saw there was a new version of the plugin, which I installed, and then tried to Activate. But it generated another error. (At least it didn’t take down the whole site this time!) I’ll paste the error in all it’s gory detail below.

    Any information or advice appreciated!

    Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /home3/ksbmjemy/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_block_editor_functions.php:59 Stack trace: #0 /home3/ksbmjemy/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_block_editor_functions.php(59): array_filter(NULL, Object(Closure)) #1 /home3/ksbmjemy/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_block_editor_functions.php(49): uaf_update_theme_json_font(Array) #2 /home3/ksbmjemy/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_font_functions.php(229): uaf_block_editor_custom_fonts() #3 /home3/ksbmjemy/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_admin_functions.php(140): uaf_write_css() #4 /home3/ksbmjemy/public_html/wp-includes/class-wp-hook.php(310): uaf_plugin_activated(”) #5 /home3/ksbmjemy/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) #6 /home3/ksbmjemy/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home3/ksbmjemy/public_html/wp-admin/plugins.php(194): do_action(‘activate_use-an…’) #8 {main} thrown in /home3/ksbmjemy/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_block_editor_functions.php on line 59

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Dnesscarkey Support

    (@dcsupport)

    @davidafoster ,

    Thank you so much for reporting it. When the theme.json file is empty or doesn’t have any previous font definitions, its error was coming up.

    Have fixed it in 6.3.04. Please update it.

    Thanking You.

    Thread Starter davidafoster

    (@davidafoster)

    Thanks for attending to this. The new plugin version does not throw any errors. However, now all of the fonts throughout my entire site have changed! To a serif font I don’t recognize. Do you have any idea how this happened, and how I can get back to the way it was??

    Plugin Support Dnesscarkey Support

    (@dcsupport)

    Hi,

    Can you please share me your site url ? I will check and try finding the cause.

    Thanks

    Thread Starter davidafoster

    (@davidafoster)

    Thanks. Could we communicate about this privately? If you are willing, please send me contact information at david.a.foster at nc.rr.com.

    I luckily had an old backup of my Themes, which I restored, and my site looks like it is back to normal. Use Any Font is deactivated, and I am scared to ever activate it again.

    If this is helpful… in the block editor, normally when I look at the dropdown menu for Font Family there were about a dozen different fonts (including Default). When I activated your 6.3.04 plug in this morning and most/all fonts in my site changed, I looked at this same dropdown menu, and there were just two: Default, and Playbill (which was a font I had imported with UAF.) Now after restoring my theme, its back to how it was with a dozen font options.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New error with version 6.3.03’ is closed to new replies.