• Resolved ipaelo

    (@ipaelo)


    Hi,

    Our website was working fine but collapse-o-matic stopped working.

    We got this errors on Console:

    Uncaught SyntaxError: Identifier 'com_options' has already been declared (at (índice):972:7)
    jquery.min.js:2 jQuery.Deferred exception: com_options is not defined ReferenceError: com_options is not defined
    at HTMLDocument. (https://website/wp-content/plugins/jquery-collapse-o-matic/js/collapse.js:384:2)
    at e (https://website//wp-includes/js/jquery/jquery.min.js:2:30038)
    at t (https://website//wp-includes/js/jquery/jquery.min.js:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js:2
    t @ jquery.min.js:2
    setTimeout (asíncrono)
    (anónimo) @ jquery.min.js:2
    c @ jquery.min.js:2
    fireWith @ jquery.min.js:2
    fire @ jquery.min.js:2
    c @ jquery.min.js:2
    fireWith @ jquery.min.js:2
    ready @ jquery.min.js:2
    $ @ jquery.min.js:2
    jquery.min.js:2 Uncaught ReferenceError: com_options is not defined
    at HTMLDocument. (collapse.js:384:2)
    at e (jquery.min.js:2:30038)
    at t (jquery.min.js:2:30340)
    
    
    

    We have tested with and without plugin cache with the same results. (WpRocket)

    Regards,
    Ismael

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author twinpictures

    (@twinpictures)

    Something else is causing this error. Looking at the source of the page, many, many scripts are being duplicated. Collapse-O-Matic is throwing an error because it’s typed as a const variable that can only be declared once. We can adjust this so it will not throw the error, but the problem is deeper.

    Please look into why everything is loading twice and let us know if you get that solved.

    Thread Starter ipaelo

    (@ipaelo)

    Thanks for so fast response.

    I have sent a ticket to WProcket because I think that they will be the cause of duplications.

    I will report to you if they solved.

    Thanks.

    Plugin Author twinpictures

    (@twinpictures)

    what happens when WProcket is deactivated?

    Thread Starter ipaelo

    (@ipaelo)

    Duplicated scripts continues in the footer. So I am not sure that WP Rocket is the guilty…

    Thread Starter ipaelo

    (@ipaelo)

    I have found the guilty.  It is Table of contents plus: https://wordpress.org/support/topic/code-duplication-because-of-toc-plugin/#post-16456554

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Collapse doesn´t work’ is closed to new replies.