Title: No Themes-Error
Last modified: August 18, 2016

---

# No Themes-Error

 *  [stevie4cb](https://wordpress.org/support/users/stevie4cb/)
 * (@stevie4cb)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/no-themes-error/)
 * Hi there,
    My blog is working fine using the default theme. When I go in to presentation
   to change the theme I get this: Warning: array_keys(): The first argument should
   be an array in /blog/wp-includes/theme.php on line 274
 * And it says no themes are loaded, however I do have them loaded correctly…
 * Has anyone experienced this before and can anyone help?

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

 *  Thread Starter [stevie4cb](https://wordpress.org/support/users/stevie4cb/)
 * (@stevie4cb)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/no-themes-error/#post-525556)
 * Bump. Can anyone help?
 *  Thread Starter [stevie4cb](https://wordpress.org/support/users/stevie4cb/)
 * (@stevie4cb)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/no-themes-error/#post-525630)
 * Here is the actual error :: This displays when I go to Presentation and the Theme
   Tab is up::::
 * Warning: array_keys(): The first argument should be an array in /home/cbenterp/
   public_html/blog/wp-includes/theme.php on line 274
 * Now on my Theme.php file this is the lines
    272 thru 287
 * function get_current_theme() {
    $themes = get_themes(); $theme_names = array_keys(
   $themes); $current_template = get_option(‘template’); $current_stylesheet = get_option(‘
   stylesheet’); $current_theme = ‘WordPress Default’;
 *  if ( $themes ) {
    foreach ( (array) $theme_names as $theme_name ) { if ( $themes[
   $theme_name][‘Stylesheet’] == $current_stylesheet && $themes[$theme_name][‘Template’]
   == $current_template ) { $current_theme = $themes[$theme_name][‘Name’]; break;}}}
 * Does anyone know whats going on? Please any help would be appreciated.
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/no-themes-error/#post-525631)
 * I don’t know what the deal is, but it’s not talking about the theme files for
   your site. Those are located in the wp-content/themes/ folder. It’s an error 
   related to your administrative panel, most likely the theme switcher part.
 * I don’t know if his is a new installation or what, but I’d recommend checking
   your theme.php filesize. Try reuploading the file. If it still doesn’t work, 
   get a new, fresh zipped copy of WP and use *that* version – yours may have gotten
   corrupted somehow.
 *  [solitude12](https://wordpress.org/support/users/solitude12/)
 * (@solitude12)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/no-themes-error/#post-525650)
 * Okay, I had this problem too, and the files aren’t corrupted. The problem is 
   that your themes folder (where your themes are in) is protected from reading!
   In your FTP Manager, right click the folder and press Properties or Protection,
   or something along the lines of that. Then make sure the “read” checks are all
   checked. That should fix it!
 * I had that problem with my plugins too, and did the same.
 * You can also do what **doodlebee** said, and reinstall WP, because that also 
   fixes the protections to defaults.

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

The topic ‘No Themes-Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [solitude12](https://wordpress.org/support/users/solitude12/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/no-themes-error/#post-525650)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
