Title: Recurring database errors
Last modified: June 5, 2018

---

# Recurring database errors

 *  [bedazelive](https://wordpress.org/support/users/bedazelive/)
 * (@bedazelive)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/recurring-database-errors/)
 * Hi there!
 * I’ve having the following database errors since May but with no significant impact
   on my site performance… until my site started loosing speed on June 4th. There
   are 3 types of database errors and all of them mention the olsen light theme 
   and either the header or the sidebar… I don’t really know if these errors are
   completely related to olsen light or some of them have an issue with the WPSEO
   as well… can you help me take a look at them? I attach the error log below and
   I separated the type of errors by a break. As I mentioned before, I think the
   most impactful ones are the ones after June 3rd. Thank you!
 * [23-May-2018 00:50:44 UTC] WordPress database error Lost connection to MySQL 
   server during query for query SELECT post_id, meta_key, meta_value FROM wp_maws_postmeta
   WHERE post_id IN (9325) ORDER BY meta_id ASC made by require(‘wp-blog-header.
   php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/olsen-
   light/single.php’), get_header, locate_template, load_template, require_once(‘/
   themes/olsen-light/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action,
   WP_Hook->apply_filters, call_user_func_array, WPSEO_Frontend->head, do_action(‘
   wpseo_head’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array,
   WPSEO_Twitter::get_instance, WPSEO_Twitter->__construct, WPSEO_Twitter->twitter,
   WPSEO_Twitter->type, WPSEO_Twitter->determine_card_type, get_post_gallery_images,
   get_post_gallery, get_post_galleries, do_shortcode_tag, call_user_func, gallery_shortcode,
   wp_get_attachment_link, get_attachment_link, get_permalink, apply_filters(‘post_link’),
   WP_Hook->apply_filters, call_user_func_array, CWS_PageLinksTo->link, CWS_PageLinksTo-
   >get_link, CWS_PageLinksTo->get_post_meta, get_post_meta, get_metadata, update_meta_cache
   [
   28-May-2018 01:05:47 UTC] WordPress database error Lost connection to MySQL server
   during query for query SELECT post_id, meta_key, meta_value FROM wp_maws_postmeta
   WHERE post_id IN (18490,19133,19134,19135,19136) ORDER BY meta_id ASC made by
   require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’),
   include(‘/themes/olsen-light/single.php’), get_header, locate_template, load_template,
   require_once(‘/themes/olsen-light/header.php’), wp_head, do_action(‘wp_head’),
   WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Frontend-
   >head, do_action(‘wpseo_head’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array,
   WPSEO_Twitter::get_instance, WPSEO_Twitter->__construct, WPSEO_Twitter->twitter,
   WPSEO_Twitter->type, WPSEO_Twitter->determine_card_type, get_post_gallery_images,
   get_post_gallery, get_post_galleries, do_shortcode_tag, call_user_func, gallery_shortcode,
   get_posts, WP_Query->query, WP_Query->get_posts, _prime_post_caches, update_post_caches,
   update_postmeta_cache, update_meta_cache [03-Jun-2018 20:11:37 UTC] WordPress
   database error Lost connection to MySQL server during query for query SELECT 
   post_id, meta_key, meta_value FROM wp_maws_postmeta WHERE post_id IN (7495,7496,7497,7498,7499,7500)
   ORDER BY meta_id ASC made by require(‘wp-blog-header.php’), require_once(‘wp-
   includes/template-loader.php’), include(‘/themes/olsen-light/single.php’), get_header,
   locate_template, load_template, require_once(‘/themes/olsen-light/header.php’),
   wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array,
   WPSEO_Frontend->head, do_action(‘wpseo_head’), WP_Hook->do_action, WP_Hook->apply_filters,
   call_user_func_array, WPSEO_Twitter::get_instance, WPSEO_Twitter->__construct,
   WPSEO_Twitter->twitter, WPSEO_Twitter->type, WPSEO_Twitter->determine_card_type,
   get_post_gallery_images, get_post_gallery, get_post_galleries, do_shortcode_tag,
   call_user_func, gallery_shortcode, get_posts, WP_Query->query, WP_Query->get_posts,
   _prime_post_caches, update_post_caches, update_postmeta_cache, update_meta_cache[
   05-Jun-2018 07:11:35 UTC] WordPress database error Lost connection to MySQL server
   during query for query SELECT post_id, meta_key, meta_value FROM wp_maws_postmeta
   WHERE post_id IN (3826,3827,3829,20784) ORDER BY meta_id ASC made by require(‘
   wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/
   themes/olsen-light/single.php’), get_header, locate_template, load_template, 
   require_once(‘/themes/olsen-light/header.php’), wp_head, do_action(‘wp_head’),
   WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Frontend-
   >head, do_action(‘wpseo_head’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array,
   WPSEO_Twitter::get_instance, WPSEO_Twitter->__construct, WPSEO_Twitter->twitter,
   WPSEO_Twitter->type, WPSEO_Twitter->determine_card_type, get_post_gallery_images,
   get_post_gallery, get_post_galleries, do_shortcode_tag, call_user_func, gallery_shortcode,
   get_posts, WP_Query->query, WP_Query->get_posts, _prime_post_caches, update_post_caches,
   update_postmeta_cache, update_meta_cache
 * [05-Jun-2018 07:11:35 UTC] WordPress database error Lost connection to MySQL 
   server during query for query SELECT wp_maws_posts.* FROM wp_maws_posts WHERE
   ID IN (3826,20784,3827,3829) made by require(‘wp-blog-header.php’), require_once(‘
   wp-includes/template-loader.php’), include(‘/themes/olsen-light/single.php’),
   get_header, locate_template, load_template, require_once(‘/themes/olsen-light/
   header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters,
   call_user_func_array, WPSEO_Frontend->head, do_action(‘wpseo_head’), WP_Hook-
   >do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Twitter::get_instance,
   WPSEO_Twitter->__construct, WPSEO_Twitter->twitter, WPSEO_Twitter->type, WPSEO_Twitter-
   >determine_card_type, get_post_gallery_images, get_post_gallery, get_post_galleries,
   do_shortcode_tag, call_user_func, gallery_shortcode, get_posts, WP_Query->query,
   WP_Query->get_posts, _prime_post_caches
 * [05-Jun-2018 07:12:08 UTC] WordPress database error Lost connection to MySQL 
   server during query for query SELECT * FROM wp_maws_posts WHERE ID = 3826 LIMIT
   1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.
   php’), include(‘/themes/olsen-light/single.php’), get_header, locate_template,
   load_template, require_once(‘/themes/olsen-light/header.php’), wp_head, do_action(‘
   wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, 
   WPSEO_Frontend->head, do_action(‘wpseo_head’), WP_Hook->do_action, WP_Hook->apply_filters,
   call_user_func_array, WPSEO_Twitter::get_instance, WPSEO_Twitter->__construct,
   WPSEO_Twitter->twitter, WPSEO_Twitter->type, WPSEO_Twitter->determine_card_type,
   get_post_gallery_images, get_post_gallery, get_post_galleries, do_shortcode_tag,
   call_user_func, gallery_shortcode, get_posts, WP_Query->query, WP_Query->get_posts,
   array_map, get_post, WP_Post::get_instance
    [05-Jun-2018 15:01:22 UTC] WordPress
   database error Lost connection to MySQL server during query for query SELECT *
   FROM wp_maws_posts WHERE ID = 6316 LIMIT 1 made by require(‘wp-blog-header.php’),
   require_once(‘wp-includes/template-loader.php’), include(‘/themes/olsen-light/
   single.php’), get_header, locate_template, load_template, require_once(‘/themes/
   olsen-light/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, 
   WP_Hook->apply_filters, call_user_func_array, WPSEO_Frontend->head, do_action(‘
   wpseo_head’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array,
   WPSEO_Twitter::get_instance, WPSEO_Twitter->__construct, WPSEO_Twitter->twitter,
   WPSEO_Twitter->type, WPSEO_Twitter->determine_card_type, get_post_gallery_images,
   get_post_gallery, get_post_galleries, do_shortcode_tag, call_user_func, gallery_shortcode,
   wp_get_attachment_link, get_attachment_link, get_post, WP_Post::get_instance
 * [03-Jun-2018 16:56:01 UTC] WordPress database error Lost connection to MySQL 
   server during query for query SELECT option_value FROM wp_maws_options WHERE 
   option_name = ‘_transient_timeout_sbi_header_1417335838’ LIMIT 1 made by require(‘
   wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/
   themes/olsen-light/index.php’), get_sidebar, locate_template, load_template, 
   require_once(‘/themes/olsen-light/sidebar.php’), dynamic_sidebar, call_user_func_array,
   WP_Widget->display_callback, WP_Widget_Text->widget, apply_filters(‘widget_text_content’),
   WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback,
   do_shortcode_tag, call_user_func, display_instagram, get_option
    [04-Jun-2018
   07:58:39 UTC] WordPress database error Lost connection to MySQL server during
   query for query SELECT option_value FROM wp_maws_options WHERE option_name = ‘
   _transient_timeout_sbi_1417335838’ LIMIT 1 made by require(‘wp-blog-header.php’),
   require_once(‘wp-includes/template-loader.php’), include(‘/themes/olsen-light/
   index.php’), get_sidebar, locate_template, load_template, require_once(‘/themes/
   olsen-light/sidebar.php’), dynamic_sidebar, call_user_func_array, WP_Widget->
   display_callback, WP_Widget_Text->widget, apply_filters(‘widget_text_content’),
   WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback,
   do_shortcode_tag, call_user_func, display_instagram, get_option [04-Jun-2018 
   23:26:18 UTC] WordPress database error Lost connection to MySQL server during
   query for query SELECT option_value FROM wp_maws_options WHERE option_name = ‘
   _transient_timeout_sbi_1417335838’ LIMIT 1 made by require(‘wp-blog-header.php’),
   require_once(‘wp-includes/template-loader.php’), include(‘/themes/olsen-light/
   index.php’), get_sidebar, locate_template, load_template, require_once(‘/themes/
   olsen-light/sidebar.php’), dynamic_sidebar, call_user_func_array, WP_Widget->
   display_callback, WP_Widget_Text->widget, apply_filters(‘widget_text_content’),
   WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback,
   do_shortcode_tag, call_user_func, display_instagram, get_option [04-Jun-2018 
   23:26:18 UTC] WordPress database error Lost connection to MySQL server during
   query for query SELECT option_value FROM wp_maws_options WHERE option_name = ‘
   can_compress_scripts’ LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘
   wp-includes/template-loader.php’), include(‘/themes/olsen-light/single.php’),
   get_header, locate_template, load_template, require_once(‘/themes/olsen-light/
   header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters,
   call_user_func_array, wp_print_head_scripts, print_head_scripts, script_concat_settings,
   get_site_option, get_network_option, get_option [04-Jun-2018 23:26:18 UTC] WordPress
   database error Lost connection to MySQL server during query for query SELECT 
   option_value FROM wp_maws_options WHERE option_name = ‘can_compress_scripts’ 
   LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-
   loader.php’), include(‘/themes/olsen-light/single.php’), get_header, locate_template,
   load_template, require_once(‘/themes/olsen-light/header.php’), wp_head, do_action(‘
   wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, 
   wp_print_head_scripts, print_head_scripts, script_concat_settings, get_site_option,
   get_network_option, get_option [05-Jun-2018 07:12:08 UTC] WordPress database 
   error Lost connection to MySQL server during query for query SELECT option_value
   FROM wp_maws_options WHERE option_name = ‘can_compress_scripts’ LIMIT 1 made 
   by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’),
   include(‘/themes/olsen-light/index.php’), get_header, locate_template, load_template,
   require_once(‘/themes/olsen-light/header.php’), wp_head, do_action(‘wp_head’),
   WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_print_head_scripts,
   print_head_scripts, script_concat_settings, get_site_option, get_network_option,
   get_option
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frecurring-database-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Fotis](https://wordpress.org/support/users/markwaregr/)
 * (@markwaregr)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/recurring-database-errors/#post-10366690)
 * Hi there,
    these are not theme nor plugin related errors, but a defect in your
   Servers mySQL not being able to respond (probably because of a lot traffic?).
   Have you contacted your hosting provider for more information on this?

Viewing 1 replies (of 1 total)

The topic ‘Recurring database errors’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/olsen-light/1.7.1/screenshot.png)
 * Olsen Light
 * [Support Threads](https://wordpress.org/support/theme/olsen-light/)
 * [Active Topics](https://wordpress.org/support/theme/olsen-light/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/olsen-light/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/olsen-light/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Fotis](https://wordpress.org/support/users/markwaregr/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/recurring-database-errors/#post-10366690)
 * Status: not resolved