• Resolved Tracy Rotton

    (@taupecat)


    When I have the plugin activated, and am logged in, but I have my profile set to not show the admin bar on the front end, I get the following JS error:

    Uncaught TypeError: Cannot set property 'innerHTML' of null
        at replaceFileNames (replace.js?ver=0.4.5:3)
        at HTMLDocument.<anonymous> (replace.js?ver=0.4.5:8)
        at k (jquery.js?ver=2.1.0:24)
        at Object.fireWith [as resolveWith] (jquery.js?ver=2.1.0:24)
        at Function.ready (jquery.js?ver=2.1.0:24)
        at HTMLDocument.g (jquery.js?ver=2.1.0:14)

    I’ve written a gist which tests for #included-files-list and returns out if it’s null.

    https://gist.github.com/taupecat/ef446c53f95fee2af82a0b06efe6c44e

    Thanks for a great plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • daneloctober

    (@daneloctober)

    Hi,

    I was going to start a new topic, but reading this issue made me realize it’s similar to what im experiencing. When a user is viewing the “frontend” where the admin bar is not present but they are logged-in, like in an Elementor editor page, the error above appears. This causes other js to not work. Can you fix it please? Thank you!

    daneloctober

    (@daneloctober)

    Here’s a link to a screenshot of the error I get (which is same as above): https://share.getcloudapp.com/P8u5k4j7

    Plugin Author JOTAKI, Taisuke

    (@tai)

    @taupecat @daneloctober
    Thank you for reporting!
    I will check as soon as possible!

    Plugin Author JOTAKI, Taisuke

    (@tai)

    Hello @taupecat !

    Finally I’ve released the fixed version, 0.4.6.
    Please try it out and let me know if you still have the JS error.

    Hello @daneloctober !

    Please try the new version and if you still have the issue, that’s probably another reason, so start a new topic.

    Thank you very much again for reporting the issue, both of you!

    Thread Starter Tracy Rotton

    (@taupecat)

    Yep, error’s gone! Thanks so much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘JS Error when No Admin Bar’ is closed to new replies.