Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
planet-4 opened this issue Dec 9, 2020 · 1 comment
Closed
Assignees
Labels
Backend tickets that mostly require php knowledge Bug Dev development tickets Easy Good First Issue

Comments

@planet-4
Copy link

planet-4 commented Dec 9, 2020

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 comzeradd added the Backend tickets that mostly require php knowledge label Dec 9, 2020
@comzeradd
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend tickets that mostly require php knowledge Bug Dev development tickets Easy Good First Issue
Projects
None yet
Development

No branches or pull requests

3 participants