{"id":31089,"date":"2013-01-18T03:25:03","date_gmt":"2013-01-18T11:25:03","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/"},"modified":"2013-01-18T03:25:03","modified_gmt":"2013-01-18T11:25:03","slug":"tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/","title":{"rendered":"Tainted data, glitches in admin pages and public templates, immense confusion!"},"content":{"rendered":"<p>Hello,<\/p>\n<p>Something has completely tainted all of my events calendar data not only on my live site, but on my dev site and local copy of that same site running the same plugin versions, my dev and local copies each containing various snapshots of the live data. This is really, really bizarre&#8230;<\/p>\n<p>Basically, it seems like my data on all three sites (specifically, the postmeta data) has completely corrupted itself. On one WPMU site it is showing all events as reoccurring on the Events index page when they aren&#8217;t, on each of these the Start Date sorting does not work. I can&#8217;t make any sense of what is going on in the backend GUI. On the front end the mini calendar (http:\/\/canadianbrass.com) is showing different dates for this month than the full events page (http:\/\/canadianbrass.com\/events). I&#8217;ve also gotten infinite loops, and a ton of duplicate events appearing on the same day, although I managed to do something to make this problem stop. Given that this makes zero sense to me and no doubt to you either, I decided to trace this further by looking at the actual post and postmeta data&#8230;<\/p>\n<p>Are you prepared for more confusion?<\/p>\n<p>This event was created in April 2012. From my wp_posts table:<\/p>\n<p>*************************** 1. row ***************************<br \/>\n                   ID: 7979<br \/>\n          post_author: 1<br \/>\n            post_date: 2012-04-25 13:18:26<br \/>\n        post_date_gmt: 2012-04-25 17:18:26<br \/>\n         post_content: Canadian Brass Masterclass\/Lecture in Regina, SK &#8211; TBD<br \/>\n           post_title: Canadian Brass Masterclass\/Lecture in Regina, SK<br \/>\n         post_excerpt:<br \/>\n          post_status: publish<br \/>\n       comment_status: closed<br \/>\n          ping_status: closed<br \/>\n        post_password:<br \/>\n            post_name: canadian-brass-masterclasslecture-in-regina-sk<br \/>\n              to_ping:<br \/>\n               pinged:<br \/>\n        post_modified: 2012-04-25 13:18:26<br \/>\n    post_modified_gmt: 2012-04-25 17:18:26<br \/>\npost_content_filtered:<br \/>\n          post_parent: 0<br \/>\n                 guid: http:\/\/www.canadianbrass.com\/?post_type=tribe_events&#038;p=4979<br \/>\n           menu_order: 0<br \/>\n            post_type: tribe_events<br \/>\n       post_mime_type:<br \/>\n        comment_count: 0<\/p>\n<p>It is showing up as Jan 11, 2013 on both mini calendar and full calendar listing. The postmeta data:<\/p>\n<p>mysql&gt; SELECT * FROM `wp_3_postmeta` WHERE meta_key like &#8216;%EventStart%&#8217; and post_id = &#8216;7979&#8217;\\G<br \/>\n*************************** 1. row ***************************<br \/>\n   meta_id: 1885<br \/>\n   post_id: 7979<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-11 14:00:00<\/p>\n<p>So, the postmeta data appears to be what is corrupt here. I have no idea what set the meta_value to this incorrect date. I mentioned that the mini calendar and full calendar listing were showing different results, so:<\/p>\n<p>mysql&gt; SELECT * FROM `wp_3_postmeta` WHERE meta_key like &#8216;%EventStart%&#8217; and meta_value like &#8216;2013-01-%&#8217;\\G<br \/>\n*************************** 1. row ***************************<br \/>\n   meta_id: 1870<br \/>\n   post_id: 7976<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-09 20:00:00<br \/>\n*************************** 2. row ***************************<br \/>\n   meta_id: 1885<br \/>\n   post_id: 7979<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-11 14:00:00<br \/>\n*************************** 3. row ***************************<br \/>\n   meta_id: 1903<br \/>\n   post_id: 7980<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-12 20:00:00<br \/>\n*************************** 4. row ***************************<br \/>\n   meta_id: 1912<br \/>\n   post_id: 7983<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-22 20:00:00<br \/>\n*************************** 5. row ***************************<br \/>\n   meta_id: 1926<br \/>\n   post_id: 7987<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-13 19:30:00<br \/>\n*************************** 6. row ***************************<br \/>\n   meta_id: 1941<br \/>\n   post_id: 7990<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-26 20:00:00<br \/>\n*************************** 7. row ***************************<br \/>\n   meta_id: 2099<br \/>\n   post_id: 7994<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-27 20:00:00<br \/>\n*************************** 8. row ***************************<br \/>\n   meta_id: 3284<br \/>\n   post_id: 8394<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-25 19:30:00<br \/>\n*************************** 9. row ***************************<br \/>\n   meta_id: 3303<br \/>\n   post_id: 8396<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-24 00:00:00<br \/>\n*************************** 10. row ***************************<br \/>\n   meta_id: 4063<br \/>\n   post_id: 8483<br \/>\n  meta_key: _EventStartDate<br \/>\nmeta_value: 2013-01-15 00:00:00<br \/>\n10 rows in set (0.00 sec)<\/p>\n<p>So, while I have no idea what set all of those bogus meta_value dates, what is displaying in the mini calendar is &#8220;right&#8221;, at least according to the data I have. Yet, the full calendar is only showing two of these events.<\/p>\n<p>In short, I have absolutely no idea what could have corrupt all of this postmeta data, and why the current mini and full calendar views disagree with each other. I also have no idea why the admin pages are completely messed up on all three of these sites. <\/p>\n<p>It seems like there are a number of possible causes here (e.g. bad SQL query in the plugin, template glitches) but if this was the case I&#8217;m sure this problem would be pretty widespread. Again, this has occurred on 3 versions of this site containing different snapshots of data, and everything seemed fine until earlier this month when everything just sort of exploded.<\/p>\n<p>Please help!<\/p>\n","protected":false},"template":"","class_list":["post-31089","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tainted data, glitches in admin pages and public templates, immense confusion! -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tainted data, glitches in admin pages and public templates, immense confusion! -\" \/>\n<meta property=\"og:description\" content=\"Hello, Something has completely tainted all of my events calendar data not only on my live site, but on my dev site and local copy of that same site running the same plugin versions, my dev and local copies each containing various snapshots of the live data. This is really, really bizarre&#8230; Basically, it seems [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/\",\"name\":\"Tainted data, glitches in admin pages and public templates, immense confusion! -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-01-18T11:25:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Tainted data, glitches in admin pages and public templates, immense confusion!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tainted data, glitches in admin pages and public templates, immense confusion! -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/","og_locale":"en_US","og_type":"article","og_title":"Tainted data, glitches in admin pages and public templates, immense confusion! -","og_description":"Hello, Something has completely tainted all of my events calendar data not only on my live site, but on my dev site and local copy of that same site running the same plugin versions, my dev and local copies each containing various snapshots of the live data. This is really, really bizarre&#8230; Basically, it seems [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/","name":"Tainted data, glitches in admin pages and public templates, immense confusion! -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-01-18T11:25:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tainted-data-glitches-in-admin-pages-and-public-templates-immense-confusion\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Tainted data, glitches in admin pages and public templates, immense confusion!"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/31089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/31089\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=31089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}