Jan 21

Updating Prototype in a DreamHost 1-Click Install

Filed under: WordPress

I’ve used DreamHost for years with very little, if any trouble. I highly recommend them to anyone looking for a hosting solution. While developing this site, I came across Xavin’s List Subpages plugin for WordPress that allows me to show a submenu based on the ID number of a page. You can see the working menu on my portfolio page.

Trouble Ahead

One small problem came up when I was clicking on the submenu items. It seemed Firebug showed an error once I clicked, yet it went away when the page moved on. Ok, so this is a very tiny flaw that would only be visible to a quick eye and only bother perfectionists like me. So I dove right in. A quick punch of the stop button snared the error for further investigation. Off to Google with…

'^=': function(nv, v) { return nv.startsWith(v); },

A Lighthouse in the Distance

Most of the hits were versions of the Prototype script itself. But a post on the Ruby On Rails development site had exactly what I was looking for. Prototype Element.match returns TypeError nv: null when selecting for an attribute that is not present. It seems that they had found and fixed the bug back in March of 2008.

Moving into Port

So I go back to the prototype.js that is installed here and find the outdated 1.6.0 version. I got the latest 1.6.0.3 version from the source and updated the file on my server. Now the fleeting error notice is gone and everything works perfectly.

Safely Ashore

To ensure the safety and sanity of other hunters of minuscule bugs, I posted a request to update Prototype on the DreamHost suggestion tracker. Waves of euphoria are rushing right now; similar to when I make a spelling correction on Wikipedia.

[Post to Twitter] [Post to Plurk] [Post to Yahoo Buzz] [Post to Delicious] [Post to Digg] [Post to Ping.fm] [Post to Reddit] [Post to StumbleUpon]

Comments

Trackbacks and Pingbacks

  1. Updating Prototype in a DreamHost 1-Click Install | BH-Server

Leave a Comment