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

Code editor with an error and a large semicolon

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.

Comments

2 responses to “How a Single Missing Semicolon Took Down a Bakery’s Website”

  1. Petar Avatar
    Petar

    Every family has this nephew. I am this nephew.

  2. Mila Avatar
    Mila

    Can confirm, the croissant emoji was not worth it. Cake orders are back though!

Leave a Reply

Your email address will not be published. Required fields are marked *