Top

Fixing Post Teaser Plugin Bug for WP 2.3.1

November 17, 2007

Have you ever had problem with Post Teaser plugin for WordPress? I am using it and I found a bug. So I fixed the bug and now you can download it right from this page. I name it "Post Teaser 2" just so It won't mess up with the original one.

It's now available for download from this page: Post Teaser 2 - An Essential WordPress Plugin.

The Bug

When I click the Update Options button on the Manage Post Teaser page, I got this: "Cannot load post-teaser.php." as shown in the snapshot:

Post Teaser Bug

Tags: ,

Fixing Dangerous Permalink Redirect Bugs

November 16, 2007

Since I have more than one occasion encounter bug with Permalink Redirect, I recommend people wait for new version of this plug-in.

The Bugs

The following are the bugs:

  1. Redirect "/feed" URI to "/feed/" using 302 redirect. Ignoring the "/%postname%" rule having no trailing slash.
  2. Redirect "/?paged=x" to "/page/x/" (where x is paging number) ingoring the fact ugly default URL is used, causing 404 message when paging.

There is no doubt about these bugs, because I test it by enabling and disabling Permalink Redirect plugin.

Fixing the bugs

Indeed being a programmer gives me some advantages, I could fix the bugs on the fly.

Tags: ,

Case Sensitive – Firefox JavaScript Becomes Tricky

November 12, 2007

Problem:

On Tuesday the 25th of September 2007 I was having this annoying bug. I was testing my website using FireFox (my main browser). I found out I couldn't send my page description to Digg using the following Digg JavaScript variable:

digg_body = document.getElementsByName("description")[0].content

While Internet Explorer, my 2ndary browser worked fine with it.

Debug Process:

The debug process was done using the alert statement to show the object.

alert (document.getElementsByName("description")[0].content);

Tags: ,

Bottom