Title: Missing event tables &#8211; script does not work
Last modified: June 11, 2025

---

# Missing event tables – script does not work

 *  Resolved [Boris](https://wordpress.org/support/users/ispacecrusader/)
 * (@ispacecrusader)
 * [12 months ago](https://wordpress.org/support/topic/missing-event-tables-script-does-not-work/)
 * I have a website and just installed TEC, as I have on numerous websites in the
   past.
   For some reason, the TEC tables are not created. I keep seeing this in 
   system info:Missing `Event` Table Data | Missing `Occurrences` Table DataI tried
   running the script mentioned here: [https://theeventscalendar.com/knowledgebase/how-to-troubleshoot-if-the-calendar-is-showing-empty-with-published-events-on-it/](https://theeventscalendar.com/knowledgebase/how-to-troubleshoot-if-the-calendar-is-showing-empty-with-published-events-on-it/)
   And now when I check I see:wp_tec_events is therewp_tec_occurrences is thereBut
   the rest is missing.And the result is my single events all result in 404’s.I’ve
   tried disabling/re-enabling, uninstalling and reinstalling. Nothing works.How
   can I get these tables created?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Boris](https://wordpress.org/support/users/ispacecrusader/)
 * (@ispacecrusader)
 * [12 months ago](https://wordpress.org/support/topic/missing-event-tables-script-does-not-work/#post-18508535)
 * Managed to resolve it by uninstalling, re-installing and deleting all existing
   events. A newly created event now does work.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [12 months ago](https://wordpress.org/support/topic/missing-event-tables-script-does-not-work/#post-18509098)
 * Hi [@ispacecrusader](https://wordpress.org/support/users/ispacecrusader/)
 * Thanks for your response. I’m glad to hear that you have found a workaround for
   this.
 * Based on your initial message, it looks like you haven’t yet migrated your events
   to the [new **Events Data System**.](https://theeventscalendar.com/knowledgebase/migrating)
   This migration is required in order to use the latest versions of our plugins
   properly.
 * If you haven’t completed the migration yet, please follow these steps to get 
   started:
    1. Update to the latest versions of The Events Calendar and Events Calendar Pro(
       if you have one).
    2. Remove any un-needed draft events and empty the Trash.
    3. Activate only our plugins and use the 2021 theme.
    4. Make sure server-side caching is disabled temporarily while you’re migrating
       your events.
    5. Install and activate the [Code Snippets](https://wordpress.org/plugins/code-snippets/)
       plugin.
    6. Add [this snippet](https://d.pr/n/K8WwGn) and run it once (be sure it does not
       stay activated).
    7. Go to Events > Settings > Upgrades and go through the migration process.
 * _Please test the migration on your [staging site](https://theeventscalendar.com/knowledgebase/creating-and-using-a-wordpress-staging-site/)
   first before applying to your live site to avoid unnecessary downtime._
 * Let me know how it goes.
 *  Thread Starter [Boris](https://wordpress.org/support/users/ispacecrusader/)
 * (@ispacecrusader)
 * [12 months ago](https://wordpress.org/support/topic/missing-event-tables-script-does-not-work/#post-18509257)
 * Hi [@d0153](https://wordpress.org/support/users/d0153/) 
   thanks for your help.
   No, it was a fresh installation of TEC. I have uninstalled and re-installed multiple
   times, and tried various scripts from your documentation as well as suggestions
   from ChatGPT.At first, the extra tables would just not install, even with numerous
   attempts. Later on, the tables were installed, but the issue remained.At that
   point, the problem was probably resolved already, but I never thought to create
   a new event, as I expected the existing ones to start behaving normally after
   the fixes. They would not.Also, the manual migration option was not present in
   the settings.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/missing-event-tables-script-does-not-work/#post-18511416)
 * Hi [@ispacecrusader](https://wordpress.org/support/users/ispacecrusader/)
 * Unfortunately, if you’ve previously installed an older version of The Events 
   Calendar plugin, the migration process will still be required. The only exception
   is if you’re working with a completely fresh WordPress installation—in that case,
   migration isn’t necessary.
 * The steps I shared above include a snippet to revert the migration. If you haven’t
   run that snippet yet, the **Upgrade** tab under **Events > Settings** won’t appear.
 * Please follow each step I outlined earlier carefully and let me know if that 
   helps.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Missing event tables – script does not work’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [11 months, 4 weeks ago](https://wordpress.org/support/topic/missing-event-tables-script-does-not-work/#post-18511416)
 * Status: resolved