TEC Migration Stuck – No Troubleshooting Helped
-
Hi. On my staging site I have attempted to update TEC and the “Migration preview in progress” is stuck. I have deleted all events, aside from 1 (all past), I have tried clearing cache, deleting TEC and reinstalling 2x, cleaning the database, etc. It’s STILL reading “0 events previewed, 1 remaining” and there is a spinning icon on my single event also. Please HELP!
-
Hi @blackandbluebird !
The migration process will not start if there are no events. To migrate a site with no events, you’ll need to make a single placeholder event. You can use the?Hide From Event Listings?option to prevent it from showing on your calendar.
We have a handy article about migration if you need more information: https://theeventscalendar.com/knowledgebase/migrating/
Hope that helps
Hello @vicskf, thanks for your reply. I originally had 12 events when I starte d the migration. It was stuck at 0 previews for over 30 minutes. Per another thread here w/ the same issue, I uninstalled TEC, removed all TEC tables and cleared cache. I reinstalled the plugin and tried again, same thing happened. I deleted 11 of my events, leaving just one. Tried uninstall/clear cache/reinstall, and now it’s stuck at 0 previews for 1 event. I can’t get the migration to work. Would love some assistance, thank you.
Hi there @blackandbluebird
Sorry to hear that you are still having trouble here, first I would try reverting the Migration with the snippet in the guide that Victor shared. I would recommend doing that with the Code Snippets Plugin and running it only once.
Then I would also try disabling all other plugins aside from TEC, and switch to a Default theme like 2021. (not 2022 or 2023, they are Full site editor themes and we aren’t fully compatible with them yet.) Resetting the Migration should keep you from having to reset or delete the tables again as well. Please let me know if that works for you
@tdorn thanks for your reply. I ran the snippet successfully via the Code Snippets plugin, resetting the migrator, deactivated all plugins aside from TEC, activated 2021 theme, and attempted to run the migration again, and it’s still not working (the Migration preview in progress bar doesn’t progress at all). Could I give you access to my site for troubleshooting?
@tdorn @vicskf I ran the snippet successfully via the Code Snippets plugin, resetting the migrator, deactivated all plugins aside from TEC, activated 2021 theme, and attempted to run the migration again, and it’s still not working (the Migration preview in progress bar doesn’t progress at all). Could I give you access to my site for troubleshooting?
I’m sorry to hear that you’re still experiencing this problem. Would you kindly attempt the following solution and inform me if it helps resolve the issue?
- Upgrade The Events Calendar to the latest version.
- Permanently delete all your events.
- Add the snippet below through Code Snippets plugin.
- Confirm if the “Upgrade” tab is still showing in your Events > Settings page.
- If “Upgrade” tab is no longer showing, you can now disable the snippet mentioned in step#3.
add_action('init', function() { delete_option(\TEC\Events\Custom_Tables\V1\Migration\State::STATE_OPTION_KEY); tec_timed_option()->delete(\TEC\Events\Custom_Tables\V1\Activation::ACTIVATION_TRANSIENT); });
I hope this helps, and please let me know if you have further questions or concerns.
@d0153 thanks for your reply. I did ask you asked and deleted all events. The Upgrade tab did disappear when I added the snippet. I disabled the snippet and the Upgrade tab was again visible.
1. I created a brand new event, but it’s still telling me to “upgrade your events” (do I need to do this, since I have no old events now?)
2. There is still a spinning icon above my new event’s featured image, whether I have the snippet active or not. See here: https://ibb.co/09brvCT Why is this here and how can I get rid of it? Thank you.
1. I created a brand new event, but it’s still telling me to “upgrade your events” (do I need to do this, since I have no old events now?)
If there are no events, including those in the trash, and you have turned on the snippet, then there may not be a need to migrate. Can you please confirm the values of the following on the Troubleshooting page under Events, with the snippet code both enabled and disabled?
- Custom Tables Migration Status
- Custom Tables Health Check
There is still a spinning icon above my new event’s featured image, whether I have the snippet active or not. See here:?https://ibb.co/09brvCT?Why is this here and how can I get rid of it?
Could you please clarify if this issue is occurring on the event page or in the event editor page within the wp-admin dashboard? Additionally, would it be possible for you to provide a larger screenshot that shows other elements of the page? Thank you.
@d0153 There are no longer any events leftover from before updating to this new version of TEC.
Here is the info you requested when the snippet is disabled:
Custom Tables Migration Status Incomplete
Custom Tables Health Check Good!And here it is when the snippet is enabled:
Custom Tables Migration Status Incomplete
Custom Tables Health Check Good!The spinning icon is showing on the event page, here is a full screenshot, after adding a new test event. You can see it over the featured image: https://ibb.co/tmHXDbD
If your preview is still getting stuck, you can try skipping the preview. Please follow these steps, and see if that helps.
- Install the free Code Snippets plugin.
- In your dashboard, go to Snippets > Add New and paste in this snippet:
add_filter( 'tec_events_custom_tables_v1_db_transactions_supported', function(){ return false; } );
- Save and Activate the snippet.
- Go to Events > Settings > Upgrade, start the migration preview, and keep the page open. You’ll get a note that says the preview cannot be processed, but you can still try to migrate. (Please create at least 1 event)
- Start the migration process and stay on the page.
- After migration completes, go back to Snippets > All Snippets and deactivate the snippet.
As for the loading icon, would you mind providing your event URL for us to check it further on our side? Looking forward to your reply.
@d0153 Thanks. I have done ask you asked, but I am not getting “the preview cannot be processed, but you can still try to migrate”. The migration just runs continuously still ??
Here is the screenshot of the code I added: https://ibb.co/bXnGHwP and here is what I still see: https://ibb.co/zHVdC0CI can provide you with a URL but it’s on a password protected staging site. Is there a way I can send you the info instead of posting it here?
To help us better understand the situation, could you please let us know if there are any errors recorded in your error_log file? This will allow us to conduct a more comprehensive investigation and provide you with the best possible solution.
Looking forward to your reply.
@d0153 I will do this in the next week or so. Please don’t close this thread. Thank you.
Thanks for letting us know. We’ll keep this thread open and look forward to hearing back from you next week. Take care!
Hi @d0153. Thanks for working with me on this so far. I just can’t put anymore time into this, I am going to go with a different plugin. I wish you all the best, and thank you again.
- The topic ‘TEC Migration Stuck – No Troubleshooting Helped’ is closed to new replies.