Archived topic
Block Sidebar Element error in a specific category
7 replies · Started by André on April 5, 2021
Hi there!
I’m having this weird issue with a Block Sidebar Element in a specific post category. Let me explain.
I want to show different sidebars for each post category (Categories are mostly countries). Presently I’m using a dated plugin to do that and I’m trying to replace that plugin with the GenratePress Block Sidebar Elements.
I have built my first Block Sidebar Element to be shown in the category “Itália”, so I specified the Location (Post Category » Itália). Please see screenshot https://tinyurl.com/yfxexyjr
The Element looks good on the backend, but when in fronted looks like this https://www.tempodeviajar.com/genova-italia-o-que-fazer-visitar-dicas-viagem/. So, I was searching for any coding error or plugin incompatibility (cache plugin maybe).. or whatever.
And now the weirdest thing that I can’t figure out. The Block Sidebar Element shows fine in other Category locations! I have tried a few and the only one that seems to get the error is “Itália”, the original one. You can check this post for example https://www.tempodeviajar.com/irao-informacao-essencial-para-viajar/. It’s using the same Block Sidebar Element (I have it set to 2 diferente Categories locations: “Itália” and “Irão”.
Do you understand what can be causing this error in the original “Itália” category but not on other categories? How can I solve this?
For testing, I have tried deactivating both my caching plugin and my sidebar plugin, but it didn’t make any difference.
Thanks,
André
Hi there,
That's quite strange.
Can you try disabling ALL plugins except GB and GP Premium? And then try regenerating the CSS on GB settings here https://share.getcloudapp.com/7KuPyNrN
You then check if the issue still occurs. Let us know.
Hi Elvin,
I have seted a stage copy of my site to play around with this issue. This is what I've done and come up with.
Before doing the procedure you recommended, I "accidentaly" solved the issue but simply updating a blog post in the "Itália" category. This (and only this) specific post, started showing the sidebar with no issues. But all others posts in the category were still showing the error. I tested and manualy updated another post in the category. The result was the same: the sidebar started to show with no error in that post also.
Then, I performed your procedure and all the posts in the category started to show the sidebar with no error.
I have no idea what happened here. Maybe updating the posts (one by one) forced the CSS on GB to regenerate inside that posts? What do you think?
I only have 4 posts in this category. Would you recommend doing your procedure on the live site or do you think it will be fine to just update these 4 posts one by one?
Thanks,
André
Hi there,
does your server have page caching ? If so try clearing the page caches.
Hi David, how are you?
You mean Cloudflare Full Page Caching or similar, right? I do have a caching plugin and use Cloudflare with it, but I'm not sure what Full Page Caching is and I dont have that option enabled.
I did purged the Dynamic Cache for your entire website, though.
Meanwhile, as I mentioned in my previous message, the issue got “accidentaly” solved when I updated a post in that category. Also, when I aplied the procedure recommended by Elvin, it solved for all posts.
Riht now, I believe the problem is fixed. But I was trying to understand what could have caused it, in order to be aware in the future and dont come runing to you guys if it happens again... :)
Thanks,
André
Glad to hear you resolved the issue.
Not sure why that is happening - at the very most you should only need to regenerate the CSS for GenerateBlocks.
We'll do some tests to see if we can replicate the issue.
Thanks David. I will mark this topic as Resolved, but if you come across anything worth sharing , please do. :) Cheers!
Will do :)