Hi @shapress,
I’m still a little confused as to what’s going on here. It seems there are several different errors being reported here that may or may not be contributing to the actual problem that you’re trying to solve: you are unable to embed Mastadon <iframe>
s within a custom HTML block. It’s not clear which comment here is referencing which problem. Let’s step back and go through each.
First, the original error message that was reported here (The REST API route definition for bluehost/v1/customize-site
is missing the required permission_callback
argument. For REST API routes that are intended to be public, use __return_true
as the permission callback.) was resolved in an update to the Bluehost plugin.
The latest version as of 4 days ago is 2.13.8. Can you confirm that you’re running that version? If so, are you still seeing new instances of this error in your debug logs? In my testing that I just went through again to confirm, even when this notice is present for a site on Bluehost hosting when using an older plugin version, I was still able to add Mastodon embeds without issue. This notice is unrelated to the problem we are trying to solve.
Second issue: I’ve reread the conversation so far, and one thing jumped out to me.
I also tried to check this problem on the Kinsta sandbox site and it works there as with your site.
As far as I know, Kinsta sandbox is a feature that is only available to Kinsta hosting customers. Could you confirm that the site you’re experiencing the issue with is indeed hosted with Bluehost and not Kinsta? It’s possible that the Bluehost plugin is causing some type of compatibility issue if you are running it on a different hosting platform than it was intended to run on. Or, do you just have two hosting accounts and tried it on your other one to try and rule some things out?
Third item:
I got this error message in the debug mode: “wp-editor” script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).”
This is a separate error entirely from the previous one that is completely unrelated, but may be contributing to your problem. This indicates that a combination of plugins and/or your theme are loading two scripts that are not designed to be loaded at the same time. Do you also receive this notice when you are trying to embed a Mastodon post? If not, I think this is a separate issue and may be worth it’s own forum post (maybe in the forums or that plugin).
Are you able to deactivate plugins one by one until this error disappears? It will help understand which plugins are responsible for this notice, and we can rule out whether this is causing your issue with Mastodon or Mailerlite embeds.