• Resolved hole19

    (@hole19)


    I have inserted in a page this shortcode: [toc]

    General options:
    Checked “Alow the user to toggle…”
    Checked “Initially hide…”

    But…
    Toc is allways shown.
    User can not toggle.

    ?What can I do?
    Thanks.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Steven

    (@shazahm1hotmailcom)

    The cookie plugin you are using is creating a fatal javascript error on the page breaking all javascript which comes after. After you correct that error, you’ll have to reach out to the cookie plugin support team, it should work correctly. Ensuring the TOC is displayed by default in such cases of an error is by design.

    I hope this helps!

    Thread Starter hole19

    (@hole19)

    Thanks, Steven.
    I think this problem is caused by Cookiebot with this code:

    <script id=”Cookiebot” src=”https://consent.cookiebot.com/uc.js&#8221; data-cbid=”5d2631ca-eabf-4531-b572-8d46a8b9304b” data-blockingmode=”auto” type=”text/javascript”></script>

    Yandex Metrica script is also affected as ETC plugin.

    Kind regards,

    Thread Starter hole19

    (@hole19)

    I have tried in different parts of the page. But the the problem goes on.
    I think the best solution is to look for another cookies consent script/plugin.

    Hi @hole19,

    The Cookiebot script fails because the variable “i” is defined as a global constant (with the value “false”). This means that “i” has a fixed value, and that any attempts to change or redefine the variable will result in an error.
    This becomes a problem when we try to define “i” in a “for” loop. For example: for(i=0;i<something;+ii)

    To fix the error, “i” needs to either not be on a global scope, or to not be defined as a constant.

    • This reply was modified 4 years, 10 months ago by Richard.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘It does not work properly’ is closed to new replies.