Title: Warning: array_keys() [function.array-keys]: The first argument&#8230;
Last modified: August 19, 2016

---

# Warning: array_keys() [function.array-keys]: The first argument…

 *  Resolved [hilj](https://wordpress.org/support/users/hilj/)
 * (@hilj)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/warning-array_keys-functionarray-keys-the-first-argument/)
 * I get this when I try to install wp:
 * Warning: array_keys() [function.array-keys]: The first argument should be an 
   array in /nfs/c06/h04/mnt/xxxxxx/domains/mydomain.com/html/the-site/wp-includes/
   theme.php on line 513
 * This happens in themes and plugins. I tried to set the file permissions to 777
   and removed all plugins and themes and added them back. Deleted the wp-conten
   nd wp-includes folders and added them again.
 * Nothign seemes to help. I’m on Mediatemple.
 * All help it very much appreciated! 🙂

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/warning-array_keys-functionarray-keys-the-first-argument/#post-1618947)
 * > I’m on Mediatemple
 * you might want to check if you have been hacked
    [http://wordpress.org/support/topic/was-my-site-just-hacked-found-random-script-in-all-pagesposts?replies=30](http://wordpress.org/support/topic/was-my-site-just-hacked-found-random-script-in-all-pagesposts?replies=30)
 *  Thread Starter [hilj](https://wordpress.org/support/users/hilj/)
 * (@hilj)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/warning-array_keys-functionarray-keys-the-first-argument/#post-1618951)
 * No I haven’t, cause the it was like this the second I uploaded the files and 
   database.
 *  Thread Starter [hilj](https://wordpress.org/support/users/hilj/)
 * (@hilj)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/warning-array_keys-functionarray-keys-the-first-argument/#post-1619153)
 * It’s not a plugin that is causing it cause I removed all of them.
 * It’s not file permissions, I changed theme and plugin folder to 777.
 * It’s not data corruption (or what ever you call it) I deleted all files and reuploaded
   them.
 * My apologies if I was too hasty to bump this.
 *  [tingyat](https://wordpress.org/support/users/tingyat/)
 * (@tingyat)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/warning-array_keys-functionarray-keys-the-first-argument/#post-1619379)
 * Not sure if this is off any help. I’m having issues trying to use the media app
   and uploading and then editing images. In one response on this support forum 
   someone suggested changing permission on the wp-content folder to 766 which I
   did and this is when I got this and other errors. Went back to reset the permissions
   to their original 755 and this issue went away.
 * One’s got to ask why this error came up under these circumstance in the first
   place – as in slack coding somewhere?
 * Still haven’t resolved my media issues….

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

The topic ‘Warning: array_keys() [function.array-keys]: The first argument…’ 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: [tingyat](https://wordpress.org/support/users/tingyat/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/warning-array_keys-functionarray-keys-the-first-argument/#post-1619379)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
