Problem with rest API

[ad_1]

I'm trying to solve a problem with my rest API that popped up in my health check.

Endpoint da REST API: https://mywebsite/wp-json/wp/v2/types/post?context=edit

REST API: (400) Bad Request

After activating debug log this is the only problem that get spammed:

[04-Oct-2024 11:24:17 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/mywebsite/public_html/wp-includes/media.php on line 795
[04-Oct-2024 11:24:17 UTC] PHP Notice:  Trying to access array offset on value of type bool in /home/mywebsite/public_html/wp-includes/media.php on line 801https://mywebsite/wp-json/wp/v2/types/post?context=edit

Does anyone if this is related to the rest API problem or how I can even begin to try and fix this ? I am not really sure what problem this is causing because for the past few days I haven't noticed anything not working.

[ad_2]

 

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