Title: Debugging: expects parameter 1 to be array, boolean given in&#8230;
Last modified: August 22, 2016

---

# Debugging: expects parameter 1 to be array, boolean given in…

 *  [DCQuality](https://wordpress.org/support/users/dcquality/)
 * (@dcquality)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/debugging-expects-parameter-1-to-be-array-boolean-given-in/)
 * Hey guys,
 * Very new to wordpress so please forgive any lack of knowledge.
    Resurrecting 
   an old wordpress version of website to replace what is currently live. Successfully
   installed wordpress locally and imported the old files. Unfortunately, hit a 
   coding bug so nothing from these files (themes, pages, etc) fully loads. Was 
   able to identify the source of the issue but no clue how to fix. Any input would
   be greatly appreciated!
 * Error messages:
    Warning: uksort() expects parameter 1 to be array, boolean given
   in C:\wamp\…\wp-admin\includes\class-wp-themes-list-table.php on line 48 Warning:
   array_slice() expects parameter 1 to be array, boolean given in C:\wamp\…\wp-
   admin\includes\class-wp-themes-list-table.php on line 55
 * Here is what the code looks like in the section of the class-wp-themes-list-table.
   php:
 *  if ( $this->search || $this->features ) {
    foreach ( $themes as $key => $theme){
   if ( !$this->search_theme( $theme ) ) unset( $themes[ $key ] ); } }
 *  unset( $themes[$ct->name] );
    uksort( $themes, “strnatcasecmp” );
 *  $per_page = 24;
    $page = $this->get_pagenum();
 *  $start = ( $page – 1 ) * $per_page;
 *  $this->items = array_slice( $themes, $start, $per_page );
 *  $this->set_pagination_args( array(
    ‘total_items’ => count( $themes ), ‘per_page’
   => $per_page, ) ); }
 * uksort() and array_slice() are the source. I’ve researched a bunch of the forums
   and found similar issues, but couldn’t identify the right resolution to my problem.
   
   Thank you in advance!

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

 *  [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/debugging-expects-parameter-1-to-be-array-boolean-given-in/#post-5717041)
 * Are you sure your themes are in the right location _wp-content/themes_?
 * Otherwise your theme might not be compatible with the current WordPress-version.
 *  Thread Starter [DCQuality](https://wordpress.org/support/users/dcquality/)
 * (@dcquality)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/debugging-expects-parameter-1-to-be-array-boolean-given-in/#post-5717051)
 * Hey jeffreyvr,
 * Thanks big time for that. After investigating the website folder extracted from
   our archived zip file, it indeed was missing vital php files. I’ve gone back 
   and righted the ship, so no more warning errors and everything (I believe) is
   where it should be. Thanks big time for pointing out the obvious! (For real, 
   though; that helped sort things out and like I said, pretty new to all this so
   much appreciated)
 * However, now I’m at a point where I have all white screen. This happens every
   time I access the dashboard (starting immediately after install), and every menu
   item/sub-item is just white screen. After reading through a bunch of white-screen-
   of-death forum posts, I still can’t sort out the reason.
    When I manually enter…
   wp-admin/options.php I’m able to access the general settings, but that’s all 
   I can reap (and even in there, I’m not really sure what to do/if anything will
   help). The options menu does bring up the link to install 4.1, but when I click
   it it redirects me to dashboard, which is white screen… Any ideas? Thanks again
   for your help!
 *  [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/debugging-expects-parameter-1-to-be-array-boolean-given-in/#post-5717159)
 * Glad I could help.
 * This might be caused by a plugin. Deactive your plugins and try again.
 * If your white-screen-of-death also appears front-end, maybe the error comes from
   your theme’s functions.php.
 * It always good to check your error-logs. You can mostly find them in your hosting
   panel or even on your server (otherwise, contact your host).

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

The topic ‘Debugging: expects parameter 1 to be array, boolean given in…’ is closed
to new replies.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [boolean](https://wordpress.org/support/topic-tag/boolean/)
 * [parameter](https://wordpress.org/support/topic-tag/parameter/)
 * [uksort()](https://wordpress.org/support/topic-tag/uksort/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/debugging-expects-parameter-1-to-be-array-boolean-given-in/#post-5717159)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
