Title: Error: array_keys() [function.array-keys]
Last modified: August 19, 2016

---

# Error: array_keys() [function.array-keys]

 *  [lklow](https://wordpress.org/support/users/lklow/)
 * (@lklow)
 * [17 years ago](https://wordpress.org/support/topic/error-array_keys-functionarray-keys/)
 * I had inserted a text widget. When I keyed in some texts and saved it, the following
   error message popped out:
 * Warning: array_keys() [function.array-keys]: The first argument should be an 
   array in /home2/foodtots/public_html/wp-includes/widgets.php on line 1045.
 * Now some of my sidebar widgets had disappeared. I can’t even find this widget
   when I login to my WordPress. Hope someone can help as I need to make some important
   announcement today.
 * my website: [http://food-4tots.com](http://food-4tots.com)

The topic ‘Error: array_keys() [function.array-keys]’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [lklow](https://wordpress.org/support/users/lklow/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/error-array_keys-functionarray-keys/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
