Title: JSON error
Last modified: August 22, 2016

---

# JSON error

 *  Resolved [graphicbob](https://wordpress.org/support/users/graphicbob/)
 * (@graphicbob)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/json-error-2/)
 * When I import the exported JSON file, I get an error: _Sorry, there has been 
   an error. This file may not contain data or is corrupt._
 * When I open the JSON file in a text editor, it says: _Warning: json\_encode()
   expects exactly 1 parameter, 2 given in …/wp-content/plugins/options-importer/
   options-importer.php on line 213_ (i removed html tags and replaced the absolute
   file path with ‘…’)
 * Any idea what’s going on here?
 * [https://wordpress.org/plugins/options-importer/](https://wordpress.org/plugins/options-importer/)

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

 *  Plugin Author [Matthew Boynes](https://wordpress.org/support/users/mboynes/)
 * (@mboynes)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/json-error-2/#post-5556971)
 * Yes, it would seem that you are using an old and outdated version of PHP. I accounted
   for this in one respect, but it didn’t occur to me that it would throw a warning
   and prevent the JSON from being written. I’ll be sure to update this to prevent
   that error with your version of PHP.
 * As an aside, I would recommend updating PHP if that’s within your control. While
   WordPress still works with your version of PHP, any version < 5.4 is no longer
   officially supported by The PHP Group and will no longer receives security patches,
   etc.
 *  Thread Starter [graphicbob](https://wordpress.org/support/users/graphicbob/)
 * (@graphicbob)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/json-error-2/#post-5556972)
 * Ugh. You are correct. This is a client’s VPS hosting account with Hostgator, 
   which has been nothing but trouble since I started working on it. It is using
   php 5.2.17
 * I will try to have them update php, but it took a month to get a dedicated IP
   address, so I won’t hold my breath!
 * Thanks for the info.

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

The topic ‘JSON error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/options-importer.svg)
 * [WP Options Importer](https://wordpress.org/plugins/options-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/options-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/options-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/options-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/options-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/options-importer/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [graphicbob](https://wordpress.org/support/users/graphicbob/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/json-error-2/#post-5556972)
 * Status: resolved