{"id":1069624,"date":"2016-02-08T10:14:08","date_gmt":"2016-02-08T18:14:08","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/"},"modified":"2016-02-08T13:21:28","modified_gmt":"2016-02-08T21:21:28","slug":"strtotime-expects-parameter-1-to-be-string-object-given-in-on-line","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/","title":{"rendered":": strtotime() expects parameter 1 to be string, object given in on line"},"content":{"rendered":"<p>Following up on the discussion here (https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-strtotime-expects-parameter-1-to-be-string-object-given-in\/), this error message is being displayed on all calendar feeds on my site home page. This development site has been posted on two different servers at the following urls:<\/p>\n<p>http:\/\/rexchannel.com\/wp_dev\/index.php<br \/>\nhttp:\/\/053.f42.myftpupload.com\/index.php<\/p>\n<p>The error DOES NOT occur in my local development environment. The complete error message is:<\/p>\n<p><strong>: strtotime() expects parameter 1 to be string, object given in on line<\/p>\n<p>Warning\/home\/content\/p3pnexwpnas04_data01\/66\/2773966\/html\/wp-content\/plugins\/the-events-calendar\/src\/Tribe\/Query.php217<\/strong><\/p>\n<p>Here is an example of the code I used to create the calendar feeds:<\/p>\n<pre><code>&lt;?php\nglobal $post;\n \n\/\/ retrieve the next 5 upcoming events\n$events = tribe_get_events( array(\n\t&#039;start_date&#039; =&gt; new DateTime(),\n\t&#039;tribe_events_cat&#039; =&gt; &#039;services&#039;\n) );\n \nforeach ( $events as $post ) {\n\tsetup_postdata( $post );\n \n\techo &#039;&lt;div class=&quot;event_item&quot;&gt;&#039;;\n\techo &#039;&lt;div class=&quot;event_date&quot;&gt;&#039; . tribe_get_start_date() . &#039;&lt;\/div&gt;&#039;;\n\techo &#039;&lt;h4&gt;&lt;a href=&#039;.get_the_permalink() . &#039;&gt;&#039; . get_the_title() . &#039;&lt;\/a&gt;&lt;\/h4&gt;&#039;;\n\techo &#039;&lt;\/div&gt;&#039;;\n} ?&gt;<\/code><\/pre>\n<p>Updating to the latest version of The Events Calendar has had no effect on the problem.<\/p>\n<p>Thanks in advance for your help!<\/p>\n","protected":false},"template":"","class_list":["post-1069624","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>: strtotime() expects parameter 1 to be string, object given in on line -<\/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\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\": strtotime() expects parameter 1 to be string, object given in on line -\" \/>\n<meta property=\"og:description\" content=\"Following up on the discussion here (https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-strtotime-expects-parameter-1-to-be-string-object-given-in\/), this error message is being displayed on all calendar feeds on my site home page. This development site has been posted on two different servers at the following urls: http:\/\/rexchannel.com\/wp_dev\/index.php http:\/\/053.f42.myftpupload.com\/index.php The error DOES NOT occur in my local development environment. The complete error message is: : strtotime() [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-08T21:21:28+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\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/\",\"name\":\": strtotime() expects parameter 1 to be string, object given in on line -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-02-08T18:14:08+00:00\",\"dateModified\":\"2016-02-08T21:21:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/#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\":\": strtotime() expects parameter 1 to be string, object given in on line\"}]},{\"@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":": strtotime() expects parameter 1 to be string, object given in on line -","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\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/","og_locale":"en_US","og_type":"article","og_title":": strtotime() expects parameter 1 to be string, object given in on line -","og_description":"Following up on the discussion here (https:\/\/theeventscalendar.com\/support\/forums\/topic\/warning-strtotime-expects-parameter-1-to-be-string-object-given-in\/), this error message is being displayed on all calendar feeds on my site home page. This development site has been posted on two different servers at the following urls: http:\/\/rexchannel.com\/wp_dev\/index.php http:\/\/053.f42.myftpupload.com\/index.php The error DOES NOT occur in my local development environment. The complete error message is: : strtotime() [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/","article_modified_time":"2016-02-08T21:21:28+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\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/","name":": strtotime() expects parameter 1 to be string, object given in on line -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-02-08T18:14:08+00:00","dateModified":"2016-02-08T21:21:28+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strtotime-expects-parameter-1-to-be-string-object-given-in-on-line\/#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":": strtotime() expects parameter 1 to be string, object given in on line"}]},{"@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\/1069624","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\/1069624\/revisions"}],"predecessor-version":[{"id":1069635,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1069624\/revisions\/1069635"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1069624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}