And I solved it myself soon after posting (as is often the way)!
It was because I had set Complianz to “Respect Do Not Track and Global Privacy Control”.
I was only seeing the tick-boxes in section 7.1 when logged in to WordPress. When I logged out I got the same message as on the mobile devices, namely “You have loaded the Cookie Policy without JavaScript support.” However, when I tried in Chrome I got a different message in 7.1 – “We have received a privacy signal from your browser. For this reason we have set your privacy settings on this website to strictly necessary. If you want to have full functionality, please consider excluding https://kenyachildrencentres.com from your privacy settings.”
That gave the clue.
Hi @ianfaulkner,
Glad to hear you’ve managed to resolve this so quickly, additional thanks for sharing the solution with the community as well.
If any further questions about Complianz arise, please feel free to reach out once more.
Kind regards, Jarno
Sadly, problem has recurred, on Safari, Chrome, MacOS, iOS and Android. All now show the “You have loaded the Cookie Policy without JavaScript support.” text irrespective of the “Respect Do Not Track and Global Privacy Control” setting
Javascript console shows an error:
“Uncaught SyntaxError: Unextepted token ‘<‘, ‘<!DOCTYPE ‘ . . .is not valid JSON
at JSON.parse (<anonymous>)
at c.onload (complaint.min.js:1:36067″
Hi @ianfaulkner,
Do you happen to have a plugin or security tool enabled that limits access to the WordPress REST API?
Because when I visit your Site URL with /wp-json/ appended I am being redirected to the homepage, instead of receiving the response that I would expect to see.
Kind regards, Jarno
Hi Jarnovos. Thanks for the quick response. I use HideMyWP. Try it now.
The correct section 7.1 now appears, so incompatibility?
Ian
-
This reply was modified 3 years, 3 months ago by
ianfaulkner.
-
This reply was modified 3 years, 3 months ago by
ianfaulkner.
Hi @ianfaulkner,
That’s it. The REST API now works correctly again, and the Manage Consent section on your Cookie Policy is also able to load correctly as a result.
Kind regards, Jarno
Does that mean I will have to ditch HideMyWP?
Ian
Hi @ianfaulkner,
That shouldn’t be necessary, it’s probably related to one specific feature in that plugin.
I’ve taken a quick look at the feature set of that plugin and I would expect it to be related to one of these features:
“Change REST API wp-json URL” or “Disable REST API access”
Kind regards, Jarno
Hi @jarnovos ,
Disabling the “Disable REST API access” switch in HideMyWP does the trick.
Thanks