• Hi,

    I’m trying to get rid of the following error message that appears in the console of the browser:

    Uncaught TypeError: Cannot read property ‘querySelectorAll’ of null
    at <anonymous>:6:104
    at <anonymous>:22:64
    at HTMLBodyElement.k [as appendChild] ((index):98)
    at (index):101
    at X ((index):93)
    at new Bc ((index):93)
    at u ((index):101)
    at (index):101
    at A ((index):101)
    at phast.scripts.phast.ScriptsLoader.Utilities.y [as writeProtectAndExecuteString] ((index):101)

    These are a few of the currently installed plugins that might have something to do with the error:
    – Comet Cache
    – Webcraftic Clearfy

    Can anyone help me? ??

    • This topic was modified 4 years, 5 months ago by davekeehl.
    • This topic was modified 4 years, 5 months ago by davekeehl.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi @davekeehl,

    The issue is probably not with PhastPress, but inside a script on your page that is executed by PhastPress (which it why it is part of PhastPress in the console).

    I don’t see the same issue on the URL you posted. Is that the exact URL? Do you get the URL only when clicking some button, or immediately when you load the page?

    If it is the exact URL and the error happens right when loading the page, could you check whether the error also happens in a private browser window? If not, it probably only happens when you are logged in.

    –Albert

    Thread Starter davekeehl

    (@davekeehl)

    Hi @kiboit

    That was a quick reply! That is the exact url and it happens on load both in in private and not private browser windows.

    • This reply was modified 4 years, 5 months ago by davekeehl.
    Plugin Author Albert Peschar

    (@kiboit)

    Hi @davekeehl,

    Ah, quite right. I just got a different error message in Firefox that didn’t look like the one you showed. ??

    Anyway, if you disable PhastPress, which you can do for a single visit by appending ?phast=-phast to the URL, you’ll still get the error. That means it is not due to PhastPress.

    The error occurs because there is no element with the ID _form_1_ on the page.

    Looks like some issue with your theme. As long as it’s just an error popping up in the console, it should be harmless.

    –Albert

    Thread Starter davekeehl

    (@davekeehl)

    All right ??

    I’ll look into that! Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot read property ‘querySelectorAll’ of null’ is closed to new replies.