Troubleshooting Complianz: Fixing REST API and Settings Saving Issues
Content
Users of the Complianz – GDPR/CCPA Cookie Consent plugin sometimes encounter a frustrating issue where they are unable to save settings in the plugin's backend. This often manifests as an error message stating "Connection to the server lost. Please try reloading this page," and is frequently accompanied by a dashboard notice warning that the WordPress REST API is disabled. This guide will explain why this happens and provide the most common solutions to resolve it.
Why Does This Happen?
This problem is almost always related to the WordPress REST API. The Complianz plugin relies heavily on the REST API to communicate between its interface and your WordPress database. When this connection is blocked or broken, the plugin cannot save your configuration. Based on community reports, this is typically caused by one of the following:
- Plugin or Theme Conflicts: Another plugin or your theme might be interfering with the REST API or outputting unexpected data that breaks the communication.
- Caching: Aggressive server-side or object caching can sometimes cache API responses, preventing new data from being saved.
- Security Configurations: Overly strict security plugins or server-level firewalls (e.g., ModSecurity) might be blocking the specific REST API endpoints used by Complianz.
- Debug Mode: Having WordPress debugging enabled (WP_DEBUG) can sometimes output warnings or notices that corrupt the data expected by the plugin's scripts.
How to Troubleshoot and Fix the Issue
Follow these steps to identify and resolve the problem. It is recommended to test these on a staging site first or during a period of low traffic.
Step 1: Perform a Conflict Check
The first and most critical step is to determine if another plugin or your theme is causing the conflict.
- Temporarily switch to a default WordPress theme like Twenty Twenty-Four.
- Deactivate all other plugins except Complianz.
- Try to save a setting in the Complianz wizard. If it works, you have confirmed a conflict exists.
- Re-activate your plugins one by one, testing the Complianz settings after each activation, until you find the culprit.
- Finally, switch back to your original theme and test again.
Step 2: Clear All Caches
If the conflict check does not reveal the issue, thoroughly clear all caching layers.
- Clear any caching from your caching plugin (e.g., WP Rocket, W3 Total Cache).
- Clear your server-level or object cache if you have one (e.g., Redis, Memcached).
- Clear your browser cache and cookies, or test in an incognito/private browser window.
- If you use a Content Delivery Network (CDN) like Cloudflare, purge its cache as well.
Step 3: Check Security and Debug Settings
Security tools and debug modes can inadvertently break functionality.
- Security Plugins: Temporarily disable any security or firewall plugins (e.g., Wordfence, Sucuri). If this resolves the issue, check your security plugin's logs for blocked requests and whitelist the Complianz REST API endpoints.
- WP_Debug: Ensure that
WP_DEBUGis set tofalsein yourwp-config.phpfile. Debug mode can output PHP warnings that disrupt the JSON data Complianz expects.
Step 4: Check the Browser Console
For more technical users, the browser console can provide specific error messages.
- Open the Complianz settings page in your browser (e.g., Chrome).
- Right-click and select "Inspect," then navigate to the "Console" tab.
- Look for any red error messages, particularly 500 Internal Server Errors on requests to
/wp-json/complianz/endpoints. These errors can provide a clue about the root cause on your server.
Conclusion
Being unable to save settings in Complianz is a common but solvable problem. In the vast majority of cases, the root cause is a conflict with another element on your site, most often a plugin or caching mechanism. By methodically working through the conflict check and ensuring your REST API is accessible, you can get your cookie consent configuration back on track. If these steps do not resolve your issue, searching for your specific error message on independent forums like BugWP.com may yield more targeted solutions from other users.
Related Support Threads Support
-
Divi blurb disturbed by complianz pluginhttps://wordpress.org/support/topic/divi-blurb-disturbed-by-complianz-plugin/
-
Site #1 works Site #2 breakshttps://wordpress.org/support/topic/site-1-works-site-2-breaks/
-
Complianz chargehttps://wordpress.org/support/topic/complianz-charge/
-
Cart Not Loading When Your Plugin Is Activehttps://wordpress.org/support/topic/cart-not-loading-when-your-plugin-is-active/
-
Conflict between Complianz and WooCommerce – Console Errors and Cart Issuehttps://wordpress.org/support/topic/conflict-between-complianz-and-woocommerce-console-errors-and-cart-issue/
-
Complianz Pro conflict with YOOTHEMEhttps://wordpress.org/support/topic/complianz-pro-conflict-with-yootheme/
-
WP Store Locator is blockedhttps://wordpress.org/support/topic/wp-store-locator-is-blocked/
-
No access to settings of the pluginhttps://wordpress.org/support/topic/no-access-to-settings-of-the-plugin/
-
New Version Geo My Wp 4.0 betahttps://wordpress.org/support/topic/new-version-geo-my-wp-4-0/
-
**PLEASE READ BEFORE YOU POST AN ISSUE**https://wordpress.org/support/topic/please-read-before-you-post-an-issue-6/
-
wordpress backend only complianz pagehttps://wordpress.org/support/topic/wordpress-backend-only-complianz-page/
-
Complianz shows backend for non-adminhttps://wordpress.org/support/topic/complianz-shows-backend-for-non-admin/
-
Compliaz X YITH POShttps://wordpress.org/support/topic/compliaz-x-yith-pos/
-
Complianz Santé du sitehttps://wordpress.org/support/topic/complianz-sante-du-site/
-
Conflict with Thrive Apprenticehttps://wordpress.org/support/topic/conflict-with-thrive-apprentice-2/
-
How to migrate settings from one site to anotherhttps://wordpress.org/support/topic/how-to-migrate-settings-from-one-site-to-another-2/
-
Problème de conflit avec WP fastest cachehttps://wordpress.org/support/topic/probleme-de-conflit-avec-wp-fastest-cache/
-
Potential Complianz/Wordfence conflicthttps://wordpress.org/support/topic/potential-complianz-wordfence-conflict/
-
complianz blocks saving of the start pagehttps://wordpress.org/support/topic/complianz-blocks-storage-of-the-start-page/
-
Stuck on Complianz pagehttps://wordpress.org/support/topic/stuck-on-complainz-page/
-
Complianz plugin doesn’t load on my websitehttps://wordpress.org/support/topic/complianz-plugin-doesnt-load-on-my-website/
-
Complianz backend not loadinghttps://wordpress.org/support/topic/complianz-backend-not-loading/
-
Issues with new cart and checkout blocks when using specific linkshttps://wordpress.org/support/topic/issues-with-new-cart-and-checkout-blocks-when-using-specific-links/
-
Block Editor: Group block layout settings are not applied with Complianz activehttps://wordpress.org/support/topic/block-editor-group-block-layout-settings-are-not-applied-with-complianz-active/
-
Cant save many setting & styles + some fields are not visiblehttps://wordpress.org/support/topic/cant-save-many-setting-styles-some-fields-are-not-visible/
-
Comphttps://wordpress.org/support/topic/comp/
-
Locked out after installing complianzhttps://wordpress.org/support/topic/locked-out-after-installing-complianz/
-
cplianzz conflicts with wpbakery editor frontend previewhttps://wordpress.org/support/topic/cplianzz-conflicts-with-wpbakery-editor-frontend-preview/
-
Site Performance Crashed after Installhttps://wordpress.org/support/topic/site-performance-crashed-after-install/
-
Server connection error when saving data in backendhttps://wordpress.org/support/topic/server-connection-error-when-saving-data-in-backend/
-
Redirection to /wp-admin/remotehttps://wordpress.org/support/topic/redirection-to-wp-admin-remote/
-
Had to remove pluginhttps://wordpress.org/support/topic/had-to-remove-plugin/
-
Can’t save settings – API Rest disabled noticehttps://wordpress.org/support/topic/cant-save-settings-api-rest-disabled-notice/
-
Error alerthttps://wordpress.org/support/topic/error-alert-4/
-
Conflict with Divihttps://wordpress.org/support/topic/conflict-with-divi-21/
-
Complianz plugin conflicthttps://wordpress.org/support/topic/complianz-plugin-conflict/
-
“Pirated Software”https://wordpress.org/support/topic/pirated-software/
-
Blocks entire WP admin interfacehttps://wordpress.org/support/topic/blocks-entire-wp-admin-interface/
-
Unable to navigate into the plugin settings, wizard, etc..https://wordpress.org/support/topic/unable-to-navigate-into-the-plugin-settings-wizard-etc/
-
Compatibility Issue with WPIDE Pluginhttps://wordpress.org/support/topic/compatibility-issue-with-wpide-plugin/
-
Pageviews Plummeted after Installing Complianzhttps://wordpress.org/support/topic/pageviews-plummeted-after-installing-complianz/
-
GeoIP maxmind file exist, but system still shows errorhttps://wordpress.org/support/topic/geoip-maxmind-file-exist-but-system-still-shows-error/
-
Complianz freezes website/shophttps://wordpress.org/support/topic/complianz-freezes-website-shop/
-
Fatal error when used with CAOS analyticshttps://wordpress.org/support/topic/fatal-error-when-used-with-caos-analytics/
-
Fatal error: Uncaught Error: Class ‘COMPLIANZ’ not foundhttps://wordpress.org/support/topic/fatal-error-uncaught-error-class-complianz-not-found/
-
Complianz setup wizard not loading in WordPress dashboardhttps://wordpress.org/support/topic/complianz-setup-wizard-not-loading-in-wordpress-dashboard/
-
Complianz pluginhttps://wordpress.org/support/topic/complianz-plugin-3/
-
Divi Settings, Styles etc. blockedhttps://wordpress.org/support/topic/divi-settings-styles-etc-blocked/
-
Could not load field cookie_scanhttps://wordpress.org/support/topic/could-not-load-field-cookie_scan/
-
Error With Slider Revolutionhttps://wordpress.org/support/topic/error-with-slider-revolution/
-
Backend blocked by complianzhttps://wordpress.org/support/topic/backend-blocked-by-complianz/
-
Slider Revolution does not displayhttps://wordpress.org/support/topic/slider-revolution-does-not-display/