Notice: Function register_rest_route was called incorrectly. REST API routes must be registered on the rest_api_init action. Instead route '/auth/signup' with namespace 'duke/v1' was not registered on this action. Please see Debugging in WordPress for more information. (This message was added in version 5.1.0.) in /home/zwlxgsqn/public_html/wp-includes/functions.php on line 6170
Fatal error: Uncaught Error: Class "WP_Site_Health" not found in /home/zwlxgsqn/public_html/wp-includes/rest-api.php:396
Stack trace:
#0 /home/zwlxgsqn/public_html/wp-includes/class-wp-hook.php(341): create_initial_rest_routes(Object(WP_REST_Server))
#1 /home/zwlxgsqn/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#2 /home/zwlxgsqn/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#3 /home/zwlxgsqn/public_html/wp-includes/rest-api.php(649): do_action('rest_api_init', Object(WP_REST_Server))
#4 /home/zwlxgsqn/public_html/wp-includes/rest-api.php(154): rest_get_server()
#5 /home/zwlxgsqn/public_html/wp-content/themes/duke-music-work/inc/rest-api.php(551): register_rest_route('duke/v1', '/auth/signup', Array)
#6 /home/zwlxgsqn/public_html/wp-content/themes/duke-music-work/functions.php(15): require_once('/home/zwlxgsqn/...')
#7 /home/zwlxgsqn/public_html/wp-settings.php(739): include('/home/zwlxgsqn/...')
#8 /home/zwlxgsqn/public_html/wp-config.php(89): require_once('/home/zwlxgsqn/...')
#9 /home/zwlxgsqn/public_html/wp-load.php(50): require_once('/home/zwlxgsqn/...')
#10 /home/zwlxgsqn/public_html/wp-blog-header.php(13): require_once('/home/zwlxgsqn/...')
#11 /home/zwlxgsqn/public_html/index.php(17): require('/home/zwlxgsqn/...')
#12 {main}
thrown in /home/zwlxgsqn/public_html/wp-includes/rest-api.php on line 396