{"id":1964207,"date":"2025-03-05T06:34:05","date_gmt":"2025-03-05T11:34:05","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/?p=1964207"},"modified":"2026-04-15T20:01:59","modified_gmt":"2026-04-16T00:01:59","slug":"how-to-troubleshoot-if-the-calendar-is-showing-empty-with-published-events-on-it","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/how-to-troubleshoot-if-the-calendar-is-showing-empty-with-published-events-on-it\/","title":{"rendered":"Troubleshooting: Empty Events Calendar After Switching Hosts"},"content":{"rendered":"\n<p>This issue often arises after migrating a website to a new host, which can result in missing database tables or problems with the API path used to load events. A quick way to diagnose this is by adding a new event and checking if it appears on your calendar. If it doesn\u2019t, here are some common causes and possible solutions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-missing-event-tables\">Missing Event Tables<\/h2>\n\n\n\n<p>Technically, the issue starts when the following calendar tables are missing after the website migration.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>your_table_prefix_here<\/em>_tec_events<\/li>\n\n\n\n<li><em>your_table_prefix_here<\/em>_tec_occurrences<\/li>\n\n\n\n<li><em>your_table_prefix_here<\/em>_tec_series_relationships<\/li>\n<\/ul>\n\n\n\n<p>To verify this, you need to check the WordPress Dashboard \u2192 Events \u2192 Settings \u2192 Troubleshooting and look for this information <code>Custom Table Health Check<\/code>. If this returns:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\nMissing `Event` Table Data | Missing `Occurrences` Table Data | `Event` Table Missing | `Occurrences` Table Missing\n<\/pre><\/div>\n\n\n<p>This means that the three tables above are not yet introduced on the new site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-trigger-the-schema-scripts\">Trigger the Schema Scripts<\/h2>\n\n\n\n<p>You can start by deactivating and reactivating our calendar plugins. This process triggers the table schema scripts, which should automatically add the missing table to your new site&#8217;s database.<\/p>\n\n\n\n<p>If that does not fix the issue then you can try to manually trigger the command to create the missing tables by adding this snippet. It is recommended to set this up with a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Code Snippets<\/a> and to save it as a &#8220;Run once&#8221; snippet to make sure the code runs only once:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_action( &#039;admin_init&#039;, function() {\n\t\/\/ Array of option names for custom tables.\n\t$options = &#x5B;\n\t\t&#039;tec_ct1_series_relationship_table_schema_version&#039;,\n\t\t&#039;tec_ct1_events_table_schema_version&#039;,\n\t\t&#039;tec_ct1_occurrences_table_schema_version&#039;,\n\t\t&#039;tec_ct1_events_field_schema_version&#039;,\n\t\t&#039;tec_ct1_occurrences_field_schema_version&#039;,\n\t];\n\n\t\/\/ Delete options.\n\tforeach ( $options as $option ) {\n\t\tdelete_option( $option );\n\t}\n\n\t\/\/ Instantiate Schema Builder\n\t$tec_schema_builder = tribe( TEC\\Events\\Custom_Tables\\V1\\Schema_Builder\\Schema_Builder::class );\n\n\t\/\/ Recreate custom tables.\n\t$tec_schema_builder-&gt;up();\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-blocked-api-path\">Blocked API Path<\/h2>\n\n\n\n<p>Another possible reason why new events aren\u2019t showing up is that the API path used to fetch event data may be encountering issues. This path holds your calendar\u2019s event information and can be accessed via: <code>yourdomain.com\/wp-json\/tribe\/events\/v1\/events<\/code>.<\/p>\n\n\n\n<p>Try visiting that URL in your browser (replacing <code>yourdomain.com<\/code> with your actual site\u2019s domain). It should return structured event data. If it doesn\u2019t, it\u2019s likely being blocked.<img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"498\" class=\"wp-image-1964928\" style=\"width: 850px;\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/03\/Expected.png\" alt=\"\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/03\/Expected.png 1636w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/03\/Expected-300x176.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/03\/Expected-1024x600.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/03\/Expected-768x450.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/03\/Expected-1536x899.png 1536w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-unblock-the-api-path\">Unblock the API Path<\/h4>\n\n\n\n<p>Please check if you have any active security plugins or services like Cloudflare, and make sure this path (<code>yourdomain.com\/wp-json\/tribe\/events\/v1\/events<\/code>) is excluded from any blocking or filtering rules.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This issue often arises after migrating a website to a new host, which can result in missing database tables or problems with the API path used to load events. A quick way to diagnose this is by adding a new event and checking if it appears on your calendar. If it doesn\u2019t, here are some&#8230;<\/p>\n","protected":false},"author":64,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[312,130,93],"tags":[],"stellar-product-taxonomy":[161],"class_list":["post-1964207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-calendar-views","category-advanced-post-manager","category-errors","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":312,"label":"Calendar Views"},{"value":130,"label":"Managing Events"},{"value":93,"label":"Troubleshooting"}],"stellar-product-taxonomy":[{"value":161,"label":"The Events Calendar"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jes","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/jes\/"},"comment_info":0,"category_info":[{"term_id":312,"name":"Calendar Views","slug":"calendar-views","term_group":0,"term_taxonomy_id":312,"taxonomy":"category","description":"","parent":61,"count":4,"filter":"raw","term_order":"0","cat_ID":312,"category_count":4,"category_description":"","cat_name":"Calendar Views","category_nicename":"calendar-views","category_parent":61},{"term_id":130,"name":"Managing Events","slug":"advanced-post-manager","term_group":0,"term_taxonomy_id":130,"taxonomy":"category","description":"","parent":61,"count":22,"filter":"raw","term_order":"0","cat_ID":130,"category_count":22,"category_description":"","cat_name":"Managing Events","category_nicename":"advanced-post-manager","category_parent":61},{"term_id":93,"name":"Troubleshooting","slug":"errors","term_group":0,"term_taxonomy_id":93,"taxonomy":"category","description":"","parent":0,"count":51,"filter":"raw","term_order":"0","cat_ID":93,"category_count":51,"category_description":"","cat_name":"Troubleshooting","category_nicename":"errors","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1964207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/64"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1964207"}],"version-history":[{"count":13,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1964207\/revisions"}],"predecessor-version":[{"id":1969188,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1964207\/revisions\/1969188"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1964207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1964207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1964207"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1964207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}