Title: Code bug
Last modified: August 28, 2020

---

# Code bug

 *  Resolved [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/code-bug-3/)
 * PHP Warning: array_merge(): Expected parameter 1 to be an array, null given in
   
   plugins\wp-migrate-db\class\Common\Replace.php on line 341
 * PLease fix this code.

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

 *  Thread Starter [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/code-bug-3/#post-13373707)
 * At list fix major bugs in your plugin.
 *  Plugin Author [Delicious Brains](https://wordpress.org/support/users/deliciousbrains/)
 * (@deliciousbrains)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/code-bug-3/#post-13840058)
 * Hey [@ravipatel](https://wordpress.org/support/users/ravipatel/) can you confirm
   what version of the plugin are you using?
 *  Thread Starter [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/code-bug-3/#post-13940352)
 * Warning: chmod(): Operation not permitted in /code/wp-content/plugins/wp-migrate-
   db/class/Common/Filesystem/Filesystem.php on line 277
 *  Plugin Author [Delicious Brains](https://wordpress.org/support/users/deliciousbrains/)
 * (@deliciousbrains)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-bug-3/#post-14163612)
 * Hi [@ravipatel](https://wordpress.org/support/users/ravipatel/) the array_merge()
   was an issue in a previous version but has been fixed now and you should be all
   good if you are running v1.0.17.
 * The chmod() issue normally indicates there are server permission issues.
    It 
   sounds like the webserver may not be able to write to the filesystem of the server.
   Take a look at this article for the correct file permissions for your install
   [https://wordpress.org/support/article/changing-file-permissions/](https://wordpress.org/support/article/changing-file-permissions/)

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

The topic ‘Code bug’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Delicious Brains](https://wordpress.org/support/users/deliciousbrains/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/code-bug-3/#post-14163612)
 * Status: resolved