Want more timely Centmin Mod News Updates?
Become a Member

Wordpress The REST API did not process the context query parameter correctly.

Discussion in 'Blogs & CMS usage' started by fly, May 5, 2021.

  1. fly

    fly Member

    64
    13
    8
    Jul 27, 2019
    Ratings:
    +19
    Local Time:
    3:09 AM
    I'm getting this Site Health error on a site anytime I select anything other than Plain permalinks.


    Fresh install of Cent, everything up to date. This was a backup and restore from a non Cent site, if that matters, so I did not use option 22.
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,581
    11,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,680
    Local Time:
    6:09 PM
    Nginx 1.21.x
    MariaDB 10.x
    Compare the nginx vhost config and rule/directives between a test centmin.sh menu option 22 Wordpress install and your restored site to make sure they have the right rules for permalinks - specifically the main location / {} context's try_files directive
     
  3. fly

    fly Member

    64
    13
    8
    Jul 27, 2019
    Ratings:
    +19
    Local Time:
    3:09 AM
    That was it! Thanks!

    May I suggest that the default vhost be updated with the new WordPress try_files directive?
     
  4. sds

    sds New Member

    12
    0
    1
    Jan 17, 2015
    Ratings:
    +0
    Local Time:
    3:09 AM
    1.6.2
    MariaDB 10
    Is there a way to get this without installing a new WP instance just to see the file?
     
  5. eva2000

    eva2000 Administrator Staff Member

    49,581
    11,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,680
    Local Time:
    6:09 PM
    Nginx 1.21.x
    MariaDB 10.x
    WordPress config are dynamically created based on the server environment and settings and options you choose at run time.

    Each run for centmin.sh menu option 22 WordPress installation will at end of output list a WordPress uninstall script so you can quickly remove that test install.
     
  6. sds

    sds New Member

    12
    0
    1
    Jan 17, 2015
    Ratings:
    +0
    Local Time:
    3:09 AM
    1.6.2
    MariaDB 10
    since I didn’t install my WordPress sites with the installer, I’m trying to see what the installer would have used for the nginx vhost file. I tried using a domain that I own, but the vhost file already exists as well as a skeleton home directory. The installation got to the end and said these two entities already exist and therefore did not install anything.

    do I need to delete the directory and the Vhost file for that domain first?
     
  7. eva2000

    eva2000 Administrator Staff Member

    49,581
    11,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,680
    Local Time:
    6:09 PM
    Nginx 1.21.x
    MariaDB 10.x
    Just use a dummy domain like my domain.com and when prompted for self-signed ssl certificate say yes. Then inspect that dummy domain's nginx vhost config file and the resulting wordpress install log created at /root/centminlogs