[wp-trac] [WordPress Trac] #40931: Warning: Division by zero in wp-includes/theme-compat/embed-content.php on line 33

WordPress Trac noreply at wordpress.org
Wed Sep 13 14:22:55 UTC 2017


#40931: Warning: Division by zero in wp-includes/theme-compat/embed-content.php on
line 33
--------------------------------------+--------------------
 Reporter:  aegis123                  |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.9
Component:  Embeds                    |     Version:  4.7.5
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+--------------------

Comment (by SergeyBiryukov):

 The warning is displayed when the post has a featured image with corrupted
 metadata: the image has a particular size, but its `height` attribute is
 empty.

 I have no objections to checking the value to avoid the warning, but it
 would be nice to find out what causes the metadata to become corrupted
 like that, as it could cause other issues elsewhere.

 @aegis123, @Abigailm: Were you able to identify any pattern in the
 affected posts? What kind of a featured image (format, size) they have?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40931#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list