Title: array_merge(): Expected parameter 1 to be an array, null given
Last modified: May 8, 2020

---

# array_merge(): Expected parameter 1 to be an array, null given

 *  [Robin](https://wordpress.org/support/users/robin-ho/)
 * (@robin-ho)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/array_merge-expected-parameter-1-to-be-an-array-null-given/)
 * I’ve had thousands of these pop up in the php debug.log using the Pro version
 * `PHP Warning: array_merge(): Expected parameter 1 to be an array, null given 
   in /home/mysite/public_html/wp-content/plugins/wp-migrate-db-pro/class/Common/
   Replace.php on line 341`
 * Also line 340
 * Also, a couple of these:
 * `array_merge(): Expected parameter 1 to be an array, string given in /home/mysite/
   public_html/wp-content/plugins/wp-migrate-db-pro/class/Common/Replace.php on 
   line 341`
 * And line 340
 * Do I need to take any action?
 * Also, I had a few of these, but no errors on the front end. Should I be worried
   about data not being searched and replaced properly?
 * `WPMDB Error: Data cannot be unserialized. Scope: DeliciousBrains\WPMDB\Common\
   Replace::recursive_unserialize_replace().`
 * Thanks

The topic ‘array_merge(): Expected parameter 1 to be an array, null given’ is closed
to new replies.

 * ![](https://ps.w.org/wp-migrate-db/assets/icon.svg?rev=2851356)
 * [WP Migrate Lite - Migration Made Easy](https://wordpress.org/plugins/wp-migrate-db/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-migrate-db/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-migrate-db/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-migrate-db/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-migrate-db/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-migrate-db/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Robin](https://wordpress.org/support/users/robin-ho/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/array_merge-expected-parameter-1-to-be-an-array-null-given/)
 * Status: not resolved