Title: Theme PHP error
Last modified: August 19, 2016

---

# Theme PHP error

 *  [Nanochrome](https://wordpress.org/support/users/nanochrome/)
 * (@nanochrome)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/theme-php-error/)
 * When I go to the themes page i get a PHP error:
    Warning: ksort() expects parameter
   1 to be array, boolean given in /home/a6487579/public_html/wp-admin/themes.php
   on line 41 And Warning: array_slice() expects parameter 1 to be array, boolean
   given in /home/a6487579/public_html/wp-admin/themes.php on line 62 What does 
   this mean?. I’ve reinstall wordpress and it still is shown.

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

 *  [t31os](https://wordpress.org/support/users/t31os/)
 * (@t31os)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/theme-php-error/#post-1041915)
 * If you refer to the site you mentioned in the other thread, there are several
   plugins and custom themes.
 * Your plugin directory is also viewable by anyone,
 * Disable the plugins, activate the default theme and see if the problem still 
   exists.
 *  Thread Starter [Nanochrome](https://wordpress.org/support/users/nanochrome/)
 * (@nanochrome)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/theme-php-error/#post-1041917)
 * I don’t have any plugins and the default theme is activated because i just did
   an fresh install
 *  [t31os](https://wordpress.org/support/users/t31os/)
 * (@t31os)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/theme-php-error/#post-1041922)
 * So you have no other problems, but this appears when accessing the theme management
   in the admin section?
 *  Thread Starter [Nanochrome](https://wordpress.org/support/users/nanochrome/)
 * (@nanochrome)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/theme-php-error/#post-1041923)
 * Yes and it won’t let me activate or deactivate themes.
 *  [t31os](https://wordpress.org/support/users/t31os/)
 * (@t31os)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/theme-php-error/#post-1041933)
 * The only information i can find with any such error related to WP all relate 
   to problematic plugins….
 * If everything else functions, i don’t know anything else to suggest other then
   ensure all files and folders have the correct permissions.

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

The topic ‘Theme PHP error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [t31os](https://wordpress.org/support/users/t31os/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/theme-php-error/#post-1041933)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
