Title: Error causing server to overload and kill WordPress
Last modified: October 26, 2023

---

# Error causing server to overload and kill WordPress

 *  Resolved [jackyposs](https://wordpress.org/support/users/jackyposs/)
 * (@jackyposs)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-causing-server-to-overload-and-kill-wordpress/)
 * Hi,
   We are using this plugin [All in One SEO Pack](https://wordpress.org/plugins/all-in-one-seo-pack/)
   but we encountered an issue with our tiny server where some of the request somehow
   reached a function called “**isYandexUserAgent**” which uses the variable $_SERVER[‘
   HTTP_USER_AGENT’], somehow the variable is not provided and is causing an error
   on the server, and with enough overload of the error, the server just turned 
   off the WordPress server process, although the server ssh itself is still running,
   restarting the server or the WordPress process could fix the issue, but if continuous
   requests are made with the same pattern, the website could be down multiple times.
   Thus for the code in /app/Common/Traits/Helpers/ThirdParty.phpI would like to
   suggest a revision from
 *     ```wp-block-code
       public function isYandexUserAgent() {
       	return preg_match( '#.*Yandex.*#', $_SERVER['HTTP_USER_AGENT'] );
       }
       ```
   
 * to
 *     ```wp-block-code
       public function isYandexUserAgent() {
       	if(!isset($_SERVER['HTTP_USER_AGENT']))
       		return false;
       	return preg_match( '#.*Yandex.*#', $_SERVER['HTTP_USER_AGENT'] );
       }
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [arnaudbroes](https://wordpress.org/support/users/arnaudbroes/)
 * (@arnaudbroes)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-causing-server-to-overload-and-kill-wordpress/#post-17152652)
 * Hey [@jackyposs](https://wordpress.org/support/users/jackyposs/),
 * Thank you for reporting this error.
 * You’re actually in luck because we were already aware of this particular and 
   have fixed in it hour next update, which is conveniently being released in the
   next few hours.
 * You should no longer experience any issues once you’ve updated to the new version.

Viewing 1 replies (of 1 total)

The topic ‘Error causing server to overload and kill WordPress’ is closed to new
replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

## Tags

 * [Revision](https://wordpress.org/support/topic-tag/revision/)

 * 1 reply
 * 2 participants
 * Last reply from: [arnaudbroes](https://wordpress.org/support/users/arnaudbroes/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/error-causing-server-to-overload-and-kill-wordpress/#post-17152652)
 * Status: resolved