Title: Call to undefined function WP101\wp_json_encode
Last modified: August 19, 2020

---

# Call to undefined function WP101\wp_json_encode

 *  Resolved [elkswebteam](https://wordpress.org/support/users/elkswebteam/)
 * (@elkswebteam)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp101wp_json_encode/)
 * I removed some plugins that were said to be inactive and now I’m unable to reach
   my site.
    Any suggestions.
 * HEre’s the full error message.
    Fatal error: Call to undefined function WP101\
   wp_json_encode() in /home4/my9to5/public_html/wp-content/plugins/wp101/includes/
   class-api.php on line 517
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcall-to-undefined-function-wp101wp_json_encode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [elkswebteam](https://wordpress.org/support/users/elkswebteam/)
 * (@elkswebteam)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp101wp_json_encode/#post-13283134)
 * I was able to fix this by going into the file manager and deleting the WP101.
   php file located at ..wp-content/plugins/wp101/
 *  [Steve Grunwell](https://wordpress.org/support/users/stevegrunwell/)
 * (@stevegrunwell)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp101wp_json_encode/#post-13283954)
 * Hi [@elkswebteam](https://wordpress.org/support/users/elkswebteam/),
 * The function referenced is [`wp_json_encode()`](https://developer.wordpress.org/reference/functions/wp_json_encode/),
   which is WordPress core’s wrapper around PHP’s native `json_encode()` function.`
   wp_json_encode()` was introduced in WordPress 4.1.0, back in late-2014(!).
 * Looking at the `<meta name="generator" />` tag on your site’s source, it appears
   that your site is currently running version 4.0.12 of WordPress, which pre-dates
   the introduction of `wp_json_encode()`.
 * I’d recommend updating to the most recent release of WordPress as soon as you’re
   able, as there have been a number of major security fixes released since your
   last update. Once upgraded, I would suggest re-installing the WP101 Plugin (assuming
   you’re a subscriber), as `wp101.php` is responsible for bootstrapping the plugin.
 * Be forewarned, however, that WordPress core introduced its new block-based editor(
   a.k.a. “Gutenberg”) in version 5.0, so the content editing experience has changed.
   Should you need more time to get authors up-to-speed, [the WordPress team maintains a Classic Editor plugin to restore the older functionality](https://wordpress.org/plugins/classic-editor/).
 * In the meantime, I’ll make sure that the “Requires at least” is updated within
   the WP101 Plugin to reflect that version 5.x of the plugin indeed requires at
   least WordPress 4.1.
 *  Thread Starter [elkswebteam](https://wordpress.org/support/users/elkswebteam/)
 * (@elkswebteam)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp101wp_json_encode/#post-13284006)
 * Thank you for your reply Steve. I’m part of a brand new team working on the site
   and updating the WordPress version is high on our list. Right after getting a
   good Full Backup 🙂
    Best, Jay

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

The topic ‘Call to undefined function WP101\wp_json_encode’ is closed to new replies.

 * ![](https://ps.w.org/wp101/assets/icon-256x256.jpg?rev=2204738)
 * [WP101 Video Tutorial Plugin](https://wordpress.org/plugins/wp101/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp101/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp101/)
 * [Active Topics](https://wordpress.org/support/plugin/wp101/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp101/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp101/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [elkswebteam](https://wordpress.org/support/users/elkswebteam/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp101wp_json_encode/#post-13284006)
 * Status: resolved