Let’s Play a Game

Question: What causes the following error in Apache’s error logs?

[IP_address] Undeclared entity warning at line 226, column 1

Answer: A fairly popular, yet, poorly written WordPress plugin.

The first time this error hit the Weblogs.us error_log, one had no clue what was causing it. Unfortunately, the error does not indicate what file triggers the error. However, it will include the referring URI, if applicable. That’s how one found the specific virtual host on the Weblogs.us server that was triggering the error. Next, was finding the infringing code. To do this, one added define('WP_DEBUG', true); to the wp-config.php file for the virtual host. Now, there will be an avalanche of errors and warnings for most sites, all that needs to be done is sift through them and look for ones like “undeclared variable” and “undeclared index”.

Now, what was the actual culprit? The Twitter-for-Wordpress plugin. Specifically, lines 100, and 158. Line 100 tries to increment a non-initialized variable. To fix the issue on line 100, add a new line between line 66 and 67 and place in it $i = 0;. The error on line 158 is it tries to use the undeclared variable $username. What probably happened was author copied the line directly from line 53, while not properly modified for its location. Line 158 should read:
$messages = fetch_rss('http://twitter.com/statuses/user_timeline/'.$item['username'].'.rss');

After these two changes everything should be good to go. Yes, the plugin author was notified of these problems. We’ll see when they officially get fixed in the plugin.

-John Havlik

[end of transmission, stay tuned]

Breadcrumb NavXT 3.2.1

This first service release for the 3.2 branch of Breadcrumb NavXT includes many bug fixes. The bcn_display() and bcn_display_list() wrapper functions obey the $return parameter. Checks are now made to ensure anchor titles remain valid, even when the title of the page has HTML in it. Many fixes involving the import feature are included. Previously, the importer did not handle html entities correctly causing all sorts of problems. Translations for the Belorussian language are now included thanks to “Fat Cow”. Lastly, the administrative interface should work (sort of) with WordPress 2.6 again, do note that in Breadcrumb NavXT 3.3.0 WordPress 2.7 will be required.

You can grab the latest version of Breadcrumb NavXT from the Breadcrumb NavXT page.

-John Havlik

[end of transmission, stay tuned]

Breadcrumb NavXT 3.2.0

Holy backupable settings Batman! With Breadcrumb NavXT 3.2.0 you can import and export your settings to/from a XML file. This should help anyone migrate from a testbed to a production environment. You may also reset to the default Breadcrumb NavXT settings in the event the settings become corrupted. Additional features of Breadcrumb NavXT 3.2.0 are the ability to output the breadcrumb trail in reverse order and the ability to output each breadcrumb wrapped in <li> tags.

This release was somewhat delayed. Fret not, we shall see another release by July. Also, note that the French translation is out of date. The previous translator has not responded to the e-mail announcement made a week ago. If you have an updated French translation, please sent it to me via e-mail (see contact page for e-mail address).

You can grab the latest version of Breadcrumb NavXT from the Breadcrumb NavXT page.

-John Havlik

[end of transmission, stay tuned]

Well, Where is it?

Almost two weeks ago, the release of Breadcrumb NavXT was said to occur last week. While the features new to 3.2.0 are done, there are some minor tweaks that need to be done before the translators can begin translating the new strings. Due to some new features, one was waiting of feedback on their implementation before proceeding. Additionally, Breadcrumb NavXT 3.2.0’s administrative interface was adapted to work on WordPress 2.8. The problem being these modifications break WordPress 2.7 support for the tabbed options, and WordPress 2.8’s release slipping three weeks (it’ll be another two weeks before 2.8 is released).

So where does this leave us? It will take this weekend to finish up some code to make the administrative interface compatible with WordPress 2.7 again. Additionally, some WordPress MU testing will take place, preliminary tests show that Breadcrumb NavXT 3.2.0 should behave as expected with WordPress MU 2.7.1. Currently, next Thursday is the intended release date for Breadcrumb NavXT 3.2.0.

-John Havlik

[end of transmission, stay tuned]

WordPress MU Testers Needed

Some changes to the administrative interface for Breadcrumb NavXT may affect it’s ability to work in some versions of WordPress MU. In particular, WPMU 2.7 users are need to check if the SVN Trunk version works as intended. Monday the translators will be notified of the changes to the translations. The real release will happen after next Wednesday.

-John Havlik

[end of transmission, stay tuned]