Title: PHP errors
Last modified: August 13, 2024

---

# PHP errors

 *  [ib1222](https://wordpress.org/support/users/ib1222/)
 * (@ib1222)
 * [2 years ago](https://wordpress.org/support/topic/urgent-php-errors/)
 * Hey, since 1 month I am getting these errors in our phperrorlog / debug log. 
   Customers used to get this in front-end also. Please how to fix that these errors
   don’t come anymore? It comes everyday, mostly after a customer buys.
 * These 2 errors:
 *  voor meer informatie. (Dit bericht is toegevoegd in versie 3.0.) in /home/customer/
   www/(MYSITE)/public_html/wp-includes/functions.php on line 6078
   [28-May-2024 
   08:02:48 UTC] PHP Deprecated: Functie get_used_coupons is sinds versie 3.7 verouderd!
   Gebruik in plaats daarvan WC_Abstract_Order::get_coupon_codes. in /home/customer/
   www/(MYSITE)/public_html/wp-includes/functions.php on line 6078

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Stef](https://wordpress.org/support/users/serafinnyc/)
 * (@serafinnyc)
 * [2 years ago](https://wordpress.org/support/topic/urgent-php-errors/#post-17786131)
 * Do you have access to your Config file [@ib1222](https://wordpress.org/support/users/ib1222/)?
   you can simply go there and turn off debug mode
 * Look for a link that says
 *     ```wp-block-code
       // Enable WP_DEBUG mode
       define( 'WP_DEBUG', true );
       ```
   
 * and change it to
 *     ```wp-block-code
       // Enable WP_DEBUG mode
       define( 'WP_DEBUG', false );
       ```
   
 * If you see another line that has
 *     ```wp-block-code
       define( 'WP_DEBUG_LOG', true ); // set this to false
       ```
   
 * Lastly, if you see
 *     ```wp-block-code
       // Disable display of errors and warnings
       define( 'WP_DEBUG_DISPLAY', false ); // make sure this is set to false
       @ini_set( 'display_errors', 0 ); // make sure this is set to 0
       ```
   
 *  Thread Starter [ib1222](https://wordpress.org/support/users/ib1222/)
 * (@ib1222)
 * [2 years ago](https://wordpress.org/support/topic/urgent-php-errors/#post-17819596)
 * Hey, thank you. Yes I do have access. But this will turn off all errors and problems,
   so then we can’t see the problems on site. That’s not what we want. We want to
   identify problems and fix/resolve it… otherwise site will break and problems.
 *  [carolm29 (woo-hc)](https://wordpress.org/support/users/carolm29/)
 * (@carolm29)
 * [2 years ago](https://wordpress.org/support/topic/urgent-php-errors/#post-17820759)
 * Hey there, [@ib1222](https://wordpress.org/support/users/ib1222/)! Thanks for
   contacting us. I’m happy to help you.
 * Do you have any custom code on your website?
 * Can you please share the System Status Report which you can find via WooCommerce
   > Status > Get system report > Copy for support so we can take a look?
 * Looking forward to your reply.
 * Have a wonderful day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP errors’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [carolm29 (woo-hc)](https://wordpress.org/support/users/carolm29/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/urgent-php-errors/#post-17820759)
 * Status: not resolved