Support » Fixing WordPress » PHP Warning: Division by zero

  • I am getting multiple messages in my error log that say:
    “PHP Warning: Division by zero in /…./public_html/events/wp-includes/comment-template.php on line 1381”.
    How do I fix this since anything in wp-includes is a core file?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Seventeen theme to rule-out a theme-specific issue (theme functions can interfere like plugins).

    Hello,

    I turned off all the plugins and tried to test but if The Events Calendar plugin is deactivated, all I get is a blank page because it supplies something needed in the functions.php file. However, when I turn the others on and off, it is consistent that none of them are creating the error. So, it seems to be coming from The Events Calendar plugin which disables the site when deactivated and can’t really be tested. I’ll contact those developers and see what they suggest.

    Thanks.

    Hi, @sleeplessindc

    This is a bug with WordPress core: https://core.trac.wordpress.org/ticket/40293

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: Division by zero’ is closed to new replies.