register_rest_route called incorrectly
I’m getting this error on multiple servers. ```[ERROR] E_USER_NOTICE: Function register_rest_route was called <strong>incorrectly</strong>. REST API routes must be registered on the <code>rest_api_init</code> action. Instead route '<code>/claude</code>' with namespace '<code>snipvault/v1</code>' was not registered on this action.```
Log in to comment and vote
Comments1
Ryan
Mar 20, 2025
{ "date": "March 20, 2025", "time": "8:46 pm", "id": "snipvault_67dc7ec2c60d56.78266224", "type": "NOTICE", "file": "/home/bobeneniwe6906/web/testingthings.instawp.xyz/public_html/wp-includes/functions.php", "line": null, "message": "Function register_rest_route was called <strong>incorrectly</strong>. REST API routes must be registered on the <code>rest_api_init</code> action. Instead route '<code>/filesystem/enable</code>' with namespace '<code>snipvault/v1</code>' was not registered on this action. Please see <a href=\"https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/\">Debugging in WordPress</a> for more information. (This message was added in version 5.1.0.)", "stackTrace": [] }This is filling up the debug log. The register_rest_route function is not being called correctly or in the right place or hook or at the right time.