[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 22:18:53 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 Abigailm):
I saw no pattern and have seen this error on multiple sites. It seems to
be something that is triggered by bots that are spidering sites -- that
is, when I have been able to trace the error in site logs, it often is
triggered by a bot such as baidu. It does seem to help to add this line
to the robots.txt for the site:
User-agent: *
Disallow: */embed/
Though that is simply taking a step to discourage the triggering event,
rather than actually addressing the underlying problem.
And the reason that I am only seeing this with bots may simply reflect
that my site content is not commonly embedded elsewhere, so real human
users wouldn't ordinarily be viewing the embeds.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40931#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list