I upgraded Use Any Font and this caused fatal error on my site:
WordPress version 6.1.7
Active theme: Bridge (version 10.1.1)
Current plugin: Use Any Font (version 6.3.11)
PHP version 7.4.33
An error of type E_ERROR was caused in line 62 of the file /home/eurambee/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_block_editor_functions.php. Error message: Uncaught Error: Call to undefined function wp_theme_has_theme_json() in /home/eurambee/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_block_editor_functions.php:62
Stack trace:
#0 /home/eurambee/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_block_editor_functions.php(49): uaf_update_theme_json_font(Array)
#1 /home/eurambee/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_font_functions.php(229): uaf_block_editor_custom_fonts()
#2 /home/eurambee/public_html/wp-content/plugins/use-any-font/includes/functions/uaf_admin_functions.php(137): uaf_write_css()
#3 /home/eurambee/public_html/wp-includes/class-wp-hook.php(308): uaf_plugin_initialize(”)
#4 /home/eurambee/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#5 /home/eurambee/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /home/eurambee/public_html/wp-settings.php(617): do_action(‘init’)
#7 /home/eurambee/public_html/wp-config.php(89): require_o
The wp_theme_has_theme_json() function was introduced in WordPress version 6.2, and since you are currently using version 6.1.7, this is likely causing the fatal error. To resolve this issue, we recommend updating your WordPress installation to the latest version (6.7.1). This should resolve the error you are experiencing.
Best regards,
Dinesh Karki
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Upgrade caused Fatal Error’ is closed to new replies.