Database down; spirits up

I woke up to a WordPress database error yesterday. The error wasn’t caused by any changes I did to the site but something to do with the server.

I spent hours the night before working on this, a demo of using WordPress to manage a news portal.

With time to kill while waiting for the site to be fixed, I implemented something that had been listed in my “someday” list – customize the WordPress database error message and have the system send you an e-mail when your blog can’t connect to your database. I hate to admit it but I actually enjoyed the downtime as it taught me a lot as well as afforded me the time to play around with something I had long wanted to do.

The hack is surprisingly easy and I enjoyed crafting a database error page that I just might intentionally place wrong config data soon to test my planned addition to the error page.

I had wanted to include a php file that I could then just edit to serve as mini log while I’m or the server technicians are fixing the site.

I had also wanted to use an e-mail address that sends a message to my cell phone to alert me whenever there are problems with the database but after seeing that the system sends you an e-mail every time somebody visits the site while the database is down, I changed my mind.

The error and the time I spent trying to spot what the problem was as well as playing around with the database error page derailed my schedule to finish certain projects I’m working, including the news portal demo and the release of the Nautica05-Wordpress theme for webzines.

Check my news portal demo, this is the blog and this is the site when using the newsportal-wp theme I’m coding based on another open source template.

I’m still working on it as there are other functionalities I want to incorporate. I also don’t like the font used in the template–I haven’t gotten around to customizing it yet, I just converted it for use as a news portal. I’m still stuck at what to do with the opinion “page.” Should I display photos in the page when the photos of columnists are listed along with their latest columns in the sidebar? Should I display photos in the opinion “page” and not call the sidebar but instead another template file to replace it?

I use an edited author image plug-in to generate the mug shots that come with the columns. Anyway, I’ll write a blog post detailing what I did with the template as soon as I finalize it.

It still needs a lot of work. If you have suggestions, leave it in the comments field of this post.

The disorganized way I’m keeping template files I’m working on made me realize something I never thought would occur to me — I need version control. I need to learn how to work with Subversion. I want to host the templates I’m using in Google Code or Unfuddle but I still don’t know how to use Subversion. I plan to read the Subversion book when deadlines allow me.

Support this blog and independent reporting on Cebu

13 responses

  1. This is huge! Something like a small revolution on WP going on here… Hope you find the time to finish.

    btw… I rather the first choice on the ‘opinion’ pages. Also, you should think of wordpress as a media center. So a “feature Music / Video / photo” would be nice =)

  2. Bruno,
    Thanks for the feedback and the kind words. It’s not really a revolution :-), more of tweaking the presentation to suit a small-time mom-and-pop online publishing site’s needs.

  3. Wow! Nice work you are carriying with this template. Under what kind of license are you going to publish this theme?

    I am waiting for you to release it as soon as possible…


  4. Javier,
    It will be released under the license used by the template, Creative Commons Attribution 2.5.

  5. This template is exactly what I’ve been looking for. Absolutely wonderful!

    Waiting impatiently for it’s release.

  6. Max,
    Have you considered parntering up with some people to help out? The K2 project for WordPress now has four or five main people working on the whole thing, along with a thriving user community.

    Subversion is relatively easy to learn. I use it myself to update my sites to the bleeding edge WordPress versions.

    I see that there are a LOT of people looking forward to this template…myself being one of them.


  7. Craig,
    Are you interested? I’ll host it in Google Code if you are. I’m finalizing an even better version of this theme.

  8. Hi Max,

    the newsportal theme looks fantastic. I teach journalism at an Australian uni and I have been scouring the web looking for a theme like this for some student sites I want to develop.

    Your site is packed full of great resources your posts on templates are really great for a php novice like me, they helped me when I was trying to mod some themes for my site

    looking forward to newsportal


  9. sebastian Avatar

    Is the newsportal theme available anywhere?

  10. Any word on release of this theme?

  11. I too am anxiously awaiting the release of this theme… It took me forever to even find this post on your site, and when I took a look at your sandbox site and saw newsportal-wp – I knew it would be perfect for a project I’m doing.

    I understand (as I’m sure everyone else does) that you’re likely busy, but an update would be wonderful… or even a release with the notion that it’s under-developed and incomplete! I love the way it looks NOW, so I can’t imagine there’d be all that much more to do to it…

    Please just let us know SOMETHING?

  12. Sure, i’m waiting this release too… I think i’t would be great have this template to download and use it.

  13. was wondering if anyone has an update on this theme, or if it’s being hosted anywhere … otherwise, has anyone found anything close to this, which is available to play with?

    thanks a bunch

Leave a Reply

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