Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#34238 closed defect (bug) (fixed)

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

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

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

  • Milestone Awaiting Review → 4.4

Introduced in [34855].

#2 @blogan
11 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
11 years ago

  • Owner set to wonderboymusic
  • Resolution → fixed
  • Status new → 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.