Host Google Fonts locally – Fatal Error
-
Hello,
I have switched off local hosting of fonts in Twentig and after some changes in the Twenty Twenty Two theme settings I have switched it back on and have received the following fatal error as a result when trying to load the website:
Uncaught TypeError: Cannot access offset of type string on string in /home/example/public_html/wp-content/plugins/twentig/inc/wptt-webfont-loader.php:321 Stack trace: #0 /home/example/public_html/wp-content/plugins/twentig/inc/wptt-webfont-loader.php(193): WPTT_WebFont_Loader->get_local_files_from_css() #1 /home/example/public_html/wp-content/plugins/twentig/inc/wptt-webfont-loader.php(677): WPTT_WebFont_Loader->get_styles() #2 /home/example/public_html/wp-content/plugins/twentig/inc/block-themes.php(123): wptt_get_webfont_styles(‘https://fonts.g…’) #3 /home/example/public_html/wp-includes/class-wp-hook.php(308): twentig_block_theme_enqueue_scripts(”) #4 /home/example/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /home/example/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/example/public_html/wp-includes/script-loader.php(2194): do_action(‘wp_enqueue_scri…’) #7 /home/example/public_html/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts(”) #8 /home/example/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #9 /home/example/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /home/example/public_html/wp-includes/general-template.php(3049): do_action(‘wp_head’) #11 /home/example/public_html/wp-includes/template-canvas.php(17): wp_head() #12 /home/example/public_html/wp-includes/template-loader.php(106): include(‘/home/example/…’) #13 /home/example/public_html/wp-blog-header.php(19): require_once(‘/home/example/…’) #14 /home/example/public_html/index.php(17): require(‘/home/example/…’) #15 {main} thrown in /home/example/public_html/wp-content/plugins/twentig/inc/wptt-webfont-loader.php on line 321
The local hosting works for other themes and the website works fine without the option switched on, but together the error occurs and re-installing Twentig has not solved it. Have you come across the issue before or have any idea how to solve it? Thank you!
- The topic ‘Host Google Fonts locally – Fatal Error’ is closed to new replies.