• Hi!

    The Login popup doesn’t show up if browsed in normal mode of a browser. The console shows this weird error:

    Uncaught (in promise) TypeError: element is not a function
    at add_css (main.min.js?ver=3:1)
    at new Modal (main.min.js?ver=3:1)
    at create_if_block (main.min.js?ver=3:1)
    at Object.p (main.min.js?ver=3:1)
    at update (main.min.js?ver=3:1)
    at flush (main.min.js?ver=3:1)`

    element() is an existing function, but can’t be called.

    In Incognito mode it works though, so I think this error starts showing up after a while but not the first time of using it.

    Any idea know why this happens? Maybe it has something to do with cache?

    Thanks!

    • This topic was modified 3 years, 3 months ago by luckydudz.
    • This topic was modified 3 years, 3 months ago by luckydudz.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author lynn999

    (@lynn999)

    I’m only guessing, but it sounds like some other script might be modifying and thus interfering the modal.

    Difficult to say, however, haven’t seen that one before.

    Thread Starter luckydudz

    (@luckydudz)

    Hi!

    Yes, this sounds indeed like a script conflict. I wasn’t able to figure out which one it is, BUT I think I have a simple solution nevertheless.

    In main.js there is the function element(name).
    This function sounds pretty generic and could be intercepted by another script.
    If you just change the name of the function and the respective calls, it solves the problem. For example, I renamed it to ethpress_element(name) and called it throughout the whole script. It works this way.

    Is it possible for you to incorporate this fix in the next update, or is there any reason why you can’t do that?

    Plugin Author ethereumicoio

    (@ethereumicoio)

    Hello,
    Thank you for a good catch!
    Will check it out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login doesn’t show up: “element is not a function” JS error’ is closed to new replies.