Uncaught TypeError: b is null - by chrisoneal

This topic has 8 replies, 2 voices, and was last updated 4 years, 4 months ago ago by Olga Barlow

  • Avatar: chrisoneal
    chrisoneal
    Participant
    February 22, 2021 at 20:12

    I’m getting lots of errors after updating to the latest versions on my site.

    Images do not load and console errors are in the private content area.

    Whats going on here? How3 can i update without the site breaking?

    (currently the site is reverted back to before the updates broke it)

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 22, 2021 at 20:50

    Hello,

    Could you, please, provide us with WP Dashboard and FTP access to your site. We’ll check the issue. Problem could be related to child theme files if you overwrite something there or to cache plugin settings. Need to check that.

    Regards

    Avatar: chrisoneal
    chrisoneal
    Participant
    February 22, 2021 at 21:13

    Here you go.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 23, 2021 at 12:15

    Hello,

    Problem caused by your customization in child theme. You overwrote template-elements.php file in the framework folder but should not. If you want to change any function from framework/template-elements.php copy only that function to child theme functions.php and make changes there. Don’t copy the whole file because we make changes there.

    I renamed the file and don’t see js error on your site. What function did you edit there?

    Regards

    Avatar: chrisoneal
    chrisoneal
    Participant
    February 23, 2021 at 17:08

    I removed the top level “Home” breadcrumb so breadcrumbs would only appear on second level pages/posts.

    Is there another way to do that in theme settings?

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 24, 2021 at 11:37

    Hello,

    Try to add the custom CSS below to hide it

    .breadcrumbs #breadcrumb > a {
        display: none;
    }

    Or copy only etheme_breadcrumbs function to child theme functions.php and edit it according to your needs.

    Regards

    Avatar: chrisoneal
    chrisoneal
    Participant
    February 24, 2021 at 17:26

    I only want to remove the top level “Home” breadcomb. I want to keep the 2+ level ones.

    To do that I had to comment out line 57 in templates > breadcrumbs.php

    // $html .= ‘‘ . $args[‘home’] . ‘ ‘ . $args[‘delimiter’] . ‘ ‘;

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    February 24, 2021 at 18:13

    Hello,

    Ok. But keep this file up to date and if you update theme and find that we made changes in that file then add these changes to your child theme file too.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘Uncaught TypeError: b is null’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.