<   Prior Home         Share Blog Bloke     Share Blog Bloke Tips       Share to Twitter       Share to Facebook       Share to Twitter       Share to Google Plus       Share to LinkedIn       Pin this       Get Updates            
        Next   >  

A Lesson Learned in Debugging Blog Templates

Unbelievable! I was up late last night trying to figure out why my blog home page suddenly stopped showing up in Internet Explorer. It happened at the same time Blogger went down with a hardware upgrade so I figured that must have been the problem. It made sense to me at the time.

However, after blogger was back up — still no homepage, and yet my post pages were still there. It also worked fine in Firefox and Opera.

WEIRD!

So I spent hours fiddling with the code and almost gave up until I decided to go retro with an older version of the template and ouilla I was back!

I pieced back the latest code upgrades a bit at a time, saving it then republishing and testing it again. It was a painstakingly tedious process but well worth it because eventually I came across a title tag that wasn’t closed properly. When I fixed it everything was back to normal again.

Imagine that such a small thing could stop IE dead in its tracks. You would think that stuff like that should throw Firefox for a loop because it is more standards compliant and less tolerant than IE.

Under normal circumstances I would have just reverted back to the older code and pieced it back together from the start, but because it happened simultaneously with Blogger’s upgrade I had errantly convinced myself that it had to be related. Silly me.

I had also noticed some weird things happening with the html rendering that convinced me the code may have somehow been corrupted. But in hindsight I was making it more complicated than it needed to be.

So there’s a good lesson for us all. Always make sure you save a backup of your template before changing it. So when it all goes wrong (and believe me it will) you can fall back to a previous version. And just like when you got lost in the woods, backtrack one step at a time until you get your bearings again. That is the first and foremost rule of debugging.

It’s also a good idea to have a test account set up and do your experimenting there and not with your primary blog. That’s good advice for everyone including an old hand at programming such as myself. Sometimes I can still get a little too cocky for my own good.

While I was at it I also fixed the left sidebar menu. Now I have to get the top banner to behave better with larger fonts. After that I will look into making the entire template fit higher screen resolutions, but only after I pick up a ferret for my daughter and get some sleep.

Such is a geeks life. As frustrating as it can be at times I wouldn’t have it any other way.

UPDATE ->


Related links: blog bloke, instabloke, website design, template, debugging, blogtech, webtech

Written July 13th, 2006 by | 4 Comments | Filed under: *Best Tips, Blog Tips, Design Tips ,

Thanks for Sharing     Share - enable java in your browser Share to Twitter            

Did you enjoy this article? Keep up to date with Blog Bloke Tips the moment it's published by email. Your Privacy is Guaranteed and will not be shared with anyone.


Keep it real with Blog Bloke Thanks for reading the original Blog Bloke. You can read more about me here. Contact me if you have any questions, tip requests or if you would like to be a guest blogger. Keep it real every day and subscribe to the newsfeed, share with friends or follow me.

    Subscribe to the Newsfeed     Share to Twitter     Share to Facebook     Share to Google Plus     Pin this     Share to LinkedIn


Got an opinion? Let's be real and start a conversation:

It's your turn to tell Blog Bloke what you think, ask a question or suggest another blog tip. Don't forget the comments policy and I'm looking forward to reading what you have to say.

There are 4 Comments so far to “A Lesson Learned in Debugging Blog Templates”

  1. i just discovered this blog and it’s great… thanks for such a great resource.

      Reply   ·   Share Share Blog Bloke Tips  

  2. Thanks Seth!

      Reply   ·   Share Share Blog Bloke Tips  

  3. Nice template you got here, i wanna to share my first hand made template if you dont mind, check http://www.tipscollections.com for free xml blogger templates

    Taufik Hidayat’s last blog post..Love Blogger Template: Valentine 5

      Reply   ·   Share Share Blog Bloke Tips  

  4. From Blog Bloke: A Lesson Learned in Debugging Blog Templates http://tinyurl.com/6ad2a3

Share     Share this article with your friends

Subscribe to Better Blog Tips Newsfeed   SUBSCRIBE to Bloke Bloke's Articles (Newsfeed)

Subscribe to Better Blog Tips Newsfeed   Subscribe to only Comments for this Article | TrackBack URL

You can also use these html tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>