Support

Home Forums Event Espresso Premium EE 5.0.3.p Breaking Blog archive

EE 5.0.3.p Breaking Blog archive

Posted: May 3, 2023 at 8:55 am

Viewing 39 reply threads


Alisa Mierzejewski

May 3, 2023 at 8:55 am

Please help!

EE has been interferring with my blog archives. It is breaking.
I’ve cloned the site here. https://dev.nectchamber.com/announcements/ “Announcements” is a regular blog archive.

I have disabled everything and when disabling EE.. it works. re-activate it breaks.
All plugins, themes and WP updated and tested with deactivation/activation method

EE Version 5.0.3.p
Event Espresso – Events Table View Template (EE 4.4.9+) Version 1.3.9.p

Please advise.


Alisa Mierzejewski

May 3, 2023 at 9:05 am

Adding:
WordPress Version: 6.2
PHP Version: 7.4.33


Alisa Mierzejewski

May 3, 2023 at 9:33 am

pHp updated just now to 8.0 problem persisting.


Garth

  • Support Staff

May 3, 2023 at 3:57 pm

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?


Alisa Mierzejewski

May 3, 2023 at 4:05 pm

Garth, We’ve had EE for several years working…
We have a live site, however, we cloned it and put it in another area.. [dev.nectchambeer.com]

We tried the above.. still breaks.


Garth

  • Support Staff

May 3, 2023 at 4:08 pm

Can you send me a screenshot of using a default WP theme?


Alisa Mierzejewski

May 3, 2023 at 4:11 pm

https://dev.nectchamber.com/wp-content/uploads/2023/05/Screen-Shot-2023-05-03-at-6.09.37-PM.jpg
When EE is disabled.. the archive views correctly.


Garth

  • Support Staff

May 3, 2023 at 4:18 pm

https://dev.nectchamber.com/events/ is also broken. That’s very unusual.


Alisa Mierzejewski

May 3, 2023 at 4:21 pm

I can take a screen shot of EE disabled.. and blog will work.. or I can send you credentials


Garth

  • Support Staff

May 3, 2023 at 4:25 pm

Feel free to send us a screenshot. I’ll have to get help with where to go from here.


Garth

  • Support Staff

May 3, 2023 at 4:27 pm

or disable it and let me take a look.


Alisa Mierzejewski

May 3, 2023 at 4:30 pm

https://dev.nectchamber.com/wp-content/uploads/2023/05/Screen-Shot-2023-05-03-at-6.27.54-PM.jpg
Archive works with EE disabled!..
Thanks for looking into this..

If you need credentials let me know.


Alisa Mierzejewski

May 3, 2023 at 5:32 pm

ahah! I didn’t think to disable this plugin for checking..
I left EE enabled.. and disabled:
Event Espresso – Events Table View Template (EE 4.4.9+) (Version 1.3.9.p)

Archives worked..

the above is the issue..
Please advise ..
Thank you.


Tony

  • Support Staff

May 4, 2023 at 7:23 am

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?
(EE loading those placeholders hasn’t changes in a long time)

Does adding this snippet:

https://gist.github.com/Pebblo/4c374a93c255b57fe262

Fix the output?


Alisa Mierzejewski

May 4, 2023 at 7:37 am

Hi Tony,

I am viewing the archive correctly..
https://dev.nectchamber.com/wp-content/uploads/2023/05/Screen-Shot-2023-05-04-at-9.35.33-AM.jpg

Are you seeing something else?


Alisa Mierzejewski

May 4, 2023 at 7:43 am

…Wanting to make sure you are seeing what I am seeing before adding snippit.

Yes everything is updated to the latest ..


Tony

  • Support Staff

May 4, 2023 at 7:54 am

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?

Are you seeing something else?

This is what I see:

https://monosnap.com/file/IRinZcVUedcA7T8YTlNmlTBnW7ND5A

When loading: https://dev.nectchamber.com/announcements/


Alisa Mierzejewski

May 4, 2023 at 8:01 am

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


Tony

  • Support Staff

May 4, 2023 at 8:09 am

Please view my url.. to what is there now.. you are viewing one with the WP default theme with everything enabled.

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?


Alisa Mierzejewski

May 4, 2023 at 8:15 am

cached can you please check again.
Thank you.


Tony

  • Support Staff

May 4, 2023 at 9:30 am

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.


Alisa Mierzejewski

May 4, 2023 at 9:35 am

all set.


Alisa Mierzejewski

May 4, 2023 at 9:38 am

I should clarify.. I only enabled the events table..


Tony

  • Support Staff

May 4, 2023 at 9:44 am

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?


Alisa Mierzejewski

May 4, 2023 at 9:46 am

Adding to theme functions yes?


Tony

  • Support Staff

May 4, 2023 at 9:47 am

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.


Alisa Mierzejewski

May 4, 2023 at 10:00 am

So… Im not familiar with a custom functions plugin..
I have only added to my child theme functions in the past.. however when adding the snipping there was no change.
Can you check out the screen shot here.. and let me know if I
am missing something?

https://dev.nectchamber.com/wp-content/uploads/2023/05/Screen-Shot-2023-05-04-at-11.57.43-AM.jpg


Tony

  • Support Staff

May 4, 2023 at 11:54 am

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.


Alisa Mierzejewski

May 4, 2023 at 12:21 pm

Installed.. cleared cache.. however, no change.


Tony

  • Support Staff

May 4, 2023 at 12:25 pm

Oh, so I completely missed that the above is not an archive, it’s a page but you’ve mentioned an archive?


Alisa Mierzejewski

May 4, 2023 at 12:28 pm

Its the blog archive within a page template.
The Events page.. https://dev.nectchamber.com/events/
also does not work.. its a genetaged page from the plugin?


Tony

  • Support Staff

May 4, 2023 at 12:36 pm

It’s 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:

if( is_front_page() || is_archive() ) {

To this:

if( is_front_page() || is_archive() || is_page(8810) ) {

Any difference then?

The Events page.. https://dev.nectchamber.com/events/
also does not work.. it’s a generated page from the plugin?

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?


Alisa Mierzejewski

May 4, 2023 at 12:41 pm

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..


Alisa Mierzejewski

May 4, 2023 at 12:46 pm

Double checking…

add_filter( ‘FHEE__EE_Front_Controller__display_errors’, ‘ee_remove_notices_from_front_page’ );
function ee_remove_notices_from_front_page($display_errors) {
if( is_front_page() || is_archive() || is_page(8810) {
return false;
}
return $display_errors;
}


Tony

  • Support Staff

May 4, 2023 at 12:57 pm

Oops, one more )

if( is_front_page() || is_archive() || is_page(8810) ) {


Alisa Mierzejewski

May 4, 2023 at 1:00 pm

add_filter( ‘FHEE__EE_Front_Controller__display_errors’, ‘ee_remove_notices_from_front_page’ );
function ee_remove_notices_from_front_page($display_errors) {
if( is_front_page() || is_archive() || is_page(8810) ) {
return false;
}
return $display_errors;
}


Alisa Mierzejewski

May 4, 2023 at 1:07 pm

hmm the above code not working either..


Tony

  • Support Staff

May 4, 2023 at 1:34 pm

Very strange!

Ok, last one… either commment out all of the code above, or remove it and replace it with just this:

add_filter( 'FHEE__EE_Front_Controller__display_errors', '__return_false' );


Alisa Mierzejewski

May 4, 2023 at 1:45 pm

I think we got it this time.

Thank you!


Tony

  • Support Staff

May 5, 2023 at 4:44 am

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.

Viewing 39 reply threads

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.

Event Espresso