Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#34238 closed defect (bug) (fixed)

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

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


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
8 years ago

  • Milestone changed from Awaiting Review to 4.4

Introduced in [34855].

#2 @blogan
8 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
8 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.