Title: JSON Decoding Failure (#144)
Last modified: August 30, 2016

---

# JSON Decoding Failure (#144)

 *  [alignedcargo](https://wordpress.org/support/users/alignedcargo/)
 * (@alignedcargo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/json-decoding-failure-144/)
 * Every time I try to migrate DB from my live site, I get this error. Locally, 
   everything works perfectly. I have tried deactivating all plugins and I have 
   tried adding FTP permissions my wp-config.php files. Nothing seems to be working.
   Please help! Thanks a million.
 * JSON Decoding Failure — Our AJAX request was expecting JSON but we received something
   else. Often this is caused by your theme and/or plugins spitting out PHP errors.
   If you can edit the theme or plugins causing the errors, you should be able to
   fix them up, but if not, you can set WP_DEBUG to false in wp-config.php to disable
   errors from showing up. (#144)
    View error messages
 * Warning: gzopen(D:\Hosting\11682011\html\bitss/wp-content/uploads\wp-migrate-
   db\bitsstest-migrate-20151207004100-mt1d2.sql.gz) [function.gzopen]: failed to
   open stream: Permission denied in D:\Hosting\11682011\html\bitss\wp-content\plugins\
   wp-migrate-db\class\wpmdb.php on line 1988
 * Warning: gzclose() expects parameter 1 to be resource, boolean given in D:\Hosting\
   11682011\html\bitss\wp-content\plugins\wp-migrate-db\class\wpmdb.php on line 
   1998
    {“migration_state_id”:”5664d59c3d138″}
 * [https://wordpress.org/plugins/wp-migrate-db/](https://wordpress.org/plugins/wp-migrate-db/)

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

 *  [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * (@ianmjones)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/json-decoding-failure-144/#post-6819523)
 * Can you try the export without the “Compress file with gzip” option?
 *  Thread Starter [alignedcargo](https://wordpress.org/support/users/alignedcargo/)
 * (@alignedcargo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/json-decoding-failure-144/#post-6819528)
 * I’ve tried exporting both with and without the “Compress file with gzip” option–
   neither works, unfortunately.
 *  [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * (@ianmjones)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/json-decoding-failure-144/#post-6819532)
 * What’s the error when not using gzip?
 * Also, what version of WP Migrate DB are you using, the recently released 0.7.2?
 *  [mind283](https://wordpress.org/support/users/mind283/)
 * (@mind283)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/json-decoding-failure-144/#post-8576950)
 * I also get the same error:
    Migration failed
 * JSON Decoding Failure — Our AJAX request was expecting JSON but we received something
   else. Often this is caused by your theme and/or plugins spitting out PHP errors.
   If you can edit the theme or plugins causing the errors, you should be able to
   fix them up, but if not, you can set WP_DEBUG to false in wp-config.php to disable
   errors from showing up. (#144)
    View error messages
 * Warning: fopen(/var/www/aber.vn/html/wp-content/uploads/aber_vn-migrate-20161221153819-
   b56t3.sql): failed to open stream: Permission denied in /var/www/aber.vn/html/
   wp-content/plugins/wp-migrate-db/class/wpmdb.php on line 2719
 * Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/
   aber.vn/html/wp-content/plugins/wp-migrate-db/class/wpmdb.php on line 2729
    {“
   migration_state_id”:”585aa1ebd9c4b”}

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

The topic ‘JSON Decoding Failure (#144)’ 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/)

## Tags

 * [decoding](https://wordpress.org/support/topic-tag/decoding/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [permissions](https://wordpress.org/support/topic-tag/permissions/)

 * 4 replies
 * 3 participants
 * Last reply from: [mind283](https://wordpress.org/support/users/mind283/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/json-decoding-failure-144/#post-8576950)
 * Status: not resolved