Title: Call to undefiened function
Last modified: September 1, 2016

---

# Call to undefiened function

 *  [KSM899](https://wordpress.org/support/users/ksm899/)
 * (@ksm899)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefiened-function/)
 * Hello
 * We noticed on the logs today this appearing:
 * “NOTICE: PHP message: PHP Fatal error: Call to undefined function register_rest_field()
   in /home/atheer/shared/atheer.om/wp-content/plugins/sportspress/includes/api/
   class-sp-rest-api.php on line 60”
 * I never modified anything on the plugin.
 * Regards
 * [https://wordpress.org/plugins/sportspress/](https://wordpress.org/plugins/sportspress/)

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

 *  [luckyme3435](https://wordpress.org/support/users/luckyme3435/)
 * (@luckyme3435)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefiened-function/#post-7497257)
 * I am also experiencing this issue. Similarly, I have not edited any of my plugin
   code. I do believe I know what the issue stems from, at least in my case. Perhaps
   it is the same reason in your case as well. The issue is coming from the integration
   of the Rest Api plugin into the WP core. We have delayed updating since 4.3.1
   because our solution depends heavily on the Rest Api plugin – as it exists outside
   of WP core (~wp version Clifford and above). In addressing this dependency so
   we can update, I ran into this issue.
 * tldr;
 * Have you updated WP recently?
 *  [luckyme3435](https://wordpress.org/support/users/luckyme3435/)
 * (@luckyme3435)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefiened-function/#post-7497265)
 * After some digging I came across a post stating that the rest API hasn’t been
   fully integrated into core yet. So after updating WordPress to 4.5.2, and after
   upgrading the network sites, I then saw that there was an available update for
   the rest API plugin. Updating the plugin after updating WP solved my issue. I
   hope this helps.
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefiened-function/#post-7497292)
 * Hi guys!
 * Also disabling WP_DEBUG and notices will take care of this, as it’s just a notice(
   no features should be missing there)
 * Thanks for your input as well, [@luckyme3435](https://wordpress.org/support/users/luckyme3435/)!
 * Kind Regards,
    -Roch

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

The topic ‘Call to undefiened function’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Roch](https://wordpress.org/support/users/rochesterj/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefiened-function/#post-7497292)
 * Status: not resolved