Encountering a - initializeInlineEditors, error upon opening a Page with a text widget

Petline developer asked on January 16, 2020 17:30

Hey Guys,

We are having issues when opening a page on the CMS that has a text widget in it throws this JS error (from the builder.js)

TypeError: t.subscribe is not a function at Object.init (scripts=7OqP2OcWgsYvtNiOlcMF91opBP7DhuI0hj1jgcuj42c1&uh=01cc7f578c985a9b931b454bb903cd56a5cfa5ff3c6721ea58d002fe46fe1bfd&administrationurl=http%3A%2F%2Fwww.----.com%2F:1) at t.initializeInlineEditors (builder.js:1) at a.t.onMarkupUpdated (builder.js:1) at a.e (vendors.js:12) at a.t.$emit (vendors.js:12) at a.t.initializeEditors (builder.js:1) at a.t.mounted (builder.js:1) at Ee (vendors.js:12) at Object.insert (vendors.js:12) at j (vendors.js:12)

With this error, it stops us from saving any changes from that page.

Interestingly, this only happens on our PROD environment not with our DEV or STG environments. Is there something that we need to whitelist on our firewall?

Thanks,

Chris

Recent Answers


Juraj Ondrus answered on January 17, 2020 07:36 (last edited on January 17, 2020 10:28)

What are the rules on the firewall? Are you using any custom headers for content security policy? If yes, make sure to always whitelist the Kentico administration parent site using the frame-ancestors policy.
Have you tried applying the latest hotfix too?

0 votesVote for this answer Mark as a Correct answer

Petline developer answered on January 17, 2020 16:33

Hi Juraj,

Thanks for answering.

1) About the rules on the firewall, I need to check on with our network guys about it. 2) Custom headers, I'm pretty sure we are not using any custom headers. 3) What do you mean about the whitelist the Kentico administration? Is it our CMS site? 4) About the hotfix, we only have the 12.0.35 not the latest I suppose.

Chris

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 20, 2020 08:44

I asked about custom headers because as you can see in the documentation you need to whiteliste/exclude the Kentico admin URLs - this means the URLs from the Kentico CMS application (when using MVC, you have two apps - the MVC front end app and the Kentico admin app).

If you are using any custom scripts, jQuery, Bootstrap, etc. I would try disabling them in your MVC app to see if it makes any difference. Note that the preview mode, page builder loads the code from the MVC app inside Kentico - so the issue is in 95% of cases in the MVC app code, not in Kentico itself.

0 votesVote for this answer Mark as a Correct answer

Petline developer answered on January 21, 2020 16:41 (last edited on January 21, 2020 23:43)

Thanks for replying.

So, I got word from our network guys and everything looks fine. Any traffic is allowed to pass through, not blockage happening. Is there something else that I can do?

Here is the Javascript error.

Image Text

CSP Response Headers, it contains both the ADMIN and SITE domains.

Image Text

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 22, 2020 09:10

This is really strange. It is hard to tell since I do not know your MVC code. Would it be possible to install the Dancing Goat MVC sample project and reproduce the issue there? And then let us know the code and steps how to reproduce the issue? Thank you!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.