• Jestewart

    (@jestewart)


    I am trying to fix a problem between my theme and elementor and was told that I had javascript errors. I have no idea if this will fix the problem, but it is worth a shot. Using the information for determining how to determine javascript errors I have looked at the page in the javascript error console, on multiple browsers with and without Script Debug.

    Currently, I am having problems in Chrome (for Mac) and Safari with SCRIPT_DEBUG on (the errors not being fixed).

    I have a number of javasript errors and not all the same errors in both browsers. So below I have included all the errors with the heading of which browser.

    The guide said to post the errors and information here so I am. Please let me know if you need any further information. Thank you for all the help you are able to provide.

    ________________

    CHROME

    txohc.org/:13 Uncaught ReferenceError: jQuery is not defined
    txohc.org/:1 Mixed Content: The page at 'https://txohc.org/who-we-are/history/?cs-explain=off' was loaded over HTTPS, but requested an insecure script 

    [Giant paste deleted… If you really need to paste all that, please use pastebin.com or gist.github.com and put a link here.]

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

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The reference to ajax.googleapis.com needs to be HTTPS transport. Because it is referenced as HTTP, the browser suppresses the link and all the other errors are caused by the suppressed reference.

    Exactly how to fix this depends on how the reference got there. It could be hardcoded in your theme’s header.php file, in which case just edit the reference. If it is interjected by other means, such as hooking “wp_head” action, you’ll have to find the original source.

    Editing the source will fix the problem, but it will not persist through updates. You should report the issue to the responsible developer so they can correct their code for everyone using their code.

Viewing 1 replies (of 1 total)
  • The topic ‘Javscript errors on website’ is closed to new replies.