REST API Failed: How to check the REST API Works

If you can’t view your settings in Complianz, but instead see a blank page, there are some common causes you can check.

Flushing permalinks

In some cases it simply helps by going to settings / permalinks, and click ‘Save’. This will flush the permalink structure. Please also check if your URL’s, e.g. “yourdomain.com/about”, are working. If not, try renaming the .htaccess file, and re-save the permalinks again. This will re-create the .htaccess file, correctly written.

The REST API is disabled

If you go to yourdomain.com/wp-json/wp/v2/posts you should see a list of posts, in raw json format. Compare with https://really-simple-ssl.com/wp-json/wp/v2/posts.

If not, please check if you use a plugin which disabled the REST API. This is most likely a security plugin.

The WordPress is installed in a subdirectory

If you have a blank settings page, and WordPress configured in a subdirectory (e.g. website on domain.com, WordPress files in domain.com/wordpress), please log out, clear your browser cache, and log in again.

Still not working?

Please contact us so we can figure out the problem. Please attach a screenshot of the console errors you see and the active plugins.

Join 1M+ users and install The Privacy Suite for WordPress locally, automated or fully customized, and access our awesome support if you need any help!

Complianz has received its Google CMP Certification to conform to requirements for publishers using Google advertising products.