Title: Error on get posts endpoint undefined function
Last modified: November 15, 2016

---

# Error on get posts endpoint undefined function

 *  [clibuy](https://wordpress.org/support/users/clibuy/)
 * (@clibuy)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-on-get-posts-endpoint-undefined-function/)
 * Hi,
 * I’ve just installed wp api rest (2) and rest-routes plugins for the first time
   on a already working wordpress site.
 * I tryed a first endpoint (simple, just return posts) and I’m getting this error
   when I visit de generated endpoint:
 * Fatal error: Call to undefined function get_registered_meta_keys() in /Applications/
   XAMPP/xamppfiles/htdocs/fonolab/wp-content/plugins/rest-api/lib/fields/class-
   wp-rest-meta-fields.php on line 244
 * I’m using wordpress 4.5.4
    On a local installation with Apache/2.4.23 (Unix) 
   OpenSSL/1.0.2j PHP/5.6.24 mod_perl/2.0.8-dev Perl/v5.16.3
 * I haven’t used the wp-rest-api plugin by it’s own, so it could be an error on
   the other plugin also.
 * I’ll appreciate any help.
    Sorry for my english.

Viewing 1 replies (of 1 total)

 *  Thread Starter [clibuy](https://wordpress.org/support/users/clibuy/)
 * (@clibuy)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-on-get-posts-endpoint-undefined-function/#post-8440685)
 * It was wordpress version. I updated to 4.6.1 and the error has gone.

Viewing 1 replies (of 1 total)

The topic ‘Error on get posts endpoint undefined function’ is closed to new replies.

 * ![](https://ps.w.org/rest-routes/assets/icon-128x128.png?rev=1337282)
 * [Rest Routes – Custom Endpoints for WordPress REST API](https://wordpress.org/plugins/rest-routes/)
 * [Support Threads](https://wordpress.org/support/plugin/rest-routes/)
 * [Active Topics](https://wordpress.org/support/plugin/rest-routes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rest-routes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rest-routes/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [clibuy](https://wordpress.org/support/users/clibuy/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/error-on-get-posts-endpoint-undefined-function/#post-8440685)
 * Status: not resolved