{"id":63643,"date":"2013-08-29T09:57:26","date_gmt":"2013-08-29T16:57:26","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/search-bar-malfunction\/"},"modified":"2013-08-29T09:57:26","modified_gmt":"2013-08-29T16:57:26","slug":"search-bar-malfunction","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/","title":{"rendered":"Search Bar malfunction"},"content":{"rendered":"<p>When I type in text (any text) into the search bar under the date area, then click search i get the following error.<br \/>\nWarning: mktime() expects parameter 6 to be long, string given in \/Users\/craiggrella\/Documents\/Websites\/www.afrj.dev\/wp-content\/plugins\/the-events-calendar\/lib\/template-classes\/month.php on line 215<\/p>\n<p>I&#8217;ve read your forum posts located here:<br \/>\nhttps:\/\/theeventscalendar.com\/?s=Warning%3A+mktime%28%29+expects+parameter+6+to+be+long%2C+string+given<\/p>\n<p>none of which solve the issue.<\/p>\n<p>Now, i&#8217;ll admit that most users will click inside the date search area and then click a date\/month, which does clear up the search issue.<\/p>\n<p>But your field does accept custom text other than date format, and that&#8217;s where the issue comes in. Any text formatted other than for a date like 2013-09 will trigger this error.<br \/>\nPlus, once that error has been triggered, even clearing the search fields and entering the correct date by clicking a month continues to trigger that error.<\/p>\n<p>Only by resetting the page url to domain.com\/events does it reset completely.<\/p>\n<p>Just a thought, but is there any data sanitization that occurs on that input? if not, maybe consider that for a future version or remove input altogether, other than for inputting date via clicker.<\/p>\n","protected":false},"template":"","class_list":["post-63643","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>Search Bar malfunction -<\/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\/search-bar-malfunction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Search Bar malfunction -\" \/>\n<meta property=\"og:description\" content=\"When I type in text (any text) into the search bar under the date area, then click search i get the following error. Warning: mktime() expects parameter 6 to be long, string given in \/Users\/craiggrella\/Documents\/Websites\/www.afrj.dev\/wp-content\/plugins\/the-events-calendar\/lib\/template-classes\/month.php on line 215 I&#8217;ve read your forum posts located here: https:\/\/theeventscalendar.com\/?s=Warning%3A+mktime%28%29+expects+parameter+6+to+be+long%2C+string+given none of which solve the issue. Now, i&#8217;ll admit [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/\" \/>\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\/search-bar-malfunction\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/\",\"name\":\"Search Bar malfunction -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-08-29T16:57:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/#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\":\"Search Bar malfunction\"}]},{\"@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":"Search Bar malfunction -","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\/search-bar-malfunction\/","og_locale":"en_US","og_type":"article","og_title":"Search Bar malfunction -","og_description":"When I type in text (any text) into the search bar under the date area, then click search i get the following error. Warning: mktime() expects parameter 6 to be long, string given in \/Users\/craiggrella\/Documents\/Websites\/www.afrj.dev\/wp-content\/plugins\/the-events-calendar\/lib\/template-classes\/month.php on line 215 I&#8217;ve read your forum posts located here: https:\/\/theeventscalendar.com\/?s=Warning%3A+mktime%28%29+expects+parameter+6+to+be+long%2C+string+given none of which solve the issue. Now, i&#8217;ll admit [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/","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\/search-bar-malfunction\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/","name":"Search Bar malfunction -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-08-29T16:57:26+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/search-bar-malfunction\/#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":"Search Bar malfunction"}]},{"@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\/63643","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\/63643\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=63643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}