Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Undefined array key “accordionItemOpen”

  • Hi!

    I have run into an issue with GenerateBlocks Pro lately.
    The frontend of the site shows this line:
    “Warning: Undefined array key “accordionItemOpen” in /generateblocks-pro/includes/extend/interactions/class-accordion.php on line 136″

    I´ve tried to remove GenerateBlocks Pro and reinstall etc, but nothing seem to help.
    Any ideas how to solve this or anybody else here that have experienced the same?

    Thanks,
    Jim

  • Hi Jim,

    Do you have an Accordion Block on the page in question? Can you try deleting it and recreating it from scratch to test?

  • I have this exact warning when I try to use dynamic data with the accordion block. Otherwise, it works as intended.

  • Okay, so I´ve tried to delete the existing accordion and create a new one but still get the warning.
    Like swanrj08 said, it seems to be related to the use of dynamic data.

    I am using the accordion in a query loop with dynamic data enabled for showing a custom post type title + content (text) inside each accordion item.

    I also noticed that if I set the accordion to “Item open by default” it won´t show any warning.
    Unfortunately for my use case I need them closed by default.

  • Hi there,

    We are aware this bug and it should e fixed in the next version of GB pro.

    Here is the relevant info with a temp fix to remove the warning:
    https://generate.support/topic/accordion-dynamic-data-warning/#post-1232

  • Okay, great!
    Thank you 🙂

  • No problem 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.