Support » Fixing WordPress » theme-compat/embed-content.php returning Division by zero

  • OC2PS

    (@sooskriszta)


    Warning: Division by zero in public_html/wp-includes/theme-compat/embed-content.php on line 33

    How do I diagnose and fix this issue?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,
    You are using the commercial theme. Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product.
    Thanks
    Mohammad

    Thread Starter OC2PS

    (@sooskriszta)

    Mohammad,

    As you can see, the error is coming from theme-compat, not from the active theme’s template. Theme Compat is packaged with WordPress.

    Hi,
    I apologize. I really understand it theme compact. I would suggest to upload the latest version of WordPress. Hope it will help you sure.
    Thanks
    Mohammad

    The error may be thrown by a core file but that doesn’t mean it’s caused by a core file, it’s most likely initiated by the theme or plugin. Since we can’t debug your theme your best bet is to contact the developer for support. If your theme is no longer supported and you want to debug, you would need to check your server error log or enable stack trace error messages. It’s also worth noting that “Warnings” are pretty harmless errors and probably won’t cause any critical issues. I usually recommend turning off debug to prevent those on live production environments and only keep them on development environments.

    Thread Starter OC2PS

    (@sooskriszta)

    wp_debug is off. I still see the warning.

    It’s being thrown by the core file, and the minimum I would expect on these forums is to learn which cases the theme-compat/embed-content.php throws this error.

    It’s being thrown because WP is trying to get the height of an attachment and it is returning 0.

    Hi,
    Please provide me specific page url with this issue.
    Thanks
    Mohammad

    Thread Starter OC2PS

    (@sooskriszta)

    @mdshak:
    https://hennalap.com/hennafestes-henna-tetovalas/henna-vasarlas/

    Have suppressed the warning at server level for now.

    • This reply was modified 5 years, 1 month ago by OC2PS.
    • This reply was modified 5 years, 1 month ago by OC2PS.

    Hi,
    Are you getting this issue beside this page https://hennalap.com/hennafestes-henna-tetovalas/henna-vasarlas/?
    Thanks
    Mohammad

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘theme-compat/embed-content.php returning Division by zero’ is closed to new replies.