Title: array_keys() [function.array-keys] &#8211; not using widgets
Last modified: August 19, 2016

---

# array_keys() [function.array-keys] – not using widgets

 *  Resolved [dustyhawk](https://wordpress.org/support/users/dustyhawk/)
 * (@dustyhawk)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/array_keys-functionarray-keys-not-using-widgets/)
 * > Warning: array_keys() [function.array-keys]: The first argument should be an
   > array in /home/namedomain/public_html/namedomain/wp-includes/widgets.php on
   > line 686
   > Warning: Invalid argument supplied for foreach() in /home/namedomain/public_html/
   > namedomain/wp-includes/widgets.php on line 686
 * i read the topic for :
 * [http://wordpress.org/support/topic/172272?replies=23](http://wordpress.org/support/topic/172272?replies=23)
 * it seems to be caused by a widget.
 * However i’m not using any widget and even on a theme that is widget free, all
   plugin switch off, that warning is still there

Viewing 1 replies (of 1 total)

 *  Thread Starter [dustyhawk](https://wordpress.org/support/users/dustyhawk/)
 * (@dustyhawk)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/array_keys-functionarray-keys-not-using-widgets/#post-837156)
 * the above began with
 * [http://wordpress.org/support/topic/197308?replies=6](http://wordpress.org/support/topic/197308?replies=6)
 * Whereby i had problems with creating/edit/delete post/page/link. It was solved
   with using the new wp-config.php as my old version did not have the secret key.(
   though the big blank white space is still there)
 * As soon as i uploaded the (new)wp-config.php , the following warning appear
 * > Warning: array_keys() [function.array-keys]: The first argument should be an
   > array in /home/namedomain/public_html/namedomain/wp-includes/widgets.php on
   > line 686
   > Warning: Invalid argument supplied for foreach() in /home/namedomain/public_html/
   > namedomain/wp-includes/widgets.php on line 686
 * Thinking I did something wrong with the (new)wp-config.php , i replace the (old)
   wp-config.php . Now when i place the (old)wp-config.php, the issues from [http://wordpress.org/support/topic/197308?replies=6](http://wordpress.org/support/topic/197308?replies=6)
   will begin again.
 * Anyway the (new)wp-config.php is being used and besides the above warning error
   appearing on my websites main page as well as the wp dasboard, it breaks the 
   admin page. Where the right sidebar is on top while the [title] and the [body]
   section is at the bottom.
 * something like this :
 * [http://www.geocities.com/leo141083/wp-261-error1.jpg](http://www.geocities.com/leo141083/wp-261-error1.jpg)

Viewing 1 replies (of 1 total)

The topic ‘array_keys() [function.array-keys] – not using widgets’ is closed to 
new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [dustyhawk](https://wordpress.org/support/users/dustyhawk/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/array_keys-functionarray-keys-not-using-widgets/#post-837156)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
