Tag: widgets

Fatal error: Call to undefined function wp_register_sidebar_widget() in…

Beware if you update to WordPress 2.5 and are using the very popular K2 theme.

If you are using K2 and you do update to 2.5, you will receive the following error on trying to browse to your WordPress dashboard:

Fatal error: Call to undefined function wp_register_sidebar_widget() in /path-to-blog/wp-admin/includes/dashboard.php on line 31

A bit of research told me that this is because K2 turns off WordPress widgets in favour of its own widget manager and as 2.5 has started to widgetize the Dashboard, you get this error.

To fix the error:
navigate to your K2 folder -> app -> includes
edit the file widgets-removal.php as below

Change the contents of the file from:

to

Your dashboard should now be browsable once more!

I knew I should have held off on updating longer. I blame Donncha!

WordPress 2.3, K2 RC2 crashing Safari 2 resolved

Since I updated this blog to WordPress 2.3 and K2 RC2, I have been having reports that the blog crashes Safari (but only Safari 2, not Safari 3).

Today I think I sorted the problem.

I switched the blog from using the native WordPress’ Widgets to manage the sidebar to using K2’s Sidebar Manager and now the crashing seems to have stopped.

I’m not sure why the WordPress Widgets was causing the blog to crash Safari 2 but if you are having this problem, try switching to using the K2 Sidebar Manager.

It worked for me.

Crashing Safari?

I have had isolated reports that since upgrading this blog to WordPress 2.3 and the theme to K2 RC2, this blog crashes the Safari browser.

I’m running Safari version 3.03 on my Mac and it doesn’t crash but I’m told version 2.04 does crash.

I have tried turning off some of the sidebar widgets but that didn’t fix it (maybe I didn’t turn off the right ones?) and I tried tweaking the theme but to no avail.

If there are any code junkies out there who have any suggestions on why the blog may be suddenly crashing some versions of Safari, I’d love to hear them so I can resolve this.

Thanks.

WordPress 2.3 gotchas (or got me's!)

Phew!

Finally done with that install – ouch! I wouldn’t want to go through that again in a hurry.

I hit several speed bumps in my upgrading of this blog from WordPress 2.2 to 2.3 – many of those could have been avoided if I had followed the instructions on the Extended Upgrade page instead of the Upgrade page!

Specifically, if you are upgrading, not only should you also upgrade all plugins before starting the blog update, but you should then disable all plugins before uploading WordPress 2.3.

I use the K2 theme on this site, so I checked it out, and sure enough there is a new version of K2 (K2 RC1) available for WordPress 2.3 as well. If you plan on upgrading to RC1, be aware that Michael Heilemann says in the release notes:

Because so many things have been upgraded since v0.9.6, a lot of the code hasn’t actually seen as much usage as the v0.9.6 code, and thus you should hold off until RC2 with upgrading if you like your stability over your ‘bling’

I decided to try out the widget functionality which comes with K2 RC1 but I came a cropper on a bug in the code and so reverted to using the less functional, but fully operational WordPress Widgets.

One of the biggest advances in WordPress 2.3 is the inclusion of Tags. This is fantastic news for anyone who hasn’t used tags up to now as it provides a simple way for them to begin. However, I was using a plugin (Ultimate Tag Warrior) for my tagging and this no longer works with WordPress 2.3.

WordPress 2.3 has the ability to Import existing Tags though (Manage -> Import -> Ultimate Tag Warrior) meaning all my tagging up to now hasn’t been in vain!

Ultimate Tag Warrior (UTW) had two great features:

  1. UTW presented you with a drop-down of all your previous tags when writing a post so you could easily chose one you had previously. This is missing from 2.3
  2. UTW had a Suggest option whereby it would scan the text of your post and suggest appropriate tags

Christine Davis, the author of UTW has already released plugins to fill in this missing functionality!

Other features added in this release of WordPress are highlighted here.