epiphyt / embed-privacy

Embed Privacy prevents loading of embedded external content and allows your site visitors to opt-in.
https://epiph.yt/en/embed-privacy/
GNU General Public License v2.0
19 stars 12 forks source link

code: "invalid_json", message: "The response is not a valid JSON response (WP 6.6 RC3, PHP 8.3 and PolyLang) #226

Closed oldrup closed 4 months ago

oldrup commented 4 months ago

Bug/Problem

Can you reproduce this error?

On a test site, with WP 6.6 RC3, PHP 8.3 and a classic theme; if I enable Embed Privacy AND PolyLang, I get this error in Dashboard > Appearance > Widgets

image

Only happens when both Embed Privacy and PolyLang are enabled at the same time.

Steps to reproduce

Update to PHP 6.6 RC3 Use a classic theme (I'm using Blocksy or 2021) Enable Embed Privacy and Polylang Got to Dashboard > Apperance > Widgets Open browsers dev console

Version

1.9.2

Link

No response

Environment info

No response

Code of Conduct

MatzeKitt commented 4 months ago

I struggle with reproducing it, at least in playground:

  1. Open https://playground.wordpress.net/?php=8.3&wp=beta&storage=none&networking=yes
  2. Install and activate plugins Embed Privacy and Polylang
  3. Install and activate theme Twenty Twenty
  4. Accessing widget area

There is no error message available. Can you reproduce it in playground?

oldrup commented 4 months ago

There is no error message available. Can you reproduce it in playground?

Nope. I couldn't. Nor on a new multisite I spun up to test.

Maybe it's some old PolyLang settings lingering in the database. It's quite an old and battered sited, has been updated since WP 5.x. I'll try and cleanse the database for any settings manually, and re-install.

Thank you for attempting to reproduce this. I'll remember to check on the playground first, next time. Quite useful, the playground, for these kinds of checks ✔

MatzeKitt commented 4 months ago

I now also checked an older site with Polylang Pro and Embed Privacy and couldn’t find any problem there, either. Hopefully you’ll find the solution, maybe the Polylang support can help. 🤞🏻