-
ITComms
I am using GP1 with the Agency site from the site library and The Events Calendar PRO plugin for events management.
I am getting persistent errors in the Right Sidebar widget when I open the Widget editing page on my dashboard. This sidebar – in the Agency theme – displays recent posts, events, archives, and categories. There appear to be some failures in some JSON files that the Sidebar loads. The rest of the widgets on the page load and edit properly.I have been working with The Events Calendar support to identify problems and we’ve reached the point where it appears to be a incompatibility between TEC and GP/Agency that may be causing the failures. I have experimented with disabling TEC PRO; it intially makes the errors go away, but after a few edits of my website pages they return. Once this happens, I found that I have had to wipe my site and rebuild it from scratch. I have also tried replacing the Agency theme with something else from the site library. The results are suggestive: I did not see the errors appear, at least in the time I was experimenting with the replacement theme.
Here is the widget page from my dashboard showing the errors in the Sidebar widget and some error logs created by the page: https://postimg.cc/N2fxL1Nc
-
Hi there,
The widget editor is not controlled by GP, if you switch to other themes, does the issue still occur?
-
ITComms
I did experiment with some other themes – Donate, Revolution, a couple others, as I mentioned. Agency seems to be the only one that manifests this error but I haven’t set up A/B staging sites to compare conclusively yet. I’m beginning to suspect something is odd with that particular theme.
I want to be very clear about what is happening: when the Widget page is opened from the dashboard, a list of widgets are displayed by position – Right Sidebar, Left Sidebar, footer 1/2/3, header 1/2/3, etc.. The Right Sidebar widget, which is the 1st displayed, contains 4 content blocks: Recent Posts, Categories, Events, Archives. All generate the error messages shown, but some of those blocks display – they just can’t be edited. The other widgets on the page seem to allow editing and saving.
I am not using the Right Sidebar widget at this stage of the site development, but it may be present on one of the theme sample pages. On my home page, everything seems to display normally.
Events are not a standard post type in the Agency theme; The Events Calendar (TEC) creates them and adds them to the Right Sidebar, for what it’s worth. TEC / TEC PRO is known to function properly with GP and the Donate theme.
-
When I say theme, I mean GeneratePress theme, not the templates.
Those widgets are placeholders, and they are legacy widgets.
You can delete them from the right sidebar, does that work?
-
ITComms
Yes, if the events block is removed from the right sidebar widget of the Agency template the errors go away.
I set up a 2nd staging site and transferred the site to it using the Donate template. There have been no widget failures. For some reason the Events List widget is NOT installed by the Donate template by Events Calendar PRO. I added the TEC PRO Events List widget manually to the Donate Right Sidebar and it created no errors.
So although I can remove the errors in various ways, there appears to be a behaviorial difference between the Agency and Donate templates when using Events Calendar PRO.
If I understand you correctly, since GP is now fully a block-compatible theme, sidebars should no longer be used (although both Donate and Agency populate the Footer and Header widgets). TEC is not yet completely compatible with the WP block editor but offers shortcodes as a stopgap while their compatibility project is completed.
I speculate that TEC PRO is still attempting to populate widget areas in the GP theme – but why one template appears to allow this and another doesn’t is a mystery to me.
-
(although both Donate and Agency populate the Footer and Header widgets)
The Donate site uses a block element – hook as the site footer, the Agency site is pretty old, it’s still using footer widgets.
But neither site is using header widgets.
I would recommend using block element – sidebar so you can build it freely with blocks.but why one template
appears to allow this and another doesn’t is a mystery to me.
Without seeing both sites I can not tell. Do the 2 sites have the same WP version, PHP version?
- You must be logged in to reply to this topic.