Issues while creating posts
-
Hello,
I had run into a rare issue, can’t seem to find anything related.
It seems like every time a post is being created the is a SQL query that takes to long to process and therefore it creates a database error Lost connection error(please see below.)
Everything is up to date and was working just find, all of the sudden I have a crashed website with a 6GB error log.
I had to remove all plugins and theme to be able to log in back to the site.
From some researched I fund that it cold have been a broken database.
I reached out to the web host provider, and they assured me the database was working fine on their end, that is was word-press creating such a long query breaking the site.Has anyone seen anything like this? and know how to fix it?
The site is up now, but still lags when we try to creat a new post.Any help will be greatly appreciated.
[17-Aug-2018 11:55:27 UTC] WordPress database error Lost connection to MySQL server during query for query SELECT post_modified_gmt FROM wp_posts WHERE post_status = ‘publish’ AND post_type IN (‘post’, ‘page’, ‘attachment’) ORDER BY post_modified_gmt DESC LIMIT 1 made by require(‘wp-blog-header.php’), wp, WP->main, WP->send_headers, get_lastpostmodified, _get_last_post_time
[17-Aug-2018 12:04:57 UTC] WordPress database error Lost connection to MySQL server during query for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’) ORDER BY wp_posts.post_date DESC LIMIT 0, 10 made by require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
- The topic ‘Issues while creating posts’ is closed to new replies.