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:
< ?php
if (get_option('k2sidebarmanager') == '1') {
remove_action('plugins_loaded', 'wp_maybe_load_widgets', 0);
}
?>
to
< ?php
if (get_option('k2sidebarmanager') == '1') {
remove_action('plugins_loaded', 'wp_maybe_load_widgets', 0);
if( is_admin() )
{global $pagenow; if( $pagenow == 'index.php' ) wp_maybe_load_widgets();
}
}
?>
Your dashboard should now be browsable once more!
I knew I should have held off on updating longer. I blame Donncha!



Latest Comments
RSSEJW, Jean Marie, robert, Rich G, Disillusioned, Mark, Bertrand Vernay, EJW, Liz C, Jean Marie [...]
Tom Raftery, David, anonymous, Rob Burke, Tom Raftery, Rob Burke, Branedy, Tom Raftery, Fatty Ormer, Robin Blandford
Shaun, Tom Raftery, Linharex, Fatal error: Call to undefined function wp_register_sidebar_widget() in k2 (WP2.5) at I Press, hemineko, Aux users de WP2.5 et de K2 - Miniping’s Blog & Life, Dave, WordPress 2.5 en de K2 sidebar manager op TibsBits, Kevin, Peter Reid [...]
Ken Jarvis, Feorais, RV, Marshall, Marshall, jeff anderson, Jason, David, Jim, Lisa [...]
cobolhacker.com » Security center could not change your automatic updates settings, Pinging, Amit Karandikar, Felix, justme, Dan Egan, justme, Dan Egan, Tom Raftery, Denver McGinnis [...]
Steve Lewis, Speedy, Billy, Jedimaster Robby, QA-GR, PM, RIchie, Colin, Andy, kelvin reed [...]