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

[Bug] Dividing by Zero in the Header #708

Closed
joe9663 opened this issue Jun 13, 2022 · 1 comment · Fixed by #719
Closed

[Bug] Dividing by Zero in the Header #708

joe9663 opened this issue Jun 13, 2022 · 1 comment · Fixed by #719
Labels
bug General bug issues
Milestone

Comments

@joe9663
Copy link

joe9663 commented Jun 13, 2022

Describe the bug
DreamHost contacted us about an issue loading the Customizer. User's site was returning a DivideByZeroError on class-boldgrid-framework-control-col-width.php:119

Add error handling to ensure that we don't break existence if $items_in_row evaluates to zero.

if count( $row['items'] ) === 0 : continue

@joe9663
Copy link
Author

joe9663 commented Jun 24, 2022

@jamesros161 Another DreamHost user reported this same issue today. Rolling back to PHP 7.4 fixed the problem for them too.

@jamesros161 jamesros161 added the bug General bug issues label Jul 6, 2022
@jamesros161 jamesros161 added this to the 2.16.2 milestone Jul 19, 2022
jamesros161 added a commit that referenced this issue Aug 1, 2022
@jamesros161 jamesros161 linked a pull request Aug 1, 2022 that will close this issue
jamesros161 added a commit that referenced this issue Aug 1, 2022
* resolves #708

* simplify ternary+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug General bug issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants