Title: theme-compat/embed-content.php returning Division by zero
Last modified: March 28, 2017

---

# theme-compat/embed-content.php returning Division by zero

 *  [SK](https://wordpress.org/support/users/sooskriszta/)
 * (@sooskriszta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/)
 * `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)

 *  [mdshak](https://wordpress.org/support/users/mdshak/)
 * (@mdshak)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963589)
 * 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 [SK](https://wordpress.org/support/users/sooskriszta/)
 * (@sooskriszta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963625)
 * 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.
 *  [mdshak](https://wordpress.org/support/users/mdshak/)
 * (@mdshak)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963650)
 * 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
 *  [csloisel](https://wordpress.org/support/users/csloisel/)
 * (@csloisel)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963659)
 * 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 [SK](https://wordpress.org/support/users/sooskriszta/)
 * (@sooskriszta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963693)
 * `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.
 *  [csloisel](https://wordpress.org/support/users/csloisel/)
 * (@csloisel)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963716)
 * It’s being thrown because WP is trying to get the height of an attachment and
   it is returning `0`.
 *  [mdshak](https://wordpress.org/support/users/mdshak/)
 * (@mdshak)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963735)
 * Hi,
    Please provide me specific page url with this issue. Thanks Mohammad
 *  Thread Starter [SK](https://wordpress.org/support/users/sooskriszta/)
 * (@sooskriszta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963768)
 * [@mdshak](https://wordpress.org/support/users/mdshak/):
    [https://hennalap.com/hennafestes-henna-tetovalas/henna-vasarlas/](https://hennalap.com/hennafestes-henna-tetovalas/henna-vasarlas/)
 * Have suppressed the warning at server level for now.
    -  This reply was modified 9 years, 2 months ago by [SK](https://wordpress.org/support/users/sooskriszta/).
    -  This reply was modified 9 years, 2 months ago by [SK](https://wordpress.org/support/users/sooskriszta/).
 *  [mdshak](https://wordpress.org/support/users/mdshak/)
 * (@mdshak)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963870)
 * Hi,
    Are you getting this issue beside this page [https://hennalap.com/hennafestes-henna-tetovalas/henna-vasarlas/](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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [mdshak](https://wordpress.org/support/users/mdshak/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/theme-compatembed-content-php-returning-division-by-zero/#post-8963870)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
