-
viljamedia
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 -
Fernando
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?
-
swanrj08
I have this exact warning when I try to use dynamic data with the accordion block. Otherwise, it works as intended.
-
viljamedia
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 -
viljamedia
Okay, great!
Thank you 🙂 -
No problem 🙂
- You must be logged in to reply to this topic.