Wp-json/wp/v2/media?_locale=user [HTTP/1.1 405 Not Allowed]

Issue Summary

Can’t seem to upload images, I get a “The response is not a valid JSON response.” error in WordPress, when uploading via a post, and a 405 error in the console. Similar things happen when I try uploading via the media library.

Troubleshooting Questions

  • Happens for all sites.

  • I can create a new site, has the same issue.

System Details

  • 5.9.2+5056

  • macOS Catalina

  • Don’t seem to have logs.

Ugh

Swapped from site domain to localhost, seems to fix the issue.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.