greenpeace / planet4

Built on top of Wordpress tech, Greenpeace Planet 4 powers digital platforms to engage with millions and win campaigns around the world.
https://planet4.greenpeace.org
Creative Commons Attribution Share Alike 4.0 International
66 stars 27 forks source link

PLANET-5779 ErrorException: Warning: A non-numeric value encountered #131

Closed planet-4 closed 3 years ago

planet-4 commented 3 years ago

Sentry Issue: [PLANET4-MN|https://sentry.greenpeace.org/greenpeace/planet4/issues/1252/?referrer=jira_integration]

{code} ErrorException: Warning: A non-numeric value encountered File "/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/blocks/class-carouselheader.php", line 115, in P4GBKS\Blocks\CarouselHeader::prepare_data $y = isset( $slide['focal_points']['y'] ) ? round( $slide['focal_points']['y'] * 100, 0 ) . '% ' : '50%'; File "/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/blocks/class-base-block.php", line 38, in P4GBKS\Blocks\Base_Block::render $data = $this->prepare_data( $attributes ); ... (10 additional frame(s) were not displayed) {code}

Reporter: nroussos
Sections: Block: Covers

Potentially affected repositories: planet4-plugin-gutenberg-blocks

comzeradd commented 3 years ago

Fixed at greenpeace/planet4-plugin-gutenberg-blocks#472