eCommerce

Are your customers seeing website errors?

I was recently investigating the new Saturn Sky convertible on their website and tried out their “build your own” application.

To my surprise I saw this screen:

Saturn

As you can see, I had two options for the Sky: the base model and an “undefined” model. Today the site is corrected, but that doesn’t change the fact that a little programming or database error made it all the way to my browser.

Double Check Data

“Undefined” errors are usually exceptions that aren’t properly handled in the code. These can easily slip in when assumptions are made about the availability of a variable or data from a database.

Always check to make sure you really have the data you think you do before showing it to the customer. “Undefined” cases should be hidden if they are encountered or you should safely default to an appropriate value.

Error Pages

In the worst case, you can always direct a user to a generic error page that tells them you’re having technical difficulties. Explain how they can start over or how to contact you if needed.

Be Aware

You need to know when such errors are encountered so that you can correct your code with your next software release. When an error occurs, you can automatically email your programmer or log these types of errors for future analysis.

2 Comments

  1. Demetrius Pinder

    August 16, 2006

    WOW!

    Didn’t this happen to you before?

    :-P

  2. Joe Rawlinson

    August 16, 2006

    You’re right, I did see a similar error on another site before.

    Unfortunately, this very issue has struck code I’ve written and applications I’ve used (like Wordpress for this blog). As a programmer, it does take some discipline to always code for these exception cases.

    Another problem I’ve encountered on this site is my hosting company feels it is OK to restart my server at random times during the day. Ugh!