Support » Fixing WordPress » Site health reports The REST API did behave correctly

  • Resolved JohnP

    (@johnp)


    I have recently moved my site to a new host.

    The Site Health Status page now has the following Recommended improvement:
    “The REST API did not process the context query parameter correctly”

    I ran the Site Health plugin and the issue persists with all plugins disabled and running the default theme. (I also disabled mu-plugins).

    I have tried re-saving permalinks with no improvement.

    The site has the Classic Editor plugin installed, and everything seems to be working correctly.

    I would, however prefer to get a clean bill of health if possible – any advice about further troubleshooting will be appreciated.

    Basic Info from Site Health plugin:

    
    ### wp-core ###
    
    version: 5.5.1
    site_language: en_US
    user_language: en_US
    permalink: /%year%/%postname%/
    https_status: true
    user_registration: 1
    default_comment_status: open
    multisite: false
    user_count: 1969
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home/xxxx/public_html
    wordpress_size: 53.31 MB (55896543 bytes)
    uploads_path: /home/xxxx/public_html/wp-content/uploads
    uploads_size: 6.49 KB (6643 bytes)
    themes_path: /home/xxxx/public_html/wp-content/themes
    themes_size: 1.92 MB (2018311 bytes)
    plugins_path: /home/xxxx/public_html/wp-content/plugins
    plugins_size: 80.89 MB (84823814 bytes)
    database_size: 131.99 MB (138396668 bytes)
    total_size: 268.12 MB (281141979 bytes)
    
    ### wp-mu-plugins (2) ###
    
    admin-bar-login-pjw.php: author: (undefined), version: (undefined)
    Health Check Troubleshooting Mode: author: (undefined), version: 1.7.2
    
    ### wp-plugins-active (15) ###
    
    Akismet Anti-Spam: version: 4.1.6, author: Automattic
    Classic Editor: version: 1.6, author: WordPress Contributors
    Cloudflare: version: 3.8.3, author: Cloudflare, Inc.
    Custom Menu Wizard: version: 3.3.1, author: Roger Barrett
    Decent Comments: version: 1.9.0, author: itthinx
    Google XML Sitemaps: version: 4.1.1, author: Auctollo
    Health Check & Troubleshooting: version: 1.4.5, author: The WordPress.org community
    Heartbeat Control by WP Rocket: version: 2.0, author: WP Rocket
    Hello Dolly: version: 1.7.2, author: Matt Mullenweg
    Imsanity: version: 2.6.0, author: Exactly WWW
    Subscribe2: version: 10.34, author: weMail
    Subscribe to Comments Reloaded: version: 200813, author: WPKube
    UpdraftPlus - Backup/Restore: version: 1.16.29, author: UpdraftPlus.Com, DavidAnderson
    Wordfence Security: version: 7.4.11, author: Wordfence
    WP Offload Media Lite: version: 2.4.4, author: Delicious Brains
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1690
    imagemagick_version: ImageMagick 6.9.10-68 Q16 x86_64 2020-04-01 https://imagemagick.org
    imagick_limits: 
    	imagick::RESOURCETYPE_AREA: 8 GB
    	imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
    	imagick::RESOURCETYPE_FILE: 12288
    	imagick::RESOURCETYPE_MAP: 8 GB
    	imagick::RESOURCETYPE_MEMORY: 4 GB
    	imagick::RESOURCETYPE_THREAD: 2
    gd_version: bundled (2.1.0 compatible)
    ghostscript_version: 9.25
    
    ### wp-server ###
    
    server_architecture: Linux 3.10.0-327.36.3.el7.centos.plus.x86_64 x86_64
    httpd_software: Apache
    php_version: 7.4.11 64bit
    php_sapi: cgi-fcgi
    max_input_variables: 1000
    time_limit: 300
    memory_limit: 500M
    max_input_time: 60
    upload_max_size: 500M
    php_post_max_size: 500M
    curl_version: 7.72.0 OpenSSL/1.1.1h
    suhosin: false
    imagick_availability: true
    server-headers: 
    	date: Mon, 12 Oct 2020 20:21:24 GMT
    	server: Apache
    	cf-edge-cache: no-cache
    	expires: Wed, 11 Jan 1984 05:00:00 GMT
    	cache-control: no-cache, must-revalidate, max-age=0
    	link: <https://example.com/wp-json/>; rel="https://api.w.org/"
    	content-type: text/html; charset=UTF-8
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.3.25-MariaDB
    client_version: mysqlnd 7.4.11
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/xxxx/public_html/wp-content
    WP_PLUGIN_DIR: /home/xxxx/public_html/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 500M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    
Viewing 1 replies (of 1 total)
  • Thread Starter JohnP

    (@johnp)

    I removed 2 files from root directory:
    user.ini and php.ini

    Both these had a reference to PHP7.3

    The site is still working, and the warning from Site Health is gone.

Viewing 1 replies (of 1 total)
  • The topic ‘Site health reports The REST API did behave correctly’ is closed to new replies.