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
RSSSalim Ismail, washwords, Social Networking at its worst « Guy’s Techie Blog, I Quit Facebook » Blog Archive » The real Facebook, Lar, Shane, hostyle, James
Des Walsh, joe, Anthony, Conor O'Neill, 73man, Cormac, Tom Raftery, Cormac
Czytelnia, E L S U A ~ A KM Blog by Luis Suarez » Blog Archive » Trip to Barcelona on 19th May - Fancy Meeting Up?, Dave Toys, Johnyzar
Czytelnia, Laurent Blondeau (Evidencesx), Chad Richards, Lar, AnaiD, Rostyslav, J, Ontario Emperor, Mark, Richard Jeffries [...]
Rippy, James, Tom in Chicago, Mike, Mike, Steve Rovetti, ayax, Mike, Steve Rovetti, bwb [...]
Tony, K2+Wordpress 2.5: nie prílíš ve?ký kamaráti at Samuel Kolesár, gascoingne, My logo idea at Tomas Roggero, Tomas, a.o, Frisbee Fodder, Wordpress 2.5 Fatal Error wp_register_sidebar_widget, Danny Foo, Paul Schutz [...]