-
Anonymous
Hello, I have GeneratePress & GenerateBlocks pro on my site. I have the GP accordion blocks on one page of my site, and that page will not load when I try to edit it. The frontend loads just fine.
When it tries to load in the backend, I can see the loading animation on the accordion blocks, and then it just times out and asks me if I want to stop the page. Then the accordion blocks won’t load at all. The first set of accordion blocks on the page is a global block.
On a testing site, I reverted back to the default GeneratePress theme. The problem still persisted, so I disabled ALL the plugins, aside from GP Premium, Generate Blocks & Generate Blocks Pro. Then, the page loaded fine, so I started to enable the plugins one at a time until the issue came back.
The problem is that this is inconsistent – the first time I did this, I enabled plugins one by one until I got to Font Awesome. When I turned this on, the accordion page wouldn’t load again. I thought I had found the issue, but then I disabled Font Awesome…and then page wouldn’t load.
I started over and tried this process again, and enabling Font Awesome made no difference either way, so I moved on. I found a new plugin (Geo Maps) that seemed to be the culprit, but once again, after continuing to enable the rest of the plugins and theme, the issue came back and the page won’t load again now.
I’m stumped – is it possible that there are multiple conflicts all of a sudden? Seems unlikely. Am I doing something wrong in my troubleshooting? Seems more likely.
Thank you for your help. I’ve been using this theme for years on many projects, and just had to sign up for the support forum for the first time just today, so I’d say that’s a pretty great track record for GP/GB!
-
Alvind
Hi there,
We’ve encountered a similar issue with another user. Our troubleshooting indicated that the problem stemmed from the accordion being a synchronized pattern. The solution was to unlink the accordion pattern, which resolved the issue.
The exact cause remains unclear, but it may be related to changes introduced in the Pattern Library with the WP 6.6 update.
-
Anonymous
Thank you. I can’t get the page with the accordion to load, so I can’t unlink the pattern. I think I found the other thread you mentioned – I disabled GB Pro and then tried to load the page, but the same thing happens and the page has to quit loading, which makes the editing window unusable.
Also, if this is a known issue, I could wait for an update to GB pro, but I’m not sure how quickly those updates come out.
-
Hi there,
Is it a synced pattern? If so, I’ll log this and investigate.
If it is, can you get the pattern to load when opening it in “Appearance > Patterns”?
-
Anonymous
Sorry, I didn’t see a notice you had replied! Yes, this is a synced pattern. It does load when I open it up in Appearance > Patterns.
On the live site, is there an easy way to make it a regular block, so I can edit the page it’s on? Right now the only path I see forward is to make this change on the dev site, and then move the whole site over. I’d rather not do that for a few reasons, so if there’s a quick way to get the page to load safely that would be helpful. Thank you!
-
Let’s try this:
1. Go into “Appearance > Patterns” and copy the existing Accordions – place them into new patterns (not synced).
2. Now that you have them backed up, delete the existing synced patterns.This should allow you to open up the regular page and remove the (now deleted) synced patterns.
Let me know if that works or not 🙂
-
Anonymous
Thank you. I tried that, but when I went to the page that had the accordions on it, it still failed to load. But, I just disabled GB pro and then I was able to load the page, select the deleted synced patterns and remove them, and place the new patterns in their place.
Is this widespread? I use GP/BG on a lot of sites, but I haven’t used the synced patterns much. I looked at one other site that I’ve used synced patterns on, and the pages loaded just fine – same versions of WP and GP/GB installed.
Thank you for helping with this!
-
It’s likely a WP pattern issue, not an accordion issue, but we will investigate it.
-
There has been a known issue since the release of WP 6.6 with synced patterns.
In a discussion that I had in recent days with a developer of a couple of popular WP plugins, he noted:
…there is currently an issue that was introduced in WordPress 6.6 that is causing certain custom blocks including ours to crash when you try and add them to a custom synced pattern.
We’re looking more into this to see if there is a way we can solve it from our end, but a few active threads I’ve found point to it being a bug in WordPress core that will be fixed in an update, but that’s where we’re at for the moment, as we are still testing things on our own dev sites.
I also discovered this discussion on the WordPress github:
React methods are executed infinite times when block is inserted through a custom pattern
I’m hoping that with the November release of 6.7, WordPress will have fixed this.
-
Thanks for sharing this information. 🙂
-
Anonymous
Ah, ok. That is very helpful. But disappointing that WP would take that long to fix a site-breaking bug like that. I only just started experimenting with synced patterns, so I guess I’ll put them away for now!
- You must be logged in to reply to this topic.