{"id":1231292,"date":"2017-02-08T07:21:19","date_gmt":"2017-02-08T15:21:19","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/"},"modified":"2017-02-08T07:21:19","modified_gmt":"2017-02-08T15:21:19","slug":"warning-text-on-recurring-events","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/","title":{"rendered":"Warning Text on Recurring Events"},"content":{"rendered":"<p>Hello,<\/p>\n<p>Since the last update there are now warning statement son each of my recurring events pages. They do not seem to be present on single events.<\/p>\n<p>Here&#8217;s the warning message:<\/p>\n<p>Warning: Invalid argument supplied for foreach() in \/home\/harvmrgi\/public_html\/hbc\/wp-content\/plugins\/events-calendar-pro\/src\/Tribe\/Recurrence\/Meta.php on line 1376<\/p>\n<p>Here&#8217;s an example from the site: https:\/\/hbcwr.ca\/event\/harvest-essentials-june16-copy-copy-copy\/2017-02-12\/ <\/p>\n<p>I looked up line 1376 on Meta.php and found the following foreach loop:<\/p>\n<p>\tforeach ( $rule[&#8216;custom&#8217;][&#8216;week&#8217;][&#8216;day&#8217;] as $day ) {<br \/>\n\t\t\t\t$weekdays[] = $date_strings[&#8216;weekdays&#8217;][ $day &#8211; 1 ];<br \/>\n\t\t\t}<\/p>\n<p>I also noticed that a couple other users have had the same problem with recurring events and an issue with the code in Meta.php:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"7jDVImaLv6\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-appears-on-some-of-my-calendar-posts\/\">warning text appears on some of my calendar posts<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;warning text appears on some of my calendar posts&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-appears-on-some-of-my-calendar-posts\/embed\/#?secret=VV2rAW714y#?secret=7jDVImaLv6\" data-secret=\"7jDVImaLv6\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"IMIxCkce4a\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-in-recurring-events-invalid-arguments\/\">Errors in recurring events &#8211; invalid arguments<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Errors in recurring events &#8211; invalid arguments&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-in-recurring-events-invalid-arguments\/embed\/#?secret=LAu0IqsAIA#?secret=IMIxCkce4a\" data-secret=\"IMIxCkce4a\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>I&#8217;m wondering if you have figured out what is causing this error?<\/p>\n<p>Thanks,<\/p>\n<p>WIll<\/p>\n","protected":false},"template":"","class_list":["post-1231292","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>Warning Text on Recurring Events -<\/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\/warning-text-on-recurring-events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Warning Text on Recurring Events -\" \/>\n<meta property=\"og:description\" content=\"Hello, Since the last update there are now warning statement son each of my recurring events pages. They do not seem to be present on single events. Here&#8217;s the warning message: Warning: Invalid argument supplied for foreach() in \/home\/harvmrgi\/public_html\/hbc\/wp-content\/plugins\/events-calendar-pro\/src\/Tribe\/Recurrence\/Meta.php on line 1376 Here&#8217;s an example from the site: https:\/\/hbcwr.ca\/event\/harvest-essentials-june16-copy-copy-copy\/2017-02-12\/ I looked up line 1376 on [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/\" \/>\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\/warning-text-on-recurring-events\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/\",\"name\":\"Warning Text on Recurring Events -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-02-08T15:21:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/#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\":\"Warning Text on Recurring Events\"}]},{\"@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":"Warning Text on Recurring Events -","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\/warning-text-on-recurring-events\/","og_locale":"en_US","og_type":"article","og_title":"Warning Text on Recurring Events -","og_description":"Hello, Since the last update there are now warning statement son each of my recurring events pages. They do not seem to be present on single events. Here&#8217;s the warning message: Warning: Invalid argument supplied for foreach() in \/home\/harvmrgi\/public_html\/hbc\/wp-content\/plugins\/events-calendar-pro\/src\/Tribe\/Recurrence\/Meta.php on line 1376 Here&#8217;s an example from the site: https:\/\/hbcwr.ca\/event\/harvest-essentials-june16-copy-copy-copy\/2017-02-12\/ I looked up line 1376 on [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/","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\/warning-text-on-recurring-events\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/","name":"Warning Text on Recurring Events -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-02-08T15:21:19+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-text-on-recurring-events\/#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":"Warning Text on Recurring Events"}]},{"@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\/1231292","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\/1231292\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1231292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}