Tag: k2

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.