Title: Gravity Forms PDF disables error logging
Last modified: August 31, 2016

---

# Gravity Forms PDF disables error logging

 *  [phil1984](https://wordpress.org/support/users/phil1984/)
 * (@phil1984)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-pdf-disables-error-logging/)
 * Hi
 * I might be completely wrong on this, but after noticing that my production wordpress
   no longer logs any errors to my php logs when enabling Gravity PDF plugin. I 
   found this.
 *     ```
       if(WP_DEBUG !== true)
       {
           error_reporting(0);
       }
       ```
   
 * which runs at the very start of every page execution.
 * While stoping all errors being reported, this will also prevent error logging
   to log files, which obviously makes debugging issues on production servers (WP_DEBUG
   = false) very hard.
 * Can you either move this snippet to the actual pdf generation code, or perhaps
   just use ‘display_errors’. I think completely turning off error_reporting for
   all production servers is not really what you mean to do.
 * [https://wordpress.org/plugins/gravity-forms-pdf-extended/](https://wordpress.org/plugins/gravity-forms-pdf-extended/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jake Jackson](https://wordpress.org/support/users/blue-liquid-designs/)
 * (@blue-liquid-designs)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-pdf-disables-error-logging/#post-7133594)
 * Thanks for reporting this issue. We’ll look at resolving this problem in Gravity
   PDF 4.0 currently being worked on.

Viewing 1 replies (of 1 total)

The topic ‘Gravity Forms PDF disables error logging’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-pdf-extended/assets/icon-256x256.png?rev=3168987)
 * [Gravity PDF](https://wordpress.org/plugins/gravity-forms-pdf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-pdf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [error_log](https://wordpress.org/support/topic-tag/error_log/)
 * [error_reporting](https://wordpress.org/support/topic-tag/error_reporting/)
 * [gravity pdf](https://wordpress.org/support/topic-tag/gravity-pdf/)
 * [log](https://wordpress.org/support/topic-tag/log/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jake Jackson](https://wordpress.org/support/users/blue-liquid-designs/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-pdf-disables-error-logging/#post-7133594)
 * Status: not resolved