debug.log notices and server crash
-
Hi there,
Really hope you guys can help me! My debug.log is showing a lot of notices/warnings and after a while my server shuts down. The server can run well for days, or just seconds before it crashes and needs to be reset (there is no patern). It looks like it has something to do with the WP database and querys but I can’t figure out what to do.
These 3 lines just keep on repeating themself
PHP Notice: Trying to get property of non-object in /wp-includes/class-wp-query.php on line 3736 PHP Notice: Trying to get property of non-object in /wp-includes/class-wp-query.php on line 3738 PHP Notice: Trying to get property of non-object in /wp-includes/class-wp-query.php on line 3740
And every so often this line pops up
PHP Notice: get_wp_title_rss was called with an argument that is <strong>outdated</strong> since version 4.4.0. Use <code>document_title_separator</code>-filter instead . in /wp-includes/functions.php on line 4045
This goes on for awhile and eventually my server decides to shut down
PHP Warning: mysqli_real_connect(): MySQL server has gone away in /home/vespacia/public_html/wp-includes/wp-db.php on line 1531 PHP Warning: mysqli_real_connect(): Error while reading greeting packet. PID=5183 in /home/vespacia/public_html/wp-includes/wp-db.php on line 1531 PHP Warning: mysqli_real_connect(): (HY000/2006): MySQL server has gone away in /home/vespacia/public_html/wp-includes/wp-db.php on line 1531 PHP Warning: mysqli_query(): MySQL server has gone away in /home/vespacia/public_html/wp-includes/wp-db.php on line 1924 PHP Warning: mysqli_query(): Error reading result set's header in /home/vespacia/public_html/wp-includes/wp-db.php on line 1924 PHP Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /home/vespacia/public_html/wp-includes/wp-db.php on line 1531 PHP Warning: Error while sending QUERY packet. PID=5139 in /home/vespacia/public_html/wp-includes/wp-db.php on line 1924 PHP Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /home/vespacia/public_html/wp-includes/wp-db.php on line 1531 WordPress databasefout MySQL server has gone away bij query SELECT l.ID, post_title, post_content, post_name, post_parent, post_author, post_modified_gmt, post_date, post_date_gmt FROM ( SELECT wp_posts.ID FROM wp_posts WHERE wp_posts.post_status = 'publish' AND wp_posts.post_type = 'reply' AND wp_posts.post_password = '' AND wp_posts.post_date != '0000-00-00 00:00:00' ORDER BY wp_posts.post_modified ASC LIMIT 100 OFFSET 12200 ) o JOIN wp_posts l ON l.ID = o.ID gemaakt door require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, WPSEO_Sitemaps->redirect, WPSEO_Sitemaps->build_sitemap, WPSEO_Post_Type_Sitemap_Provider->get_sitemap_links, WPSEO_Post_Type_Sitemap_Provider->get_posts PHP Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /wp-includes/wp-db.php on line 1531 PHP Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /wp-includes/wp-db.php on line 1531 PHP Warning: Error while sending QUERY packet. PID=5167 in /wp-includes/wp-db.php on line 1924 PHP Notice: wpdb was called <strong>incorrectly</strong>. wpdb must set up a database connection for the use of 'escaping'. Read <a href="https://codex.www.ads-software.com/Debugging_in_WordPress"> WordPress troubleshooting </a> for more information. (This message has been added in version 3.6.0.) in /home/vespacia/public_html/wp-includes/functions.php on line 4161 PHP Warning: mysqli_real_connect(): (08004/1040): Too many connections in /home/vespacia/public_html/wp-includes/wp-db.php on line 1531 PHP Warning: mysqli_real_connect(): (HY000/1040): Too many connections in /home/vespacia/public_html/wp-includes/wp-db.php on line 1531
I also came across a couple of these lines but there are only a few of them
WordPress database error Table 'wp_options' is marked as crashed and should be repaired bij query SELECT option_value FROM wp_options WHERE option_name = '_transient_external_ip_address_77.170.21.115' LIMIT 1 gemaakt door require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce->init, WC_Customer->__construct, WC_Data_Store->read, WC_Customer_Data_Store_Session->read, WC_Customer_Data_Store_Session->set_defaults, wc_get_customer_default_location, WC_Geolocation::geolocate_ip, WC_Geolocation::get_external_ip_address, get_transient, get_option WordPress database error Duplicate entry '_transient_external_ip_address_77.170.21.115' for key 'option_name' bij query INSERT INTO <code>wp_options</code> (<code>option_name</code>, <code>option_value</code>, <code>autoload</code>) VALUES ('_transient_external_ip_address_77.170.21.115', '2a01:7c8:aab6:b:5054:xxxx:xxxx:xxxx', 'no') ON DUPLICATE KEY UPDATE <code>option_name</code> = VALUES(<code>option_name</code>), <code>option_value</code> = VALUES(<code>option_value</code>), <code>autoload</code> = VALUES(<code>autoload</code>) gemaakt door require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce->init, WC_Customer->__construct, WC_Data_Store->read, WC_Customer_Data_Store_Session->read, WC_Customer_Data_Store_Session->set_defaults, wc_get_customer_default_location, WC_Geolocation::geolocate_ip, WC_Geolocation::get_external_ip_address, set_transient, add_option WordPress database error Table 'wp_options' is marked as crashed and should be repaired bij query SELECT option_value FROM wp_options WHERE option_name = '_transient_external_ip_address_77.170.xxx.xxx' LIMIT 1 gemaakt door require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce->init, WC_Customer->__construct, WC_Data_Store->read, WC_Customer_Data_Store_Session->read, WC_Customer_Data_Store_Session->set_defaults, wc_get_customer_default_location, WC_Geolocation::geolocate_ip, WC_Geolocation::get_external_ip_address, get_transient, get_option WordPress database error Duplicate entry '_transient_external_ip_address_77.170.xxx.xxx' for key 'option_name' bij query INSERT INTO <code>wp_options</code> (<code>option_name</code>, <code>option_value</code>, <code>autoload</code>) VALUES ('_transient_external_ip_address_77.170.xxx.xxx', '149.210.xxx.xxx', 'no') ON DUPLICATE KEY UPDATE <code>option_name</code> = VALUES(<code>option_name</code>), <code>option_value</code> = VALUES(<code>option_value</code>), <code>autoload</code> = VALUES(<code>autoload</code>) gemaakt door require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce->init, WC_Customer->__construct, WC_Data_Store->read, WC_Customer_Data_Store_Session->read, WC_Customer_Data_Store_Session->set_defaults, wc_get_customer_default_location, WC_Geolocation::geolocate_ip, WC_Geolocation::get_external_ip_address, set_transient, add_option
Edit, and these:
PHP Notice: Undefined index: host in /wp-includes/canonical.php on line 461 PHP Notice: Undefined index: host in /wp-includes/canonical.php on line 462 PHP Notice: Undefined index: host in /wp-includes/canonical.php on line 463 PHP Notice: Undefined index: host in /wp-includes/canonical.php on line 465 PHP Notice: Undefined index: scheme in /wp-includes/canonical.php on line 482
WordPress 4.9.8, theme and all plugins are up to date.
Apache version: Apache/2.2.27
PHP version: 7.1.0
MySQL version: 5.1.73
(If needed I have acces to everything)Best regards,
AlrikThe page I need help with: [log in to see the link]
- The topic ‘debug.log notices and server crash’ is closed to new replies.