• The site I linked to is getting a lot of errors in the console. Right now I would like to focus on these two, which seem to be related.

    I’m a new WordPress developer and I only do work for this organization as needed so I have no idea what changes were made to this site resulting in this.

    If anyone can help get me started on troubleshooting this I would greatly appreciate it.

    Uncaught TypeError: Cannot read property 'value' of undefined
        at timestamp ((index):188)
    timestamp @ (index):188
    setInterval (async)
    (anonymous) @ (index):188
    www-embed-player.js:564
    GET https://googleads.g.doubleclick.net/pagead/id net::ERR_BLOCKED_BY_CLIENT
    Rg @ www-embed-player.js:564
    Og @ www-embed-player.js:551
    (anonymous) @ www-embed-player.js:884
    We @ www-embed-player.js:413
    cl @ www-embed-player.js:881
    sg @ www-embed-player.js:896
    ql @ www-embed-player.js:901
    rl @ www-embed-player.js:902
    (anonymous) @ www-embed-player.js:1145
    (anonymous) @ YC41BVRQfcU?controls=1&rel=0&playsinline=0&modestbranding=0&autoplay=0&enablejsapi=1&origin=https%3A%2F%2Fequipourkids.org&widgetid=9:7
    (index):188

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • First of all, I would say that Elementor is a beast you need to contend with, and secondly, the markup in your page is huge. You should really turn off your Autoptimize plugin while you are troubleshooting.

    Why are you loading your goolge fonts locally through gstatic?
    Just use the CDN. The first 240 lines of your HTML is doing nothing except loading Google fonts. The next 50 lines is all JSON, and then there is another 8 lines to load woff fonts through Elementor, and then about 100 lines of custom CSS. Then the footer l

    There’s a lot wrong here before you can even start working on the “normal” errors.

    73 javascript calls,
    5 css calls,
    63 image calls,
    22 fonts,
    for a total of a 21 meg homepage.

    Your typeerror is coming from your youtube embeds.
    What method are you using to embed? Bc the multiple embeds are conflicting.

    But – like, theres lots and lots wrong here. You’re going to have to create a staging site, and dumb it down to the lowest common denominator. Add things back in as you need them, and load them over a CDN.

    Thread Starter lgehrig4

    (@lgehrig4)

    Thank you for the great questions and suggestions. They’ve had a lot of hands in the pot over the years building this and I only do what they ask so I’m not sure of the “whys”

    I removed all the @font-face rules form the child theme CSS file but noticed that this link is being enqueued from somewhere, but I’m not sure how to find out where.

    <link rel='stylesheet' id='google-fonts-1-css' href='https://fonts.googleapis.com/css?family=Poppins%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CGochi+Hand%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CLato%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&display=auto&ver=5.8' type='text/css' media='all' />

    Just for the heck of it I enqueued my own version in the child theme’s functions.php just to see ho it would show in the head and these 2 new links were created.

    <link rel='dns-prefetch' href='//fonts.googleapis.com' />

    <link rel='stylesheet' id='add_google_fonts-css' href='https://fonts.googleapis.com/css2?family=Poppins%3Aital%2Cwght%400%2C200%3B0%2C300%3B0%2C400%3B0%2C500%3B0%2C600%3B0%2C700%3B0%2C800%3B0%2C900%3B1%2C200%3B1%2C300%3B1%2C400%3B1%2C500%3B1%2C600%3B1%2C700%3B1%2C800%3B1%2C900&display=swap%22+rel%3D%22stylesheet&ver=5.8' type='text/css' media='all' />

    The first one is loading more fonts that the site uses. How can I locate where that is being enqueued?

    As far as the Youtube embeds, the administrators have been using Elementor to build pages. They use the video widget and paste in the direct link from the video.

    I’ll move on to the rest once I can get these sorted.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ERROR: Uncaught TypeError: Cannot read property ‘value’ of undefined’ is closed to new replies.