Posted: May 3, 2023 at 8:55 am
Please help! EE has been interferring with my blog archives. It is breaking. I have disabled everything and when disabling EE.. it works. re-activate it breaks. EE Version 5.0.3.p Please advise. |
|
Adding: |
|
pHp updated just now to 8.0 problem persisting. |
|
This looks to be a dev site, is that right? If possible, can you choose a default WordPress theme and see if this continues to happen? |
|
Garth, We’ve had EE for several years working… We tried the above.. still breaks. |
|
Can you send me a screenshot of using a default WP theme? |
|
|
|
https://dev.nectchamber.com/events/ is also broken. That’s very unusual. |
|
I can take a screen shot of EE disabled.. and blog will work.. or I can send you credentials |
|
Feel free to send us a screenshot. I’ll have to get help with where to go from here. |
|
or disable it and let me take a look. |
|
https://dev.nectchamber.com/wp-content/uploads/2023/05/Screen-Shot-2023-05-03-at-6.27.54-PM.jpg If you need credentials let me know. |
|
ahah! I didn’t think to disable this plugin for checking.. Archives worked.. the above is the issue.. |
|
Hi there, The above plugin is still disabled but https://dev.nectchamber.com/announcements/ Is still broken, so I don’t think the issue is with the Table View template. It looks like the issue is from EE adding in its placeholder divs at the beginning of the loop and floating them out of view. Your theme is using a flexbox for the main content which then throws off the elements within it. I assume you’ve recently updated the theme? Does adding this snippet: https://gist.github.com/Pebblo/4c374a93c255b57fe262 Fix the output? |
|
Hi Tony, I am viewing the archive correctly.. Are you seeing something else? |
|
…Wanting to make sure you are seeing what I am seeing before adding snippit. Yes everything is updated to the latest .. |
|
Is that in reference to me asking about your theme? The reason I’m asking if you’ve recently updated your theme is you mentioned this has worked for years. So something has changed on the site to make it stop working and the way we load the above divs which I think are causing the problem hasn’t changed in a long time now, so I’m assuming the theme updated to use the flexbox?
This is what I see: https://monosnap.com/file/IRinZcVUedcA7T8YTlNmlTBnW7ND5A When loading: https://dev.nectchamber.com/announcements/ |
|
Yes, we assume an update.. triggered it.. not sure if it was the plugin EE or else.. and what you are seeing is not what is there now without the plugin enabled. Event Espresso – Events Table View Template (EE 4.4.9+) (Version 1.3.9.p) Please view my url.. to what is there now.. you are viewing one with the WP default theme with everything enabled. I enabled the correct theme.. Astra.. disabled the Table view plugin.. and this is what I am seeing.. https://dev.nectchamber.com/wp-content/uploads/2023/05/Screen-Shot-2023-05-04-at-9.35.33-AM.jpg |
|
Can you please explain how I view a different view on the URL you have given for me to view? I’ve loaded the page I linked to above, there isn’t another way for me to view the page. What is likely happening is I’m being served a cached version and as you’re logged into the site you’re getting the ‘live’ view (logged-in visitors don’t get cached responses by default). So can you either purge the cache or disable caching completely on the dev site please? |
|
cached can you please check again. |
|
Ok, I now see the output you linked in your screenshot. The placeholder divs are not currently loading on that page which is why it’s not breaking. Can you re-enable the events table and then purge the cache again? I’ll check it once that’s active (likely the placeholders load). Then try adding the snippet and see if it makes a difference. |
|
all set. |
|
I should clarify.. I only enabled the events table.. |
|
Yeah, so the placeholders are now loading which is breaking the output. Placeholders: https://monosnap.com/file/QitM2gw7Xha4wUWS4VmTcTwtQ9hgWy Removed: https://monosnap.com/file/vsYliEmUcJk2scfEsM9VRKAHMom249 Now try adding the snippet I gave you above, does that change anything? |
|
Adding to theme functions yes? |
|
You can but I would recommend using a custom functions plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ The snippet I’ve given you above is actually a plugin in itself. |
|
So… Im not familiar with a custom functions plugin.. https://dev.nectchamber.com/wp-content/uploads/2023/05/Screen-Shot-2023-05-04-at-11.57.43-AM.jpg |
|
The problem with functions.php is load order comes into play and may be preventing the code from running early enough. Try using this plugin: https://eventespresso.com/wp-content/uploads/2023/05/ee_remove_notices_from_front_page.zip Remove the above snippet, then add the above .zip in Dashboard – Plugins -> Add New -> Upload plugin. |
|
Installed.. cleared cache.. however, no change. |
|
Oh, so I completely missed that the above is not an archive, it’s a page but you’ve mentioned an archive? |
|
Its the blog archive within a page template. |
|
?? But that’s not a ‘regular blog archive’ within WordPress, it’s a ‘Page’ which is completely different. Change the code in the plugin I gave you from this:
To this:
Any difference then?
Well, no. That’s an actual WordPress archive and NOT a page, the output there is generated using your site’s theme and EE hooks into the loop to output various details, its not as simple as ‘thats from Event Espresso’, it’s from your theme and EE hooks into that to output the content. — Are these issues new? Have you switched themes? |
|
All these issues are new about 3 weeks or so.. no have not switched themes since 2020.. all this has been in place since then.. with no issues.. seemed every time the EE updated.. or renewed annual.. things unravelled a bit.. Its all the archives are affected by the Events table plugin. not sure when I updated that.. had to be several weeks.. since this is when it was noticed.. |
|
Double checking… add_filter( ‘FHEE__EE_Front_Controller__display_errors’, ‘ee_remove_notices_from_front_page’ ); |
|
Oops, one more
|
|
add_filter( ‘FHEE__EE_Front_Controller__display_errors’, ‘ee_remove_notices_from_front_page’ ); |
|
hmm the above code not working either.. |
|
Very strange! Ok, last one… either commment out all of the code above, or remove it and replace it with just this:
|
|
I think we got it this time. Thank you! |
|
Awesome, ok so that confims it is the placeholders causing this but I’m not sure they are being added only after the events table has been enabled. I’ll create a ticket for our developers to investigate this and see if there is anything else we can do. |
|
The support post ‘EE 5.0.3.p Breaking Blog archive’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.