Error
-
Hello,
Plugin seems not to be working fine in combination with WPML? My first language (English) is working perfect but I get an error as soon as I select the second language (see below). Any idea what’s going wrong?
Kind regards,
Juulps. I know it’s an older version of the plugin, but my theme doesn’t support the newest version..
Notice: Undefined variable: postmeta_table in /home2/ilovebon/public_html/staging/wp-content/plugins/the-events-calendar/lib/tribe-event-query.class.php on line 948
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 ‘ wp_fmha_posts.post_date) AS post_date FROM wp_fmha_posts LEFT JOIN wp_fmha_ic’ at line 1]
SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_fmha_posts.*, IF (wp_fmha_posts.post_type = ‘tribe_events’, .meta_value, wp_fmha_posts.post_date) AS post_date FROM wp_fmha_posts LEFT JOIN wp_fmha_icl_translations t ON wp_fmha_posts.ID = t.element_id AND t.element_type = CONCAT(‘post_’, wp_fmha_posts.post_type) LEFT JOIN wp_fmha_postmeta as on wp_fmha_posts.ID = .post_id AND .meta_key = ‘_EventStartDate’ WHERE 1=1 AND wp_fmha_posts.post_type IN (‘post’, ‘tribe_events’) AND (wp_fmha_posts.post_status = ‘publish’ OR wp_fmha_posts.post_author = 1 AND wp_fmha_posts.post_status = ‘private’) AND ( ( t.language_code = ‘nl’ AND wp_fmha_posts.post_type IN (‘post’,’page’,’attachment’,’community-pro-sermon’,’community-pro-staff’,’tribe_events’,’tribe_venue’,’tribe_organizer’ ) ) OR wp_fmha_posts.post_type NOT IN (‘post’,’page’,’attachment’,’community-pro-sermon’,’community-pro-staff’,’tribe_events’,’tribe_venue’,’tribe_organizer’ ) ) ORDER BY post_date DESC LIMIT 0, 10
The topic ‘Error’ is closed to new replies.