WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#34238 closed defect (bug) (fixed)

Divide by zero in wp-includes/media.php on line 916

Reported by: blogan Owned by: wonderboymusic
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.4
Component: Media Keywords:
Focuses: Cc:

Description

I get a divide by zero error in wp-includes/media.php on line 916. This is with no plugins active and using the Twenty Fifteen theme.

Change History (3)

#1 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 4.4

Introduced in [34855].

#2 @blogan
5 years ago

I'm not sure but I think this might be a false alarm. I noticed that it happened only on some images and yet it didn't seem to be related to which image size was showing.

I had been using EWWW image optimizer. With it disabled, I regenerated thumbnails for a page that had exhibited the error. It seems to have eliminated the problem.

#3 @wonderboymusic
5 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 35081:

Media: avoid "divide by zero" in wp_get_attachment_image_srcset_array().

Fixes #34238.

Note: See TracTickets for help on using tickets.