500 errors when requesting users

[ad_1]

Greetings, sincerely grateful for your wonderful product (plugin), that’s the theme: because the function is enabled “

This function allows you to prohibit external users/bots can get user information using URLs such as”/? author=1″,” /wp-json/wp/v2/users”, and the oEmbed request.

When enabled, the error “access denied” will be displayed instead of user information.”

But I see 500 errors in the Nginx log, and this has always been the case for as long as I remember, I didn’t have to write everything, so is it possible to change the plugin code so that it doesn’t give 500 errors, but for example 404, or 302, etc? Thanks

87.247.158.120 - - [09/Nov/2024:00:55:29 +0000] "GET /wp-json/?rest_route=/wp/v2/USERS HTTP/1.1" 500 243 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
87.247.158.120 - - [09/Nov/2024:00:55:29 +0000] "GET /wp-json/?rest_route=/wp/v2/USERS HTTP/1.1" 500 243 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
87.247.158.120 - - [09/Nov/2024:00:55:29 +0000] "GET /wp-json/?rest_route=/wp/v2/USERS HTTP/1.1" 301 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
87.247.158.120 - - [09/Nov/2024:00:55:29 +0000] "GET /wp-json/?rest_route=/wp/v2/USERS HTTP/1.1" 500 243 "http://opensource.angellive.ru/wp-json/?rest_route=/wp/v2/USERS" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
87.247.158.120 - - [09/Nov/2024:00:55:29 +0000] "GET /wp-json/?rest_route=/wp/v2/USERS HTTP/1.1" 301 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
87.247.158.120 - - [09/Nov/2024:00:55:29 +0000] "GET /wp-json/?rest_route=/wp/v2/USERS HTTP/1.1" 500 243 "http://opensource.angellive.ru/wp-json/?rest_route=/wp/v2/USERS" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer