• Resolved Julinho

    (@razione)


    The Yoast Plugin has a problem with my site.

    I opened a support on the Yoast forum and they told me it’s a REST issue.

    They gave me this answer:

    The configuration wizard relies on a built-in WordPress tool called the REST API. Per the screenshot, this tool is returning to 404 Not Found which means that either the core files are missing or your site / server has disabled the REST API.

    The REST API in it’s most basic state should return information about your site like it does for this site: https://ww.wp.xz.cn/wp-json/

    Your site returns The requested URL was not found on this server.

    Log: I did it and the plugin keeps showing error.See the error log: https://www.dropbox.com/s/p0kuv48atf1zpsu/log.png?dl=0

    Can you help me?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • This is a problem of cache (your server, load balancing, reverse proxy and/or your plugin have copy of page with pretty Permalink, but your htaccess is missing now).
    If you are using non-pretty permalinks, you should pass the REST API route as a query string parameter. The route http://oursite.com/wp-json/ in the example above would hence be http://oursite.com/?rest_route=/
    Set your missing .htaccess and it work 😉
    Pretty Permalink

    The configuration wizard relies on a built-in WordPress tool called the REST API. Per the screenshot, this tool is returning to 404 Not Found which means that either the core files are missing or your site / server has disabled the REST API.

    There are several reasons when a status code other than http 200 comes out, the 404 code often indicates incorrect request in this case forward this technical advice, yoast if it meets a 404 with all methods and indicates if it is a
    problem of http://oursite.com/index.php/wp-json/ PATHINFO (Almost Pretty), http://oursite.com/index.php/wp-json/ .htaccess (Pretty Permalink) or http://oursite.com/?rest_ruote=/ query string (Ugly).

    • This reply was modified 6 years, 7 months ago by autotutorial. Reason: Edit for missing content
    Thread Starter Julinho

    (@razione)

    Great @autotutorial !

    Works!

    Tks!

    Read please, send this fix on page plugin Yoast.

    Had similar issue noticed when gutenberg threw error.

    Solution:
    rewrite was off in my docker container (php:7.3-apache-buster)
    a2enmod rewrite & service reload apache2
    resolved it for me. Should work on normal systems too

    Works for me just by hitting my permalinks section “saved”. Thanks!

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

The topic ‘REST API Problem’ is closed to new replies.