{"id":1039682,"date":"2015-12-11T08:49:39","date_gmt":"2015-12-11T16:49:39","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/"},"modified":"2015-12-15T10:53:16","modified_gmt":"2015-12-15T18:53:16","slug":"wpxml-data-import-producing-error-messages","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/","title":{"rendered":"WPXML Data Import Producing Error Messages"},"content":{"rendered":"<p>Hello,<\/p>\n<p>We are migrating all events from one WordPress instance to another. Everything is at the latest version (WP and EC plugins). Because the WPXML data files are quite large, and because we need a single-command solution to cut over to the new site, we are using wp-cli, which generates WPXML.<\/p>\n<p>On a vanilla instance, with just EC and wp-importer plugins active, and the 2014 theme, when we run the import on a WPXML file that contains only tribe_event, tribe_venue, and tribe_organizer content types, we often see this error:<\/p>\n<p>Warning: Invalid argument supplied for foreach() in \/path\/to\/wordpress\/wp-content\/plugins\/events-calendar-pro\/src\/functions\/template-tags\/general.php on line 64<\/p>\n<p>It shows up during calendar view display after the import. <\/p>\n<p>Looking at the code, it would appear that some of the metadata for recurrence is not coming back as arrays. Perhaps the old and new format of metadata for repeating events has some incompatibility? In any case, the month view on the target site now takes a long to load as well, whereas the source site month view does not.<\/p>\n<p>Apart from the recurrence of this error message, the events (including recurring events) seem to have come across correctly otherwise.<\/p>\n<p>Please could you verify if you have seen this before, and what steps we might take to be able to eliminate the error messages? I would be happy to attach a zipped version of the WPXML file if that helps.<\/p>\n<p>Thanks in advance!<\/p>\n<p>Best wishes,<br \/>\nRobert<\/p>\n","protected":false},"template":"","class_list":["post-1039682","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>WPXML Data Import Producing Error Messages -<\/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\/wpxml-data-import-producing-error-messages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WPXML Data Import Producing Error Messages -\" \/>\n<meta property=\"og:description\" content=\"Hello, We are migrating all events from one WordPress instance to another. Everything is at the latest version (WP and EC plugins). Because the WPXML data files are quite large, and because we need a single-command solution to cut over to the new site, we are using wp-cli, which generates WPXML. On a vanilla instance, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-12-15T18:53:16+00:00\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/\",\"name\":\"WPXML Data Import Producing Error Messages -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-12-11T16:49:39+00:00\",\"dateModified\":\"2015-12-15T18:53:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/#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\":\"WPXML Data Import Producing Error Messages\"}]},{\"@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":"WPXML Data Import Producing Error Messages -","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\/wpxml-data-import-producing-error-messages\/","og_locale":"en_US","og_type":"article","og_title":"WPXML Data Import Producing Error Messages -","og_description":"Hello, We are migrating all events from one WordPress instance to another. Everything is at the latest version (WP and EC plugins). Because the WPXML data files are quite large, and because we need a single-command solution to cut over to the new site, we are using wp-cli, which generates WPXML. On a vanilla instance, [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/","article_modified_time":"2015-12-15T18:53:16+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/","name":"WPXML Data Import Producing Error Messages -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-12-11T16:49:39+00:00","dateModified":"2015-12-15T18:53:16+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wpxml-data-import-producing-error-messages\/#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":"WPXML Data Import Producing Error Messages"}]},{"@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\/1039682","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1039682\/revisions"}],"predecessor-version":[{"id":1040874,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1039682\/revisions\/1040874"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1039682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}