• Resolved vesperknight

    (@vesperknight)


    No idea why I’m getting this error but would sure appreciate some help.

    Don’t have any blockers enabled. Using the latest version of the plugin 2.0.3. Using the latest wordpress core.

    I added the base url to my mautic instance. I’ve rebuilt the form caches. Using Mautic 2.8.0 (not 2.8.1)

    I’ve added the tracking to the header and am adding the shortcode for the form near the bottom of my page and am getting this error

    Failed to execute ‘write’ on ‘Document’: It isn’t possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
    Any ideas?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author shulard

    (@shulard)

    Hello,

    It seems to be related with content security policy, what are the headers returned by your server ?

    Maybe you’ll need to authorize the script which are coming from mautic to interact with your document…

    Hi Shulard

    Please explain that again. What server do I need to check the security policy for (Mautic or wordpress) and what exactly do I need to do?

    Morten

    Plugin Author shulard

    (@shulard)

    Hello @mortenmatras,

    I though the issue was due to the Content Security Policy configuration. You can take a look here, very useful to control who can interact with your webpage : https://content-security-policy.com/

    After some research, it seems related to an invalid document.write call.

    @vesperknight, have you more details about the error (stack trace for example) ? Which Mautic script cause the error ?

    Can you give us an URL to check ?

    Same error here!

    Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
    (anonymous) @ generate.js?id=1:1
    Plugin Author shulard

    (@shulard)

    It seems to be related to the form generator script, I reproduce the issue now it’ll be fixed in 10 minutes in 2.0.4

    Plugin Author shulard

    (@shulard)

    The v2.0.4 is now published, it must fix the document.write error.

    Plugin Author shulard

    (@shulard)

    As I said on Github, this issue is now fixed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘not possible to write into a document from an asynchronously-loaded externally’ is closed to new replies.