Title: Warning array_push() expects parameter 1 to be array, null given
Last modified: August 22, 2016

---

# Warning array_push() expects parameter 1 to be array, null given

 *  Resolved [aproudlove](https://wordpress.org/support/users/aproudlove/)
 * (@aproudlove)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/warning-array_push-expects-parameter-1-to-be-array-null-given/)
 * Hi,
    Ever since updating the Jetpack plugin Im now getting errors on my site 
   and having problems logging in. The error Im getting is;
 *     ```
       Warning: array_push() expects parameter 1 to be array, null given in /data/web/virtuals/80757/virtual/www/domains/aproudlove.com/wp-content/plugins/jetpack/modules/omnisearch/omnisearch-posts.php on line 17
   
       Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/80757/virtual/www/domains/aproudlove.com/wp-content/plugins/jetpack/modules/omnisearch/omnisearch-posts.php:17) in /data/web/virtuals/80757/virtual/www/domains/aproudlove.com/wp-includes/pluggable.php on line 1178
       ```
   
 * Can you help please?
 * Many thanks
 * Andrew
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

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

 *  Thread Starter [aproudlove](https://wordpress.org/support/users/aproudlove/)
 * (@aproudlove)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/warning-array_push-expects-parameter-1-to-be-array-null-given/#post-5935771)
 * Hi,
    Just wanted to say that I managed to fix this.
 *  For anyone else that wants to do the same, FTP into your site
    Locate the plugins
   folder (under wp-content) Rename the Jetpack folder to something like _jetpack
 *  Go back to your webpage, refresh and now login, it should work, once your back
   at your WP dashboard, update your jetpack plugin.
 *  Cheers,
 *  Andrew
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 2 months ago](https://wordpress.org/support/topic/warning-array_push-expects-parameter-1-to-be-array-null-given/#post-5935911)
 * Thanks for the report!
 * That issue should also be fixed in the most recent version of Jetpack.
 * Here is the related commit:
    [https://github.com/Automattic/jetpack/commit/1a86fdb0f1535a92639c936211c9516ac1601c71](https://github.com/Automattic/jetpack/commit/1a86fdb0f1535a92639c936211c9516ac1601c71)

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

The topic ‘Warning array_push() expects parameter 1 to be array, null given’ is 
closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/warning-array_push-expects-parameter-1-to-be-array-null-given/#post-5935911)
 * Status: resolved