Support

Home Forums Event Espresso Premium HELP! Major problems with event lists

HELP! Major problems with event lists

Posted: August 18, 2019 at 3:30 pm

Viewing 8 reply threads


M Lou Hyttinen

August 18, 2019 at 3:30 pm

I’ve spent the past 4 days migrating from EE3 to EE4 for my client. After 2 tries, the data is finally migrated. The first try failed due to the migrated data being wiped after getting an error with the MailChimp plugin data migration. The option of wiping the MailChimp plugin data deleted ALL migrated data, not just the MailChimp plugin data.

The latest frustration has been event lists. Using the default event list (archive listings) is not usable because the post date is displaying, instead of the event date. (Similarly, the post date displayed above the event titel on single event listings. I was able to hide it with CSS.)

I created an archive page template as per the documentation, but that didn’t help. So I created an event list page with the shortcode (https://www.heritagefarmstead.org/events/). But when I set the page as my event list in the settings, EE defaults to the archive listings, not my page.

I tried to work around this by cloning the list page (https://www.heritagefarmstead.org/events-2/) and setting that page as my event list page in the settings. That helped, somewhat, except when returning to the event list from the cart, then it goes back to the archives list.

How can I force the event list to display my event list page and not the archives listing?

Thanks,

Karl Barndt


Tony

  • Support Staff

August 19, 2019 at 4:59 am

Hi Karl,

The first try failed due to the migrated data being wiped after getting an error with the MailChimp plugin data migration. The option of wiping the MailChimp plugin data deleted ALL migrated data, not just the MailChimp plugin data.

Currently, skipping any migration will reset all of EE4 back to default. I’ll check in on this to see if we can improve the message shown to make that clear.

I created an archive page template as per the documentation, but that didn’t help.

May I ask why that didn’t help? If you have a custom archive template you can change any of the details output by your theme (it’s you’d theme outputting the post date rather than EE).

We can help point you in the right direction with this but we’ll need more details on what you’ve done so far.

I created an archive page template as per the documentation, but that didn’t help. So I created an event list page with the shortcode (https://www.heritagefarmstead.org/events/). But when I set the page as my event list in the settings, EE defaults to the archive listings, not my page.

Just to clarify whats happening here, it’s not EE defaulting to display the archive, it’s WordPress. If you have an archive and a page with the same slug, the archive output ‘wins’ and is therefor displayed in place of the page.

I tried to work around this by cloning the list page (https://www.heritagefarmstead.org/events-2/) and setting that page as my event list page in the settings. That helped, somewhat, except when returning to the event list from the cart, then it goes back to the archives list.

I’m not sure I follow what you’ve done here, created another page with the slug events-2 and then set the EE events list slug to ‘events-2’?

If so your ‘events’ page will now display on /events/ as EE archives use /events-2/

How can I force the event list to display my event list page and not the archives listing?

Rather than disabling the event archive, what you can do is use a slug other than ‘events’ for EE and then link back to your events page rather than that slug. So you could set your EE events slug to ‘event-registration’ for example, then link everyone to /events/ (which is your events page).

You can alter the URL used by the event cart using a snippet of code like this:

https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40

Set the code to return the URL you want to use and then can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


M Lou Hyttinen

August 19, 2019 at 7:50 am

Thanks, the code snippet worked. The other issues are definitely caused by the theme.

I think we’re at a point where we’re good and have gone live with EE4.


Tony

  • Support Staff

August 19, 2019 at 8:24 am

Awesome, I’m glad it’s working for you.


M Lou Hyttinen

August 19, 2019 at 10:00 am

I spoke too soon. The slug code and suggestion is still not working correctly.

If I change the slug to ‘event-registration’, then the cart does not work properly.

If I change it to something like “event’, then I get a white screen when attempting to display the event.


M Lou Hyttinen

August 19, 2019 at 10:03 am

I tried one more change that seems to be working. I changed the slug to ‘event-list’ and that seems to have solved the problem.


Tony

  • Support Staff

August 19, 2019 at 10:11 am

If I change it to something like “event’, then I get a white screen when attempting to display the event.

Event is the single label for EE events, you can’t use that as the events list slug.

If I change the slug to ‘event-registration’, then the cart does not work properly.

What happened when you changed it to this? Did you flush your permalinks after changing the option? (Go to Dashboard -> Settings -> Permalinks, just load the page you don’t need to do anything on it).

I tried one more change that seems to be working. I changed the slug to ‘event-list’ and that seems to have solved the problem.

Strange, doing so should be no different from the previous ‘event-registration’ slug.


M Lou Hyttinen

August 19, 2019 at 10:14 am

Setting the slug to ‘event-registration’ was causing ‘proceed to registration’ and ‘view cart’ to navigate to the event listings.


Tony

  • Support Staff

August 19, 2019 at 10:26 am

Yeah that’s odd, I can’t reproduce that.

Actually, with this being an EE3 to EE4 migration site you may already have a slug with ‘event-registration’ (that’s the slug EE3 used) so it could be a conflict with that.

My apologies for not thinking of that earlier.

Either way it sounds like its working now, any further problems please let us know.

Viewing 8 reply threads

The support post ‘HELP! Major problems with event lists’ 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