• Resolved epineiro

    (@epineiro)


    When I make a GET call to the following endpoint: https://example.com/wp-json/wp/v2/users/
    I get the following error:

    Fatal error: Uncaught Error: Class ‘AAM_Api_Rest_Resource_User’ not found in /var/www/html/xtsc.ca/wp-content/plugins/advanced-access-manager/Application/Api/Manager.php:106
    Stack trace:
    #0 /var/www/html/xtsc.ca/wp-includes/class-wp-hook.php(286): AAM_Api_Manager->beforeDispatch(NULL, Array, Object(WP_REST_Request))
    #1 /var/www/html/xtsc.ca/wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/html/xtsc.ca/wp-includes/rest-api/class-wp-rest-server.php(901): apply_filters(‘rest_request_be…’, NULL, Array, Object(WP_REST_Request))
    #3 /var/www/html/xtsc.ca/wp-includes/rest-api/class-wp-rest-server.php(321): WP_REST_Server->dispatch(Object(WP_REST_Request))
    #4 /var/www/html/xtsc.ca/wp-includes/rest-api.php(266): WP_REST_Server->serve_request(‘/wp/v2/users’)
    #5 /var/www/html/xtsc.ca/wp-includes/class-wp-hook.php(286): rest_api_loaded(Object(WP))
    #6 /var/www/html/xtsc.ca/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #7 /var/www/html/xtsc.ca/wp-includes/plugin.php(515): WP_Hook-> in /var/www/html/xtsc.ca/wp-content/plugins/advanced-access-manager/Application/Api/Manager.php on line 106

    The page I need help with: [log in to see the link]

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

The topic ‘Error when making a call to REST API’ is closed to new replies.