Title: WordPress requirement issue with wp_json_encode
Last modified: August 24, 2016

---

# WordPress requirement issue with wp_json_encode

 *  Resolved [Endymion00](https://wordpress.org/support/users/endymion00/)
 * (@endymion00)
 * [11 years ago](https://wordpress.org/support/topic/wordpress-requirement-issue-with-wp_json_encode/)
 * Plugin description says it requires WP 3.8 or higher… however it’s using the “
   wp_json_encode” function which requires WP 4.1+.
 * Using WP 3.9.6 it throws the following error sporadically:
 * `Fatal error: Call to undefined function wp_json_encode() in /wp-content/plugins/
   wp-rollback/wp-rollback.php on line 615`
 * So, you may need to adjust your minimum or come up with a pre-4.1 alternative.
 * Ref: [https://developer.wordpress.org/reference/functions/wp_json_encode/](https://developer.wordpress.org/reference/functions/wp_json_encode/)
 * [https://wordpress.org/plugins/wp-rollback/](https://wordpress.org/plugins/wp-rollback/)

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

 *  Plugin Author [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [11 years ago](https://wordpress.org/support/topic/wordpress-requirement-issue-with-wp_json_encode/#post-6150177)
 * Thanks for catching this. We’re going to use a fallback method so 3.8+ users 
   can use it.
 *  Plugin Author [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [11 years ago](https://wordpress.org/support/topic/wordpress-requirement-issue-with-wp_json_encode/#post-6150339)
 * 1.2.2 removes wp_json_encode function. Please let me know if you notice any other
   issues! Thanks for reporting this.

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

The topic ‘WordPress requirement issue with wp_json_encode’ is closed to new replies.

 * ![](https://ps.w.org/wp-rollback/assets/icon-256x256.jpg?rev=3014868)
 * [WP Rollback - Rollback Plugins and Themes](https://wordpress.org/plugins/wp-rollback/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rollback/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rollback/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rollback/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rollback/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rollback/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/wordpress-requirement-issue-with-wp_json_encode/#post-6150339)
 * Status: resolved