Notice: register_rest_route was called incorrectly

Ask New Question
  • Notice: register_rest_route was called incorrectly

    Suddenly I got this error when clicked on the Add New Post link.

    Notice: register_rest_route was called incorrectly. The REST API route definition for wpra/v1/templates(?:/(?P[^/]+))? 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 ***/functions.php on line 5225

    Please help, How do I fix this?

    Reply
2 Replies Reply
  • Author
    Replies
  • |  

    You should update the WordPress and all installed plugins. Logout clear cache and then try to open it again.

    Another reason that it could be due to some cache plugin. So try clearing cache of the cache plugin. I faced the same issue on one of my website and I fixed it using the above procedure. Hopefully it will work for you.

    Reply
    |  

    Стремись не к тому, чтобы добиться успеха, а к тому, чтобы твоя жизнь имела смысл. http://bit.do/fLc9r?h=eac0bc79d4179e8e4d0924eee6363238&

    Reply
Viewing 2 replies - 1 through 2 (of 2 total)
Reply To: Notice: register_rest_route was called incorrectly
Your information: