{"id":963874,"date":"2015-05-20T08:04:22","date_gmt":"2015-05-20T15:04:22","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/"},"modified":"2015-06-29T18:00:06","modified_gmt":"2015-06-30T01:00:06","slug":"undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/","title":{"rendered":"Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948"},"content":{"rendered":"<p>Hi support,<\/p>\n<p>I am getting the following error when viewing event tags on my dev site http:\/\/www.aardkloplabs.co.za\/en\/tag\/festival-terrain-concerts\/<\/p>\n<p>I have tried removing the themes customisations but had no effect.<\/p>\n<p>I disabled all plugins and found that the error exists when WPML plugins are activated<\/p>\n<p>WPML Multilingual CMS<br \/>\nWPML String Translation<br \/>\nWPML Translation Management<\/p>\n<p>Please advise.<br \/>\nThanks<br \/>\nRyan<\/p>\n<p>Notice: Undefined variable: postmeta_table in \/home\/aardklzl\/public_html\/wp-content\/plugins\/the-events-calendar\/lib\/tribe-event-query.class.php on line 948<\/p>\n<p>WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216; akwp_posts.post_date) AS post_date, tribe_event_end_date.meta_value as EventEnd&#8217; at line 1]<br \/>\nSELECT SQL_CALC_FOUND_ROWS DISTINCT akwp_posts.*, IF (akwp_posts.post_type = &#8216;tribe_events&#8217;, .meta_value, akwp_posts.post_date) AS post_date, tribe_event_end_date.meta_value as EventEndDate FROM akwp_posts INNER JOIN akwp_term_relationships ON (akwp_posts.ID = akwp_term_relationships.object_id) JOIN akwp_icl_translations t ON akwp_posts.ID = t.element_id AND t.element_type IN (&#8216;post_post&#8217;,&#8217;post_tribe_events&#8217;) JOIN akwp_icl_languages l ON t.language_code=l.code AND l.active=1 LEFT JOIN akwp_postmeta as on akwp_posts.ID = .post_id AND .meta_key = &#8216;_EventStartDate&#8217; LEFT JOIN akwp_postmeta as tribe_event_end_date ON ( akwp_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = &#8216;_EventEndDate&#8217; ) WHERE 1=1 AND ( akwp_term_relationships.term_taxonomy_id IN (19) ) AND akwp_posts.post_type IN (&#8216;post&#8217;, &#8216;tribe_events&#8217;) AND (akwp_posts.post_status = &#8216;publish&#8217; OR akwp_posts.post_author = 2 AND akwp_posts.post_status = &#8216;private&#8217;) AND t.language_code=&#8217;en&#8217; GROUP BY akwp_posts.ID ORDER BY post_date DESC LIMIT 0, 10<\/p>\n","protected":false},"template":"","class_list":["post-963874","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>Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948 -<\/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\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948 -\" \/>\n<meta property=\"og:description\" content=\"Hi support, I am getting the following error when viewing event tags on my dev site http:\/\/www.aardkloplabs.co.za\/en\/tag\/festival-terrain-concerts\/ I have tried removing the themes customisations but had no effect. I disabled all plugins and found that the error exists when WPML plugins are activated WPML Multilingual CMS WPML String Translation WPML Translation Management Please advise. Thanks [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-30T01:00:06+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=\"2 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\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/\",\"name\":\"Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948 -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-05-20T15:04:22+00:00\",\"dateModified\":\"2015-06-30T01:00:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/#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\":\"Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948\"}]},{\"@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":"Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948 -","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\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/","og_locale":"en_US","og_type":"article","og_title":"Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948 -","og_description":"Hi support, I am getting the following error when viewing event tags on my dev site http:\/\/www.aardkloplabs.co.za\/en\/tag\/festival-terrain-concerts\/ I have tried removing the themes customisations but had no effect. I disabled all plugins and found that the error exists when WPML plugins are activated WPML Multilingual CMS WPML String Translation WPML Translation Management Please advise. Thanks [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/","article_modified_time":"2015-06-30T01:00:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/","name":"Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948 -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-05-20T15:04:22+00:00","dateModified":"2015-06-30T01:00:06+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/undefined-variable-postmeta_table-in-tribe-event-query-class-php-on-line-948\/#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":"Undefined variable postmeta_table in \/tribe-event-query.class.php on line 948"}]},{"@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\/963874","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\/963874\/revisions"}],"predecessor-version":[{"id":964002,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/963874\/revisions\/964002"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=963874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}