Title: Widget Logic Array Warning/ Error
Last modified: August 19, 2016

---

# Widget Logic Array Warning/ Error

 *  [blueyonder](https://wordpress.org/support/users/blueyonder/)
 * (@blueyonder)
 * [16 years ago](https://wordpress.org/support/topic/widget-logic-array-warning-error/)
 * I am getting the following warning on the top of my site:
 * Warning: array_push() [function.array-push]: First argument should be an array
   in /wp-content/plugins/widget-logic/widget_logic.php on line 138
 * Widget logic is working fine though, but is giving the error. Any ideas what 
   to do?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [16 years ago](https://wordpress.org/support/topic/widget-logic-array-warning-error/#post-1478872)
 * it suggests that you have a misbehaving widget somewhere. all the widgets in 
   the main WP code are OK, so it must be from a plugin or widget code in your theme.
 * try deactivating widget-providing plugins one at a time. and if your theme provides
   widgets, try switching temporarily to the default WP theme to see if that helps.
 * alternatively if you are up to some hacking of my plugin you could try changing
   line 137 to
 * if (!$wp_registered_widgets[$id][‘callback_wl_redirect’] && array_key_exists(‘
   params’,$wp_registered_widgets[$id]) )
 * however that won’t fix the misbehaving widget, so it’s appearance won’t be controlled
   by widget logic, but it will stop the error appearing.
 * i’d be interested to see the code of the problematic widget so that i can make
   it work tho. so let me know.

Viewing 1 replies (of 1 total)

The topic ‘Widget Logic Array Warning/ Error’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/widget-logic-array-warning-error/#post-1478872)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
