Title: widgets screen error (wp_load_alloptions)
Last modified: August 19, 2016

---

# widgets screen error (wp_load_alloptions)

 *  [leads](https://wordpress.org/support/users/leads/)
 * (@leads)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgets-screen-error-wp_load_alloptions/)
 * Hi.
 * I am running a pretty big WPMU site.
 * On the widgets screen I am an unable to drag/drag widgets and open/close the 
   sidebar elements, in fact all javascript on this page does not work.
 * On further inspection when looking in the source code, the page does not finish
   loading and cuts out half way.
 * I tried disabling **all** plugins but there was no change.
 * If I disable javascript, I am able to do a couple of things, but because all 
   the page content hasn’t loaded, only a couple of my sidebars appear.
 * I turned on php errors, and in my source code of the widgets page, I got the 
   following:
 * `<b>Fatal error</b>: Allowed memory size of 83886080 bytes exhausted (tried to
   allocate 86 bytes) in <b>/home/mysite.co.uk/public_html/wp-includes/functions.
   php</b> on line <b>463</b><br />`
 * that line belongs to the following function
 *     ```
       function wp_load_alloptions() {
                       global $wpdb;
   
                       if ( false == defined( 'WP_INSTALLING' ) )
                                       $alloptions = wp_cache_get( 'alloptions', 'options' );
   
                       if ( !$alloptions ) {
                                       $suppress = $wpdb->suppress_errors();
                                       if ( !$alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'" ) )
                                                       $alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" );
                                       $wpdb->suppress_errors($suppress);
                                       $alloptions = array();
                                       foreach ( (array) $alloptions_db as $o )
                                                       (line 463) $alloptions[$o->option_name] = $o->option_value;
                                       if ( false == defined( 'WP_INSTALLING' ) )
                                                       wp_cache_add( 'alloptions', $alloptions, 'options' );
                       }
                       return $alloptions;
       }
       ```
   
 * Any ideas?
 * The chances of me being able to upgrade the site to a later version are very 
   slim.

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

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgets-screen-error-wp_load_alloptions/#post-1563151)
 * Bump up the memory allocation on the box.
 * When you disabled all the plugins, did you also include all the mu-plugins? 😉
 * Javascript getting knocked out is almost always caused by plugins somewhere. 
   You may need to test it using the default theme as well.
 *  Thread Starter [leads](https://wordpress.org/support/users/leads/)
 * (@leads)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgets-screen-error-wp_load_alloptions/#post-1563291)
 * Thanks andrea_r, I’ll give that a go when I’m in the office tomorrow.
 * No, I don’t think I did include the mu plugins.
 *  Thread Starter [leads](https://wordpress.org/support/users/leads/)
 * (@leads)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgets-screen-error-wp_load_alloptions/#post-1563379)
 * I was/am unable to bump up the memory.
 * So I went through all the wpmu plugins and eventually found the culprit. It was
   a featured blogs one.
 * Thanks

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

The topic ‘widgets screen error (wp_load_alloptions)’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 2 participants
 * Last reply from: [leads](https://wordpress.org/support/users/leads/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/widgets-screen-error-wp_load_alloptions/#post-1563379)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
