Wordpress 2.5, the theme k2 and error-file "dashboard.php"
April 17, 2008 1 comment
Recently I made the installation of a Wordpress 2.5 on a blog that vai debut soon (and it seems that vai be very good!). The staff responsible have seen the theme k2 in action and resolved to adopt it, too.
Until then, nothing more. Standard procedure: install Wordpress, install the theme k2, translate Wordpress, translate the theme k2… But at the time of entering into the control panel:
Fatal error: Call to undefined function
wp_register_sidebar_widget () in
/ path-to-blog/wp-admin/includes/dashboard.php on line 31
Tried web something that could help resolve this error involving the Wordpress 2.5 and the theme k2. To my surprise, quickly found the solution on the blog of Tom Raftery.
Basically, the scheme is to change the file wp-content/themes/k2/app/includes/widgets-removal.php, erasing all its contents (outside the delimiters php… ¬ ¬) and putting in place:
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 ();)) Peace, hã?
Oh, and do not forget about the issue of using Wordpress, the theme k2 and the plugin All in One SEO Pack!














Pingback on April 22, 2008