• lisawald

    (@lisawald)


    When I inspect the webpage at [redudant domain removed],I see 4 critical errors all related to an uncaught TypeError in main.js.

    This is way more technical than what I know. How can I fix this?

    Thanks – Lisa

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    When I load the page you mentioned, I don’t see any error messages in the console.

    Which browser are you using to view it? I’ve tried it with Chrome and Firefox.

    Are you logged into the backend right now? If so, try logging out to see if the messages disappear.

    Also clear your browser cache to rule that out as a possible cause.

    Shailesh Gajare

    (@shailesh7714)

    Check the first TypeError

    Open F12 → Console and focus on the first error, as it usually identifies the root cause.Prevent null element errors

    Check that an element exists before using it:

    const element = document.querySelector('.selector');
    if (element) {
        element.addEventListener(...);
    }
    

    Load scripts after the DOM is ready

    Wrap your initialization code in DOMContentLoaded.Check for plugin conflicts

    Temporarily disable cache/optimization plugins and test other plugins one by one.Clear JavaScript optimization

    Disable JavaScript minification/combination, clear caches, and reload the page.Update everything

    Update WordPress, the active theme, and the calendar plugin to ensure compatibility.

    fixwptech

    (@fixwptech)

    Hi, Problem i very simple.
    You have js script trying to access your ‘myBtn’ element that not exist on this page.
    It tries to show and hide on scroll position.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.