• Home
  • About Mitch
  • Speaking
  • Articles
  • Contact
  • Home
  • About Mitch
  • Speaking
  • Articles
  • Contact

Digital Strategist

WordPress Developer

Content Creator

Unapologetic Punk

Mitch Canter

  • X
  • Bluesky
  • GitHub
  • Twitch
  • YouTube
  • LinkedIn
WordPress

Fighting the WordPress White Screen of Death

CMDR Mitchcraft

Reading time: 1 minute

We’ve all been there: We’re editing the WordPress theme file, setting a new function and *BAM*: We view the site and it’s nothing but a sea of white pixels.  There’s no messages, no errors, nothing to indicate what you’ve done wrong.  And it’s frustrating: sure, removing the change would fix the problem, but I (as I’m sure you agree) would rather know why it’s not working so it can be fixed, not rolled back. A lot of people don’t realize this, but WordPress, by default, squelches error messages – any alerts, notifications, or messages that tells you about a problem.  It’s good if you’re running fine because those messages can show up even if the site is running fine (old functions, alert messages, etc).

The good news: you can enable them with one line of code.

The wp-config.php File

Head into your FTP program and connect to your server.  Open the wp-config.php file in your root directory.  You should see a line of code that looks like this:

define('WP_DEBUG', false);

This ‘WP_DEBUG’ function is an on/off switch of sorts for those error messages.  Switch that value to true and then refresh your site.  You should start seeing any and all error messages causing the site to fail.

The caveat

Keep in mind that if you have a high-volume site, your visitors are more than still visiting the site.  They’ll also see the error messages, since they show up on both the front-end and back-end of the site.  Fix your error, switch ‘WP_DEBUG’ back to false, and keep enjoying your site!

development, programming, WordPress
  • Getting into Gutenberg, Part 2: A Knee-Jerk REACTion (and an Introduction to Gutenberg Blocks)

    Getting into Gutenberg, Part 2: A Knee-Jerk REACTion (and an Introduction to Gutenberg Blocks)

    Reading time: 4 minutes

    I wrote yesterday on Gutenberg, WordPress' soon-to-be editing experience, as it was highly mentioned at WordCampUS here in Nashville over the weekend. Yesterday, I focused specifically on the outer facade of Gutenberg – movable blocks, layouts, and modular approaches to content. Today, we're going to look at the back-end. For a WordPress developer, this is…

    WordPress
  • 5 Essential WooCommerce Extensions, Add-Ons & Plugins

    5 Essential WooCommerce Extensions, Add-Ons & Plugins

    Reading time: 2 minutes

    WooCommerce is one of the most powerful WordPress eCommerce solutions on the market. Out of the box, it does everything you’d expect an eCommerce system to do: Host products Have a scannable product listing Take orders for products Accept payments through PayPal Allow people to use coupons But, sometimes, you need to think outside of…

    WordPress