Title: error sidebar widgets
Last modified: August 18, 2016

---

# error sidebar widgets

 *  [offen](https://wordpress.org/support/users/offen/)
 * (@offen)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/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

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [drmike](https://wordpress.org/support/users/drmike/)
 * (@drmike)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/error-sidebar-widgets/#post-545063)
 * [Link](http://wordpress.org/support/topic/105353?replies=34#post-517454)
 * Just for reference, I found it by searching for teh error you received. 🙂
 *  [sydneybg](https://wordpress.org/support/users/sydneybg/)
 * (@sydneybg)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/error-sidebar-widgets/#post-545072)
 * 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.
    Sydney
 *  [sydneybg](https://wordpress.org/support/users/sydneybg/)
 * (@sydneybg)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/error-sidebar-widgets/#post-545076)
 * Thanks Dr. Mike. I didn’t click on the link before I posted. Now I just clicked
   and saw all the help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘error sidebar widgets’ is closed to new replies.

## Tags

 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [sydneybg](https://wordpress.org/support/users/sydneybg/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/error-sidebar-widgets/#post-545076)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
