Title: script error in dashboard.php
Last modified: August 19, 2016

---

# script error in dashboard.php

 *  Resolved [writerspice](https://wordpress.org/support/users/writerspice/)
 * (@writerspice)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/script-error-in-dashboardphp/)
 * Hi everyone,
 * I am trying to log in to my Site Admin page to write a new post and all I get
   is a blank screen with this on it:
 * **Fatal error: Call to undefined function: register_sidebar() in /home/laurenc/
   public_html/blog/wp-admin/includes/dashboard.php on line 12**
 * At /home/laurenc/public_html/blog/wp-admin/includes/dashboard.php, the script
   looks like this (from the top of the page, down past line 12):
 * <?php
 * // Registers dashboard widgets, handles POST data, sets up filters
    function 
   wp_dashboard_setup() { global $wpdb, $wp_dashboard_sidebars; $update = false;
   if ( !$widget_options = get_option( ‘dashboard_widget_options’ ) ) $widget_options
   = array();
 *  /* Register WP Dashboard Dynamic Sidebar */
    register_sidebar ( array( ‘name’
   => ‘WordPress Dashboard’, ‘id’ => ‘wp_dashboard’, ‘before_widget’ => “\t<div 
   class=’dashboard-widget-holder %2\$s’ id=’%1\$s’>\n\n\t\t<div class=’dashboard-
   widget’>\n\n”, ‘after_widget’ => “\t\t</div>\n\n\t</div>\n\n”,
 * I know this is probably a simple thing and I’ve tried changing ( array( to a 
   couple different things but I don’t know enough to know what it should be…
 * Would appreciate any help – my blog is at [http://www.laurencarter.ca/blog](http://www.laurencarter.ca/blog)
 * Thanks,
 * Lauren

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

 *  Thread Starter [writerspice](https://wordpress.org/support/users/writerspice/)
 * (@writerspice)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/script-error-in-dashboardphp/#post-740490)
 * bump
 *  [nelsoc](https://wordpress.org/support/users/nelsoc/)
 * (@nelsoc)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/script-error-in-dashboardphp/#post-740975)
 * Lauren, I notice your blog seems to working now… can you help me out by telling
   me what you did to fix this?

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

The topic ‘script error in dashboard.php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [nelsoc](https://wordpress.org/support/users/nelsoc/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/script-error-in-dashboardphp/#post-740975)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
