Title: Yoast plugin &#8211; Error establishing a database connection
Last modified: August 19, 2020

---

# Yoast plugin – Error establishing a database connection

 *  [petarristic](https://wordpress.org/support/users/petarristic/)
 * (@petarristic)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/yoast-plugin-error-establishing-a-database-connection/)
 * Hi,
 * I’m experiencing an issue with Yoast plugin and I need some assistance in order
   to continue using it. My hosting provider told me:”Your Yoast plugin is trying
   to create a new session for each query without checking if the current session
   is active.” They are saying that the queries should be optimized.
 * My users are getting an Error establishing a database connection because of this.
 * Hosting provider sent me these logs:
    [28-Jul-2020 21:12:23 UTC] Greška Vordpres
   baze Commands out of sync; you can’t run this command now za upit SELECT * FROM
   wpoe_users WHERE user_login = ‘petar.ristic’ LIMIT 1 napravljen od shutdown_action_hook,
   do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Yoast_Notification_Center-
   >update_storage, Yoast_Notification_Center->remove_storage, Yoast_Notification_Center-
   >has_stored_notifications, Yoast_Notification_Center->get_stored_notifications,
   get_current_user_id, wp_get_current_user, _wp_get_current_user, apply_filters(‘
   determine_current_user’), WP_Hook->apply_filters, wp_validate_logged_in_cookie,
   wp_validate_auth_cookie, get_user_by, WP_User::get_data_by [30-Jul-2020 11:53:
   05 UTC] Greška Vordpres baze Commands out of sync; you can’t run this command
   now za upit SELECT user_id, meta_key, meta_value FROM wpoe_usermeta WHERE user_id
   IN (1) ORDER BY umeta_id ASC napravljen od shutdown_action_hook, do_action(‘shutdown’),
   WP_Hook->do_action, WP_Hook->apply_filters, Yoast_Notification_Center->update_storage,
   Yoast_Notification_Center->remove_storage, Yoast_Notification_Center->has_stored_notifications,
   Yoast_Notification_Center->get_stored_notifications, get_current_user_id, wp_get_current_user,
   _wp_get_current_user, apply_filters(‘determine_current_user’), WP_Hook->apply_filters,
   wp_validate_auth_cookie, get_user_by, WP_User->init, WP_User->for_site, WP_User-
   >get_caps_data, get_user_meta, get_metadata, update_meta_cache [06-Aug-2020 11:
   39:49 UTC] Greška Vordpres baze Commands out of sync; you can’t run this command
   now za upit SELECT * FROM wpoe_users WHERE user_login = ‘mina.goranovic’ LIMIT
   1 napravljen od shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action,
   WP_Hook->apply_filters, Yoast_Notification_Center->update_storage, Yoast_Notification_Center-
   >remove_storage, Yoast_Notification_Center->has_stored_notifications, Yoast_Notification_Center-
   >get_stored_notifications, get_current_user_id, wp_get_current_user, _wp_get_current_user,
   apply_filters(‘determine_current_user’), WP_Hook->apply_filters, wp_validate_logged_in_cookie,
   wp_validate_auth_cookie, get_user_by, WP_User::get_data_by
 * I need help fixing this or my only option is to deactivate the plugin. Could 
   you please help me fix this?
 * Kind regards,
    Petar Ristic
    -  This topic was modified 5 years, 9 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fyoast-plugin-error-establishing-a-database-connection%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 9 months ago](https://wordpress.org/support/topic/yoast-plugin-error-establishing-a-database-connection/#post-13281675)
 * I recommend asking at [https://wordpress.org/support/plugin/wordpress-seo/#new-post](https://wordpress.org/support/plugin/wordpress-seo/#new-post)
   so the plugin’s developers and support community can help you with this.
 *  Thread Starter [petarristic](https://wordpress.org/support/users/petarristic/)
 * (@petarristic)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/yoast-plugin-error-establishing-a-database-connection/#post-13284076)
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Yoast plugin – Error establishing a database connection’ is closed to
new replies.

## Tags

 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [petarristic](https://wordpress.org/support/users/petarristic/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/yoast-plugin-error-establishing-a-database-connection/#post-13284076)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
