• Whenever I add an HTML-anchor to a block that is an accordeon, I’m able to save the page, but when I want to edit the block later, I’m not able to.

    There is a notification above the block: “This block contains unexpected or invalid content. Attempt block recovery”

    When I click the button for block repair, the error is resolved, but the HTML-anchor is gone.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sajjad Hossain

    (@codersajjad)

    Hello,

    We’ve tested this issue in our environment and didn’t encounter any problems. Could you please try testing it in a fresh environment? This can help determine if the issue is specific to your current setup. Let us know if the problem persists after testing in a fresh environment, and we’ll be happy to assist further.

    Best regards,
    spider-themes

    Thread Starter jellet

    (@jellet)

    Yes, in a fresh environment the problem still exists. There are also other blocks with errors, but I’ll come to them later. This one has a clear cause, the ID-tag in the group accordeon. The seperate accordeon doesn’t have this problem, because it has another field for ID-tag.

    All the other bugs (see my other topics) also are present in the fresh environment (just theme and plugin)

    Plugin Author Sajjad Hossain

    (@codersajjad)

    I’ve tested this issue in a Group Accordion block by adding a ‘Custom HTML’ block with an anchor tag. After saving and revisiting the page to edit, everything worked fine on my end.

    To assist you better, could you please provide detailed steps on how you’re using the HTML-anchor? If you share your exact process, I can replicate it on my side and investigate further.

    Thank you for your cooperation.

    Best regards,
    Sajjad

    Thread Starter jellet

    (@jellet)

    Oooh, I didn’t add a custom HTML block. I used the standard method of creating an anchor tag in WordPress. When clicking on “Block” in the upper right corner (next to “Page”), there is a menu: “Advanced”. This has the option to provide a “HTML anchor” and “Extra CSS-class(es)”.

    Your single accordion doesn’t have this field. Instead it has a seperate menu for “Accordion ID”. This doesn’t get the same error.

    The error also occurs in general, without the ID. I’ve sent you an e-mail about this. I’ll resend the e-mail with some screenshots of the method I use to create an anchor tag.

    Plugin Author Sajjad Hossain

    (@codersajjad)

    Hello @jellet,

    Thank you for your response. I tried following your process, but I wasn’t able to replicate the error. If you could provide us with a screen recording along with the error message, it would greatly help us understand and resolve the issue.

    Thread Starter jellet

    (@jellet)

    I’ve sent you another e-mail.

    Thread Starter jellet

    (@jellet)

    Maybe I’ve found the issue. The css-class “panel” sometimes disappears from the div-section with css-class “wp-block-aab-accordion-item” & “aagb__accordion_container”. This probably causes the error.

    I can also manually remove the “panel”-class and I also get an error, which I can automatically repair with block-repair.

    I don’t know when the “panel”-class disappears. Maybe after a theme-update. I’ll keep my eye on that.

    Independently, the ID-tag still gives the error, even if there is a “panel”-class. This also occurs on on Twenty Twenty-Four (standard WP theme) and every time i fill in an “HTML-anchor” (id-tag) under “Advanced” under “Block”. (Advanced is right beneath “read more button”).

    Adding an ID-tag changes something in the layout of the code, but I can’t find any other differences.

    For example:

    <div class="aagb__accordion_component"><!-- wp:paragraph -->

    vs.

    <div class="aagb__accordion_component">
    <!-- wp:paragraph -->
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.