Coupon Creator

  • Coupon Creator Pro
    • Coupon Creator Pro
    • Feature Demos
    • Premium Features
    • Release Notes
    • New Feature Suggestions
  • Support
    • Contact Support
    • Guides (Start Here)
    • Frequently Asked Questions
    • Documentation
    • Tutorials
    • Support Terms
  • Contact
  • My Account
  • 0 items

Setting Up WordPress Debug

Posted on 11.17.16 | brianjessee |

Knowledge Base


Setting Up WordPress Debug

Last Updated: 6 years ago in Setup
When something breaks on your site and you are not sure of the cause turning on WordPress Debug can help narrow it down.

First, you should not show warnings, errors, and notices on a live site. If you have to use it on a live site, use it only for the time needed to resolve the issue and then turn it back off.

Second, you will need access to your wp-config.php to add the constants. Add them above this line:

/* That's all, stop editing! Happy blogging. */

Turn On WordPress Debug

To turn on error messages change the following to true:

define( 'WP_DEBUG', true );

This will display all PHP warnings, notices, and errors directly in the page source.

This can cause more problems such as headers already, so, it is a good idea to log all the errors in a file.

To do that add the following constants:

define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set('display_errors', 0);

Now all errors will be logged into the debug.log file found in your /wp-contents/ directory.

Your final coding will look like this for debugging PHP errors:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set('display_errors', 0);

Script Debug

You may find it useful to debug scripts and styles on your WordPress install, but by default WordPress loads the minified version.

Add this constant to load the full version of the files for easier debugging:

define( 'SCRIPT_DEBUG', true );

Looking for more help on debugging? Check out the WordPress Codex.

More Debugging Information

If you are looking for more in depth debugging and performance information beyond these methods. The Query Monitor Plugin is a great resource to have on all your development sites.

1 star1 star1 star1 star1 star
4.3 out of 5 stars
Downloads!

Get Started With Pro

Click to Buy Pro

What Users are Saying:


My client needed a coupon creator to add the mobile equivalent of clip-out paper coupons for their website. This Coupon Creator plugin was the best, most reliable solution that allows my client to easily make decent-to-good looking online coupons in-house with a minimum of design experience and fuss. Many other coupon plugins actually only generate coupon codes a-la RetailMeNot. This one lets you generate printable coupon-looking coupons or responsive, mobile-friendly discount coupons that users can pull up on their smartphone right there at the merchant.

— (typeadesign)

Wonderful Plugin & Top Notch Support – We purchased the pro version of this plugin after reviewing the free version for a while. The free version is great, but we needed some of the more advanced features that the pro version offered…more

— (infobeckettgraphics)

5-Star Rating All Day Long – I strongly recommend using this plugin if you EVER need a “Top Of The Line” well designed, clean coded, lightweight, easy to manage and style coupon plugin for whatever reason for your WP site….more

— Fish (fish911)

Simple Solution for My Site — First Rate Support! – A simple and useful plugin that offers a perfect solution for my website. … The videos are extremely helpful. Support from the developer was fast and very helpful…more

— Mike (msagman)

Great Support – I am using Coupon Creator fee version on two sites and love it! Easy to use and great support! Just what I was looking for.

— Kay (stahr5)

Login

  • Lost Password

Support Resources

  • Guides
  • Frequently Asked Questions
  • Documentation
  • Tutorials

Sign Up for Updates!

For the Coupon Creator Pro!
  • This field is for validation purposes and should be left unchanged.
  • Coupon Creator Pro
  • Coupon Creator
  • Guides
  • Frequently Asked Questions
  • Terms of Service
  • Privacy Policy

Copyright © 2023 Site · WordPress Web Design by Jessee Productions, LLC

7ads6x98y