March 31, 2018 at 2:27 pm
I’m getting this over and over in my WP error log:
[31-Mar-2018 20:15:35 UTC] WordPress database error Lost connection to MySQL server during query for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) WHERE 1=1 AND (
( wp_postmeta.meta_key = ‘_visibility’ AND wp_postmeta.meta_value IN (‘visible’,’catalog’) )
AND
( mt1.meta_key = ‘_featured’ AND mt1.meta_value = ‘yes’ )
) AND wp_posts.post_type = ‘product’ AND ((wp_posts.post_status = ‘publish’)) GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order ASC LIMIT 0, 18 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/virtue_premium/base.php’), include(‘/themes/virtue_premium/front-page.php’), get_template_part, locate_template, load_template, require(‘/themes/virtue_premium/templates/home/product-carousel.php’), virtue_build_post_content_carousel, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
It looks like the theme is doing a query that is being used to check for changes to the homepage.Please lwt me know if I am wrong about this.
My question is, I’d like to know how to get this query to stop running temporarily so that I can troubleshoot this problem. Can I comment out something to get this query not to run temporarily?
Thanks!
Mary Lou