Title: Text widget coding errors
Last modified: August 19, 2016

---

# Text widget coding errors

 *  [Jessica](https://wordpress.org/support/users/thejoyfu/)
 * (@thejoyfu)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/text-widget-coding-errors/)
 * Help! I was trying to add the code for a “grab my button” in a text widget box
   and I got these errors:
 * Warning: array_keys() [function.array-keys]: The first argument should be an 
   array in /home2/thejoyfu/public_html/wp-includes/widgets.php on line 686
 * Warning: Invalid argument supplied for foreach() in /home2/thejoyfu/public_html/
   wp-includes/widgets.php on line 686
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home2/thejoyfu/public_html/wp-includes/widgets.php:686) in /home2/thejoyfu/
   public_html/wp-login.php on line 267
 * Warning: Cannot mod
 * Now I can’t even use my WP control panel anymore. I use Cyberduck through BuleHost
   to manage my files, but I don’t know how to get to the lines that are in error
   and how to fix them when I get there. I have found the file /home2/thejoyfu/public_html/
   wp-includes/widgets.php in Cyber duck, but then what?
 * Where do I start?

Viewing 1 replies (of 1 total)

 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/text-widget-coding-errors/#post-1525730)
 * Using FTP, try replacing the widgets.php file with a fresh copy from the same
   version of WordPress.
 * [http://wordpress.org/download/release-archive/](http://wordpress.org/download/release-archive/)

Viewing 1 replies (of 1 total)

The topic ‘Text widget coding errors’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [iridiax](https://wordpress.org/support/users/iridiax/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/text-widget-coding-errors/#post-1525730)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
