Skip to content

ErrorException: Warning: Undefined array key "fontVariant" #2768

@sentry

Description

@sentry

Sentry Issue: THEMEISLE-26G1

ErrorException: Warning: Undefined array key "fontVariant"
  File "/wp-content/plugins/otter-blocks/inc/class-base-css.php", line 154, in ThemeIsle\GutenbergBlocks\Base_CSS::get_google_fonts
    if ( ! in_array( $attr['fontVariant'], self::$google_fonts[ $attr['fontFamily'] ]['fontvariant'], true ) ) {
  File "/wp-content/plugins/otter-blocks/inc/css/blocks/class-button-group-css.php", line 36, in ThemeIsle\GutenbergBlocks\CSS\Blocks\Button_Group_CSS::render_css
    $this->get_google_fonts( $block['attrs'] );
  File "/wp-content/plugins/otter-blocks/inc/class-base-css.php", line 298, in ThemeIsle\GutenbergBlocks\Base_CSS::cycle_through_static_blocks
    $style .= $path->render_css( $block );
  File "/wp-content/plugins/otter-blocks/inc/class-base-css.php", line 310, in ThemeIsle\GutenbergBlocks\Base_CSS::cycle_through_static_blocks
    $style .= $this->cycle_through_static_blocks( $block['innerBlocks'], false );
  File "/wp-content/plugins/otter-blocks/inc/class-base-css.php", line 310, in ThemeIsle\GutenbergBlocks\Base_CSS::cycle_through_static_blocks
    $style .= $this->cycle_through_static_blocks( $block['innerBlocks'], false );
...
(16 additional frame(s) were not displayed)

Metadata

Metadata

Labels

bugThis label could be used to identify issues that are caused by a defect in the product.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions