• Resolved mickysoft

    (@mickysoft)


    Hi there,
    I have a problem with the accordion block. If a registered user sees the page with this block, all levels are collapsed and he can open or close the individual levels as desired by clicking on them.
    If an unregistered user visits the page, all blocks are expanded. How can I make sure that all blocks are always collapsed?

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    This is very unusual, I don’t see why an accordion would be accessible only to non connected users. Can you open the Google chrome console and tells me if you have any errors? (I can’t because your URL have a DNS error).

    Cheers,

    Thread Starter mickysoft

    (@mickysoft)

    Hi there,
    Since I have no idea about programming, I can unfortunately not give you any information about the contents of the chrome console. Unfortunately I have not found a way to upload a screenshot here. I tested the link again, it should be easily accessible.

    Viel Grüße / Best wishes
    Joachim Rolwes

    Thread Starter mickysoft

    (@mickysoft)

    I found something

    Uncaught TypeError: d.widget is not a function
    at accordion.min.js:11
    at accordion.min.js:11
    at accordion.min.js:11
    (index):512 Uncaught TypeError: $(…).accordion is not a function
    at HTMLDivElement.<anonymous> ((index):512)
    at Function.each (jquery.js:2)
    at a.fn.init.each (jquery.js:2)
    at HTMLDocument.<anonymous> ((index):511)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.J (jquery.js:2)
    229Unchecked runtime.lastError: The message port closed before a response was received.

    Hi,

    Looks like there’s a conflict with some other plugin. Can you try disabling plugins one by one and see if the error disappear? I would start by the cache/optimization plugin you have.

    let me know, cheers,

    Thread Starter mickysoft

    (@mickysoft)

    Hi there,
    I have contacted SiteGround. Their plug-in “SG Optimizer” seems to be the trigger. As soon as I switch off the plugin, the accordion works without any problems.

    Viel Grüße / Best wishes
    Joachim Rolwes

    OK, maybe you can disable only the optimization feature that causes the issue (file group or file minification) that won’t cause a major performance issue in my opinion.

    Cheers,

    Thread Starter mickysoft

    (@mickysoft)

    Hi there,
    the problem is probably triggered by your JavaScript code in the plug-in, since the function “Defer Render-blocking JS – Defer loading of render-blocking JavaScript files for faster initial site load.” cannot handle your code. Your plug-in is the only one on my site that has a problem with this function. I will first switch off the function so that I can ensure that my site works properly. I would be fired if you could optimize your code so that I can reactivate the function and inform myself about it.

    Viel Grüße / Best wishes
    Joachim Rolwes

    We’ll try to take a look but it looks quite complicated.
    This kind of JS defer loading are frequently generating conflicts, not only with our plugin I’m afraid, it depends more on a combination of plugins.

    Cheers,

    Thread Starter mickysoft

    (@mickysoft)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘problem with the accordion block’ is closed to new replies.