Support » Fixing WordPress » The REST API call gave the following unexpected result: (403)

  • Resolved casper99

    (@casper99)


    Hi everybody,

    i just moved my working wordpress installation on a new webserver and the health-check gives these errors:

    The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
    
    The REST API call gave the following unexpected result: (403) {"code":"rest_cookie_invalid_nonce","message":"Das Cookie-Nonce ist ung\u00fcltig","data":{"status":403}}.

    and

    Background updates ensure that WordPress can auto-update if a security update is released for the version you are currently using.
    
        Error A plugin has prevented updates by disabling wp_version_check().

    I already deactivated ALL plugins. On the old server, a lot of plugins worked and didn’t cause these errors.

    wordpress 5.2.3
    Linux 4.15.0-62-generic x86_64
    Apache
    PHP version 7.2.19-0ubuntu0.18.04.2 (Supports 64bit values)
    PHP SAPI fpm-fcgi
    cURL version 7.58.0 OpenSSL/1.1.1
    .htaccess rules Your .htaccess file contains only core WordPress features.

    Any ideas? Could this be related to the PHP SAPI with fpm-fcgi ?

    Webserver-Logs do not show any errors. No 403, all 200 OK

    Thanks in advance

    • This topic was modified 1 week ago by  casper99.
Viewing 1 replies (of 1 total)
  • casper99

    (@casper99)

    It was a DNS problem.

    By moving the site to a new server, i just manipulated my local hosts file, to get access to the site.

    Changing the real (worldwide DNS) fixed the problem 😉
    I think, wordpress used the real DNS and tried to perform the action on the old server..

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.