500 Error When Plugin Installs
-
Here is the error I’m receiving from the server:
WordPress database error Unknown column ‘wp_postmeta.meta_value’ in ‘where clause’ for query SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (450) AND wp_posts.post_type = ‘show’ AND ((wp_posts.post_status = ‘publish’))AND STR_TO_DATE( wp_postmeta.meta_value,’%m-%d-%Y’ ) >= CURDATE() ORDER BY wp_posts.menu_order, wp_posts.post_date DESC made by require(‘[removed for privacy]..\public_html\wp-blog-header.php’), require_once(‘[removed for privacy]..\public_html\wp-includes\template-loader.php’), include(‘[removed for privacy]..\public_html\wp-content\themes\speaker\page-templates\one-page.php’), get_template_part, locate_template, load_template, require(‘[removed for privacy]..\public_html\wp-content\themes\speaker\partials\content-section.php’), the_content, apply_filters(‘the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Wolf_Tour_Dates->shortcode, Wolf_Tour_Dates->tour_dates, Wolf_Tour_Dates->future_shows_query, WP_Query->__construct, WP_Query->query, WP_Query->get_posts, get_posts, WP_Query->query, WP_Query->get_posts WordPress database error Unknown column ‘wp_postmeta.meta_value’ in ‘where clause’ for query SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (450) AND wp_posts.post_type = ‘show’ AND ((wp_posts.post_status = ‘publish’))AND STR_TO_DATE( wp_postmeta.meta_value,’%m-%d-%Y’ ) < CURDATE() ORDER BY wp_posts.menu_order, wp_posts.post_date DESC made by require(‘[removed for privacy]..\public_html\wp-blog-header.php’), require_once(‘[removed for privacy]..\public_html\wp-includes\template-loader.php’), include(‘[removed for privacy]..\public_html\wp-content\themes\speaker\page-templates\one-page.php’), get_template_part, locate_template, load_template, require(‘[removed for privacy]..\public_html\wp-content\themes\speaker\partials\content-section.php’), the_content, apply_filters(‘the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Wolf_Tour_Dates->shortcode, Wolf_Tour_Dates->tour_dates, Wolf_Tour_Dates->past_shows_query, WP_Query->__construct, WP_Query->query, WP_Query->get_posts, get_posts, WP_Query->query, WP_Query->get_posts
Thank you for your help in advance
-
Your query appear to be incorrect as a postmeta JOIN is missing. However the plugin change the query ORDER argument and not other components so you should troubleshooting the issue on another place.
I’m not sure exactly what you mean by that.
The topic ‘500 Error When Plugin Installs’ is closed to new replies.