Title: REST API Errors
Last modified: April 7, 2021

---

# REST API Errors

 *  Resolved [dbm44](https://wordpress.org/support/users/dbm44/)
 * (@dbm44)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/rest-api-errors-4/)
 * The latest version of the plugin is showing the following PHP notice in the debug
   log whenever I go to add or edit any Posts or Pages within WP-Admin
 * `PHP Notice: register_rest_route was called <strong>incorrectly</strong>. The
   REST API route definition for <code>cleantalk-antispam/v1/js_keys__get</code>
   is missing the required <code>permission_callback</code> argument. For REST API
   routes that are intended to be public, use <code>__return_true</code> as the 
   permission callback. Please see <a href="https://wordpress.org/support/article/
   debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This
   message was added in version 5.5.0.) in /home/******/wp-includes/functions.php
   on line 5313`

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

 *  Plugin Support [sergecleantalk](https://wordpress.org/support/users/sergecleantalk/)
 * (@sergecleantalk)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14286508)
 * Hello,
 * Our developers will check this.
 * We will contact you within 1-2 business days.
 *  Plugin Support [sergecleantalk](https://wordpress.org/support/users/sergecleantalk/)
 * (@sergecleantalk)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14286627)
 * We’ve made fixes. Please try this version:
 * [https://github.com/CleanTalk/wordpress-antispam/releases/download/fix-version/cleantalk-spam-protect.zip](https://github.com/CleanTalk/wordpress-antispam/releases/download/fix-version/cleantalk-spam-protect.zip)
 *  [pbdesigns](https://wordpress.org/support/users/pbdesigns/)
 * (@pbdesigns)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14299102)
 * I was experiencing this issue, and installed the above file, and am still experiencing
   it too.
 *  Plugin Support [katereji](https://wordpress.org/support/users/katereji/)
 * (@katereji)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14299243)
 * Hello, [@pbdesigns](https://wordpress.org/support/users/pbdesigns/)
    For further
   actions please contact us by our private Ticket System: [https://cleantalk.org/my/support/open](https://cleantalk.org/my/support/open)
 *  [ocorten](https://wordpress.org/support/users/ocorten/)
 * (@ocorten)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14320204)
 * Same here:
 * Notice: register_rest_route was called incorrectly. The REST API route definition
   for cleantalk-antispam/v1/js_keys__get is missing the required permission_callback
   argument. For REST API routes that are intended to be public, use __return_true
   as the permission callback. Please see Debugging in WordPress for more information.(
   This message was added in version 5.5.0.) in /var/www/vhosts/creosite.com/httpdocs/
   wp-includes/functions.php on line 5313
 *  [Millionleaves](https://wordpress.org/support/users/millionleaves/)
 * (@millionleaves)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14320327)
 * I was having this issue on a site running PHP7.4. Installing the update provided
   above resolved the issue.
 *  [SergeM](https://wordpress.org/support/users/serge00/)
 * (@serge00)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14320678)
 * Hello, [@ocorten](https://wordpress.org/support/users/ocorten/).
 * Does the fixed anti-spam version help you? The link was posted above here:
    [https://wordpress.org/support/topic/rest-api-errors-4/#post-14286627](https://wordpress.org/support/topic/rest-api-errors-4/#post-14286627)
 *  Plugin Support [sergecleantalk](https://wordpress.org/support/users/sergecleantalk/)
 * (@sergecleantalk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14339881)
 * Hello,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.
 *  Thread Starter [dbm44](https://wordpress.org/support/users/dbm44/)
 * (@dbm44)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14340436)
 * I can confirm that the latest version of the plugin has resolved this
 *  Plugin Support [sergecleantalk](https://wordpress.org/support/users/sergecleantalk/)
 * (@sergecleantalk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14340468)
 * Thank you for your feedback

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

The topic ‘REST API Errors’ is closed to new replies.

 * ![](https://ps.w.org/cleantalk-spam-protect/assets/icon-256x256.png?rev=1637702)
 * [Spam protection, Honeypot, Anti-Spam by CleanTalk](https://wordpress.org/plugins/cleantalk-spam-protect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleantalk-spam-protect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleantalk-spam-protect/)
 * [Active Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleantalk-spam-protect/reviews/)

 * 10 replies
 * 7 participants
 * Last reply from: [sergecleantalk](https://wordpress.org/support/users/sergecleantalk/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-errors-4/#post-14340468)
 * Status: resolved