WordPress.org

Ready to get started?Download WordPress

Forums

Intermittent "Error establishing a database connection" error (2 posts)

  1. nickharambee
    Member
    Posted 2 years ago #

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin ]

    Hi,

    I am experiencing an intermittent "Error establishing a database connection" when I try to navigate pages on my site. All has been working fine for the past weeks until today.

    I am at a loss as to what to try to get this working and would be grateful for any help. As you can see from a recent sample of the errors in my error_log these errors tend to be of the form:

    You have an error in your SQL syntax...
    Lost connection to MySQL server...
    MySQL server has gone away...

    Nick

    [02-Jul-2012 21:33:26] 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 '' at line 1 for query SELECT <code>status</code> FROM wp_bp_gtm_projects WHERE <code>id</code> =  made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, bp_screens, do_action('bp_screens'), call_user_func_array, BP_Group_Extension->_display_hook, bp_core_load_template, load_template, require_once('/plugins/buddypress/bp-themes/bp-default/groups/single/plugins.php'), do_action('bp_template_content'), call_user_func_array, BP_GTM->display, BP_GTM->bp_gtm_save_g_new_task, bp_gtm_get_project_status
    [02-Jul-2012 21:40:20] 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 '' at line 1 for query SELECT <code>status</code> FROM wp_bp_gtm_projects WHERE <code>id</code> =  made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, bp_screens, do_action('bp_screens'), call_user_func_array, BP_Group_Extension->_display_hook, bp_core_load_template, load_template, require_once('/plugins/buddypress/bp-themes/bp-default/groups/single/plugins.php'), do_action('bp_template_content'), call_user_func_array, BP_GTM->display, BP_GTM->bp_gtm_save_g_new_task, bp_gtm_get_project_status
    [02-Jul-2012 21:40:47] 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 '' at line 1 for query SELECT <code>status</code> FROM wp_bp_gtm_projects WHERE <code>id</code> =  made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, bp_screens, do_action('bp_screens'), call_user_func_array, BP_Group_Extension->_display_hook, bp_core_load_template, load_template, require_once('/plugins/buddypress/bp-themes/bp-default/groups/single/plugins.php'), do_action('bp_template_content'), call_user_func_array, BP_GTM->display, BP_GTM->bp_gtm_edit_g_task, bp_gtm_get_project_status
    [02-Jul-2012 21:40:47] PHP Warning:  Invalid argument supplied for foreach() in /home/nickputm/public_html/soteriabrighton.co.uk/wp-content/plugins/bp-gtm-system/bp-gtm-core.php on line 841
    [02-Jul-2012 21:43:09] 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 '' at line 1 for query SELECT <code>status</code> FROM wp_bp_gtm_projects WHERE <code>id</code> =  made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, bp_screens, do_action('bp_screens'), call_user_func_array, BP_Group_Extension->_display_hook, bp_core_load_template, load_template, require_once('/plugins/buddypress/bp-themes/bp-default/groups/single/plugins.php'), do_action('bp_template_content'), call_user_func_array, BP_GTM->display, BP_GTM->bp_gtm_save_g_new_task, bp_gtm_get_project_status
    [02-Jul-2012 22:05:13] WordPress database error Lost connection to MySQL server during query for query SELECT topic_id FROM wp_bb_topics WHERE topic_slug = 'how-to-move-documents-from-the-old-wiki-to-the-new-website' made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, bp_screens, do_action('bp_screens'), call_user_func_array, groups_screen_group_forum, bp_core_load_template, load_template, require_once('/plugins/buddypress/bp-themes/bp-default/groups/single/home.php'), get_header, locate_template, load_template, require_once('/themes/bp-soteria/header.php'), wp_title, apply_filters('wp_title'), call_user_func_array, bp_modify_page_title, apply_filters('bp_modify_page_title'), call_user_func_array, bp_forums_add_forum_topic_to_page_title, bp_has_forum_topic_posts, bp_forums_get_topic_id_from_slug, bb_get_id_from_slug
    [02-Jul-2012 22:05:13] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = '1' made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, bp_screens, do_action('bp_screens'), call_user_func_array, groups_screen_group_forum, bp_core_load_template, load_template, require_once('/plugins/buddypress/bp-themes/bp-default/groups/single/home.php'), get_header, locate_template, load_template, require_once('/themes/bp-soteria/header.php'), wp_head, do_action('wp_head'), call_user_func_array, bp_core_record_activity, bp_core_is_user_spammer, get_userdata, get_user_by, WP_User::get_data_by
  2. govpatel
    Member
    Posted 2 years ago #

    You will need to check with your host as there may be problem with database server.

Topic Closed

This topic has been closed to new replies.

About this Topic