Tag: white-screen

  • Our Homepage Was Up. It Was Also Completely Blank.

    Our Homepage Was Up. It Was Also Completely Blank.

    Our monthly uptime report was beautiful. 100.00%. Not a single second of downtime. We framed it, metaphorically.

    On the 14th of that same month, our homepage showed nothing but a white page for nine hours.

    How both can be true

    Basic uptime monitoring asks one question: “When I knock, does the server answer?” Ours did. Every time. It answered with a status code of 200, which means “everything is fine”, followed by an empty page, which means everything was not fine.

    A caching plugin had saved a broken, empty version of the homepage after a failed update, and kept serving it to everyone, very quickly, with great confidence.

    The checks that would have caught it

    1. Keyword check: does the page actually contain something it should, like the company name or “Add to cart”?
    2. Page size check: a homepage that’s suddenly 200 bytes instead of 80 KB is suspicious.
    3. Visual check: a screenshot of a white page looks very different from yesterday’s screenshot.
    4. Console check: the browser had several JavaScript errors that morning, which is often the first sign.

    Uptime tells you the lights are on. It doesn’t tell you anyone is home.

  • How a Single Missing Semicolon Took Down a Bakery’s Website

    How a Single Missing Semicolon Took Down a Bakery’s Website

    Mila runs a bakery. Her croissants are famous in the neighbourhood, and her website is how people order birthday cakes. One morning at 6 AM she opened the site to check the day’s orders and saw… nothing. A perfectly white page. Not even an error. Just white, like flour.

    What happened

    The night before, her nephew (who is “good with computers”) added a small snippet to the theme’s functions.php to change the “Add to cart” text to “Add to basket 🥐”. He copied it from a forum, pasted it in, and missed the semicolon at the end of one line.

    PHP does not forgive missing semicolons. It just stops. And when PHP stops on a site with error display turned off, the visitor gets the famous White Screen of Death.

    Why it took three hours to notice

    • The site still “responded”. The server said 200 OK to some requests, so the hosting dashboard showed green.
    • Mila’s phone had the homepage cached, so it looked fine there.
    • The only person who noticed was a customer trying to order a cake for her daughter’s birthday. She called the bakery. Mila was busy baking.

    The happy ending

    The nephew fixed it in one character. The customer got her cake. Mila got a monitoring alert that now checks whether the page actually contains her bakery’s name, not just whether the server answers.

    A server saying “OK” and a page actually working are two very different things.