Title: Fatal error: Call to undefined function wp_json_encode()
Last modified: August 22, 2016

---

# Fatal error: Call to undefined function wp_json_encode()

 *  [laurabrivadera](https://wordpress.org/support/users/laurabrivadera/)
 * (@laurabrivadera)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_json_encode/)
 * Hi i had the following error and i dont know how to solve it
 * Fatal error: Call to undefined function wp_json_encode() in /home/u507502189/
   public_html/wp-includes/theme.php on line 1960
 * I reinstalled all wp unless content and config, but the error continue.
 * Thanks, Laura

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_json_encode/#post-5604367)
 * Try [manually resetting your plugins](https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, access your server via [FTP or SFTP](https://codex.wordpress.org/FTP_Clients),
   navigate to `/wp-content/themes/` and rename the directory of your currently 
   active theme. This will force the default theme to activate and hopefully rule-
   out a theme-specific issue (theme functions can interfere like plugins).

Viewing 1 replies (of 1 total)

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_json_encode/#post-5604367)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
