• Resolved kingmichl

    (@kingmichl)


    Hi,

    i am getting this warning after doing updates:

    Warning: Undefined array key “wght” in /app/site/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-fonts.php on line 151

    Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /app/site/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-fonts.php:151 Stack trace: #0 /app/site/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-fonts.php(151): in_array(‘400’, NULL) #1 /app/site/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-fonts.php(79): WP_Optimize_Minify_Fonts::parse_font_api2_url(‘https://fonts.g…’) #2 /app/site/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-fonts.php(48): WP_Optimize_Minify_Fonts::parse_font_url(‘https://fonts.g…’) #3 /app/site/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-front-end.php(618): WP_Optimize_Minify_Fonts::concatenate_google_fonts(Array) #4 /app/site/wp-includes/class-wp-hook.php(324): WP_Optimize_Minify_Front_End->process_header_css(”) #5 /app/site/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /app/site/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /app/site/wp-includes/functions.wp-styles.php(57): do_action(‘wp_print_styles’) #8 /app/site/wp-includes/class-wp-hook.php(324): wp_print_styles(false) #9 /app/site/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /app/site/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /app/site/wp-includes/general-template.php(3192): do_action(‘wp_head’) #12 /app/site/wp-content/themes/astra/header.php(31): wp_head() #13 /app/site/wp-includes/template.php(810): require_once(‘/app/site/wp-co…’) #14 /app/site/wp-includes/template.php(745): load_template(‘/app/site/wp-co…’, true, Array) #15 /app/site/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #16 /app/site/wp-content/themes/astra/page.php(20): get_header() #17 /app/site/wp-includes/template-loader.php(106): include(‘/app/site/wp-co…’) #18 /app/site/wp-blog-header.php(19): require_once(‘/app/site/wp-in…’) #19 /app/index.php(17): require(‘/app/site/wp-bl…’) #20 {main} thrown in /app/site/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-fonts.php on line 151

    I have not found out any specific plugin that causes this. Any hints?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter kingmichl

    (@kingmichl)

    deactivating google fonts fixes the problem. how to correct this issue?

    Plugin Support Damilare

    (@deabiodun)

    Hi!
    When you said “deactivating google fonts fixes the problem”, are you referring to a Google font plugin or the font feature in WPO plugin?

    Thread Starter kingmichl

    (@kingmichl)

    I mean the setting in WPO plugin

    Plugin Support Damilare

    (@deabiodun)

    Hi!
    To help with investigating this further, please provide your WPO System Report. This can be found at WPO > Settings > System Status > Download report.

    Regards.

    Thread Starter kingmichl

    (@kingmichl)

    I have created a report. Please let me know where to send this.

    Plugin Support Damilare

    (@deabiodun)

    Hi @kingmichl!
    Are you still experiencing this issue?

    Thread Starter kingmichl

    (@kingmichl)

    Hi, i guess so, unfortunately it is long time ago and I do not even know anymore on which site this is. I have created the report to send to you already more than a month ago.

    To which address I should send the report?

    Michael

    Plugin Support Damilare

    (@deabiodun)

    Unfortunately, all conversations need to be kept in the forum as per WP policies.
    You can remove sensitive information from the report and share the rest here.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Undefined array key “wght” when activate minimize’ is closed to new replies.