error sidebar widgets
-
I am new to wp. I want to use the Sidebar Widgets.
Uploaded, activated, click on >presentation>sidebar widgets> get:
Fatal error: Call to undefined function: wp_deregister_script() in /mounted-storage/home10/sub002/sc16168-OKZG/dougoffen/wp-content/plugins/widgets/widgets.php on line 204
Instructions say to change functions.php of theme by adding
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar();
?>That file is there but still get error message for theme rockinnewspaper-3col-1
I looked at wp-content/plugins/widgets/widgets.php
Here are the lines from 195 to 212 line 204 is specifically mentioned in the error message
195. function sidebar_admin_setup() {
196. global $registered_sidebars;
197. if ( count($registered_sidebars) < 1 )
198. return;
199. $page = preg_replace(‘!^.*[\\\\/]wp-content[\\\\/][^\\\\/]*plugins[\\\\/]!’, ”, __FILE__);
200. $page = str_replace(‘\\’, ‘/’, $page);
201. add_submenu_page(‘themes.php’, __(‘Sidebar Widgets’, ‘widgets’), __(‘Sidebar Widgets’, ‘widgets’), 5, $page, ‘sidebar_admin_page’);
202. if ( $_GET[‘page’] == $page ) {
203. if ( !file_exists( ABSPATH . WPINC . ‘/js/wp-scriptaculous.js’ ) ) {
204. wp_deregister_script( ‘scriptaculous-root’ );
205. wp_register_script( ‘scriptaculous-root’, ‘/wp-includes/js/scriptaculous/scriptaculous.js’, array(‘prototype’), ‘1.6.1’ );
206. }
207. wp_enqueue_script( ‘scriptaculous-effects’ );
208. wp_enqueue_script( ‘scriptaculous-dragdrop’ );
209. add_action(‘admin_head’, ‘sidebar_admin_head’);
210. do_action(‘sidebar_admin_setup’);
211. }
212. }Any help would be appreciated.
Thanks
Doug
-
Just for reference, I found it by searching for teh error you received. 🙂
I am also getting the following fatal error: Fatal error: Call to undefined function wp_deregister_script() in D:\home\energyegghead.com\wwwroot\blog\wp-content\plugins\widgets.1.2.1\widgets.php on line 204. I have tried stripping everything out and downloading and uploading and reactiviating, but I can’t get this sidebar widgets to work, though it was working yesterday. Could this be an April Fool’s joke? Can someone help please? Thanks.
SydneyThanks Dr. Mike. I didn’t click on the link before I posted. Now I just clicked and saw all the help.
The topic ‘error sidebar widgets’ is closed to new replies.