Support

Home Forums Event Espresso Premium Migrating from EE3

Migrating from EE3

Posted: December 9, 2016 at 11:48 am


ResearchILD

December 9, 2016 at 11:48 am

Hi, I am in the process of migrating from EE 3 (3.1.22.1). I followed the instructions on upgrading.

1- Deactivated 3.1.22.1
2- Activated 3.1.37.6.1.L
3- Deactivated 3.1.37.6.1.L
4- Activated 4.9.22.p
5- Went through the process of updating the database

I did not receive any errors during the process but when I finally get out of maintenance mode the Events page no longer has the events that were showing up in EE3 except for 1 old event. When I deactivate EE4 and reactivate EE3Lite the events are still showing up.

Any help would be appreciated!


Josh

  • Support Staff

December 9, 2016 at 12:00 pm

Hi there,

The dates recorded in the EE3 events were likely in an invalid format. You can delete the EE4 data from the EE4 > Maintenance page. Then that will deactivate EE4. Then you’ll check the events in EE3 and make sure that all the dates set for events are in the following format:

2016-12-09 (which is Year-month-day)

and the start and end times are filled out with times.


ResearchILD

December 9, 2016 at 1:22 pm

Everything seems fine for the latest event (the only one that is active at the moment). Any additional thoughts?

Registration Dates
Registration Start: 2016-04-19
Registration End: 2017-03-09

Event Dates
Event Start Date 2017-03-10
Event End Date 2017-03-11

Registration Times
Reg Start Time 12:01 am
Reg End Time 11:59 pm

Event Times
Start 1 8:30 am
End 5:00 pm


ResearchILD

December 9, 2016 at 1:44 pm

I did save the event over and created a copy then tried migrating again and it appears to be working now and all events/attendees appear to have migrated. I will take a look over the data now. Thanks!


ResearchILD

December 9, 2016 at 1:55 pm

One quick thing, I use the plugin Secondary HTML Content and for some reason those secondary content boxes show up all over the EE backend. Does not happen with any other plugin so not sure what is being called to display those but certainly looks like a bug.


Josh

  • Support Staff

December 9, 2016 at 2:22 pm

That would most likely be a bug that would need to be fixed in the Secondary HTML Content plugin. It’s might be hooking into a hook that can fire more than once.


ResearchILD

December 9, 2016 at 9:12 pm

I suppose it could be but it was never an issue with any of the EE3 versions or any other plugin I have ever used…


Tony

  • Support Staff

December 12, 2016 at 4:56 am

EE3 events were not custom post types so the admin pages for EE3 events were completely custom and didn’t integrate with other plugins designed to work on posts.

EE4 events are a custom post type and so are closer to ‘normal’ posts within WP, the admin interface is still custom but its designed to allow other plugins to integrate in almost the same way they would with normal posts.

I had a quick look at the Secondary HTML Content plugin and get_posts query they are using to pull in the ‘secondary_blocks’ metaboxes is being passed an empty post_type value for the meta_value when viewing EE pages. This then returns all posts for that query which means all of the seconardy_blocks are added to the EE pages.

It looks like the secondary blocks plugin should be checking it has a post type before running the query to prevent this. They do have a filter for the blocks after they have pulled them which allows you to check for a post type and return an empty array, like this:

https://gist.github.com/Pebblo/c1e5dcd995afee332f973b9140f67b3b

You can add that to your themes functions.php file or a Custom Functions Plugin.

However again note the issue is with the secondary blocks plugin not checking values before using them rather than EE loading the secondary blocks plugin incorrectly so the proper solution is to fix the query within the plugin.

The support post ‘Migrating from EE3’ 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