Title: Fatal Error Call to undefined function wp_json_encode()
Last modified: September 1, 2016

---

# Fatal Error Call to undefined function wp_json_encode()

 *  [sudip9](https://wordpress.org/support/users/sudip9/)
 * (@sudip9)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_json_encode-3/)
 * I recently install Yoast Seo plugin version 3.3.4 in dashboard . After some time
   when i try to access my site it shows
    Fatal error: Call to undefined function
   wp_json_encode() in /home/content/y/a/k/yaksophp/html/himalayanholidaysnepal/
   wp-content/plugins/wordpress-seo/frontend/class-json-ld.php on line 113.
 * I have no access to edit the code and i am not a programmer. How can i fix this
   issue?? any suggestion would be greatly appreciated
 * thanks in advance

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_json_encode-3/#post-7542061)
 * Please check with the Yoast devs by reposting your question in their support 
   area:
 * [https://wordpress.org/support/plugin/wordpress-seo](https://wordpress.org/support/plugin/wordpress-seo)
 *  [Mohsin Rasool](https://wordpress.org/support/users/mohsinrasool/)
 * (@mohsinrasool)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_json_encode-3/#post-8334310)
 * `<a href="https://developer.wordpress.org/reference/functions/wp_json_encode/"
   >wp_json_encode()</a>` functions was introduced in WordPress 4.1.0. I believe,
   it happened because you have older WordPress version but latest Yoast plugin.

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

The topic ‘Fatal Error Call to undefined function wp_json_encode()’ is closed to
new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_json_encode-3/#post-7542061)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
