• The following error occurs in the console when I put Header (Adv) in my template and enable the options ‘Transparent Header’ and ‘Auto spacing under’, causing it to not work correctly.

    Error message:

    Uncaught TypeError: can't access property "style", a is null
    setAutoTransparentSpacing /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.5:1
    initAutoTransparentSpacing /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.5:1
    KBHeader /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.5:1
    initKBHeader /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.5:1
    EventListener.handleEvent* /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.5:1
    kb-header-block.min.js:1:2563
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support ArchitaB

    (@architabasandrai20)

    Hi @hillyfov

    Thank you for reporting this and for sharing the console error.

    I’d be happy to investigate further. To help me replicate the issue, could you please provide a few more details?

    • What type of template are you using the Header (Adv) block in?
      • A Theme Template?
      • A Hooked Element?
      • A Content Section?
      • Something else?
    • Could you share the exact steps you take to reproduce the issue from a fresh template?
    • Does the error occur immediately after enabling Transparent Header and Auto Spacing Under, or only on specific pages?
    • If possible, could you share a screencast showing the setup and the resulting behavior?

    The error suggests the script is attempting to apply spacing to an element that is not present on the page, but I’d like to confirm the exact template configuration before drawing any conclusions.

    I look forward to your reply.

    Regards,
    Archita

    Thread Starter Machtnix

    (@hillyfov)

    Sure, @architabasandrai20, here’s how to reproduce the issue:

    • Create a fresh install, e.g. on WordPress Playground. I was running the latest version of WordPress.
    • Activate Twentytwentyfive theme, if not activated yet.
    • Install the latest version of Kadence Blocks plugin from the repository.
    • Go to Appearance > Editor > Patterns > Header and edit the standard “Header” pattern
    • Remove all blocks inside and replace them by a Kadence Header (Adv) block. Choose any default layout and just keep it like that for simplicity.
    • In the Header (Adv) block options, set Sticky Header to No and Transparent Header to Yes.
    • Hit Save.
    • Check your frontend. The mentioned error should not be there in the console now.
    • Switch back to the Editor and edit your Header (Adv) options again, this time activate the option Auto spacing under and hit save again.
    • Check your frontend again and find the following error message in the console

    Uncaught TypeError: can't access property "style", a is null
    setAutoTransparentSpacing /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.6:1
    initAutoTransparentSpacing /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.6:1
    KBHeader /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.6:1
    initKBHeader /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.6:1
    EventListener.handleEvent* /wp-content/plugins/kadence-blocks/includes/assets/js/kb-header-block.min.js?ver=3.7.6:1
    kb-header-block.min.js:1:2563

    Plugin Support ArchitaB

    (@architabasandrai20)

    Hi @hillyfov

    Thanks for providing detailed steps.

    I have replicated the issue on my website. Thank you for bringing this to our attention.

    I’ve sent a report so our team can further check and add a fix as soon as possible. On the other hand, we cannot give an exact date for when the update will be released.

    You can visit this page https://www.liquidweb.com/software/changelogs/ to see the change logs.

    Do let us know if we can help you with anything else.

    Regards,
    Archita

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

You must be logged in to reply to this topic.