Title: [Plugin: W3 Total Cache] Wierd SQL problem &#8211; server has gone away
Last modified: August 19, 2016

---

# [Plugin: W3 Total Cache] Wierd SQL problem – server has gone away

 *  [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wierd-sql-problem-server-has-gone-away/)
 * I’m getting a bunch of errors in my error log and they look like this:
    [22-Nov-
   2010 04:54:01] WordPress database error MySQL server has gone away for query 
   UPDATE `wp_options` SET `option_value` = ‘O:28:\”GoogleSitemapGeneratorStatus\”:
   34:{s:10:\”_startTime\”;d:1290401617.35437488555908203125;s:8:\”_endTime\”;d:
   1290401641.84984493255615234375;s:11:\”_hasChanged\”;b:1;s:12:\”_memoryUsage\”;
   i:20185088;s:9:\”_lastPost\”;i:3635;s:9:\”_lastTime\”;d:1290401641.495130062103271484375;
   s:8:\”_usedXml\”;b:1;s:11:\”_xmlSuccess\”;b:1;s:8:\”_xmlPath\”;s:37:\”/home/mysite/
   public_html/sitemap.xml\”;s:7:\”_xmlUrl\”;s:36:\”[http://www.mysite.ro/sitemap.xml](http://www.mysite.ro/sitemap.xml)\”;
   s:8:\”_usedZip\”;b:1;s:11:\”_zipSuccess\”;b:1;s:8:\”_zipPath\”;s:40:\”/home/mysite/
   public_html/sitemap.xml.gz\”;s:7:\”_zipUrl\”;s:39:\”[http://www.mysite.ro/sitemap.xml.gz](http://www.mysite.ro/sitemap.xml.gz)\”;
   s:11:\”_usedGoogle\”;b:1;s:10:\”_googleUrl\”;s:102:\”[http://www.google.com/webmasters/sitemaps/ping?sitemap=http%3A%2F%2Fwww.mysite.ro%2Fsitemap.xml.gz](http://www.google.com/webmasters/sitemaps/ping?sitemap=http%3A%2F%2Fwww.mysite.ro%2Fsitemap.xml.gz)\”;
   s:15:\”_gooogleSuccess\”;b:1;s:16:\”_googleStartTime\”;d:1290401641.6085479259490966796875;
   s:14:\”_googleEndTime\”;d:1290401641.6463301181793212890625;s:10:\”_usedYahoo\”;
   b:0;s:9:\”_yahooUrl\”;s:0:\”\”;s:13:\”_yahooSuccess\”;b:0;s:15:\”_yahooStartTime\”;
   i:0;s:13:\”_yahooEndTime\”;i:0;s:8:\”_usedAsk\”;b:1;s:7:\”_askUrl\”;s:87:\”[http://submissions.ask.com/ping?sitemap=http%3A%2F%2Fwww.mysite.ro%2Fsitemap.xml.gz](http://submissions.ask.com/ping?sitemap=http%3A%2F%2Fwww.mysite.ro%2Fsitemap.xml.gz)\”;
   s:11:\”_askSuccess\”;b:1;s:13:\”_askStartTime\”;d:1290401641.647511005401611328125;
   s:11:\”_askEndTime\”;d:1290401641.7247600555419921875;s:8:\”_usedMsn\”;b:1;s:
   7:\”_msnUrl\”;s:95:\”[http://www.bing.com/webmaster/ping.aspx?siteMap=http%3A%2F%2Fwww.mysite.ro%2Fsitemap.xml.gz](http://www.bing.com/webmaster/ping.aspx?siteMap=http%3A%2F%2Fwww.mysite.ro%2Fsitemap.xml.gz)\”;
   s:11:\”_msnSuccess\”;b:1;s:13:\”_msnStartTime\”;d:1290401641.7259519100189208984375;
   s:11:\”_msnEndTime\”;d:1290401641.8486659526824951171875;}’ WHERE `option_name`
   = ‘sm_status’ made by do_action_ref_array, call_user_func_array, GoogleSitemapGeneratorLoader-
   >CallBuildSitemap, GoogleSitemapGenerator->BuildSitemap, GoogleSitemapGeneratorStatus-
   >End, GoogleSitemapGeneratorStatus->Save, update_option, W3_Db->query
 * I have a lot others with the same intro “WordPress database error MySQL server
   has gone away for query SELECT” and ending “W3_Db->query”.
 * I’m not sure if this is related to W3TC. Does anyone have any idea?
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

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

 *  [morcom](https://wordpress.org/support/users/morcom/)
 * (@morcom)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wierd-sql-problem-server-has-gone-away/#post-1780309)
 * Don’t think it is to do with W3-total-cache as I get same errors on my sites 
   which don’t use it…….
    _[20-Nov-2010 08:54:02] WordPress database error MySQL
   server has gone away for query SELECT option\_value FROM cc\_options WHERE option\
   _name = ‘feedwordpress\_freshness’ LIMIT 1 made by shutdown\_action\_hook, do\
   _action, call\_user\_func\_array, feedwordpress\_auto\_update, FeedWordPress-
   >stale, get\_option._ It looks like it happens on a weekly basis and I think 
   most probably due to hosting maintenance. I use Hostgator which I find is great
   and I live with these outages which although look really bad last for a matter
   of seconds only. Hope this helps….
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wierd-sql-problem-server-has-gone-away/#post-1780310)
 * I see, thanks a lot! I’ll bug HG then.
 *  [morcom](https://wordpress.org/support/users/morcom/)
 * (@morcom)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wierd-sql-problem-server-has-gone-away/#post-1780312)
 * Hi there “M”
    glad to have helped – let me know how it goes with HG
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wierd-sql-problem-server-has-gone-away/#post-1780442)
 * basically it didn’t 🙁 (unlike the rest of the 99% of the cases when I asked 
   something).
    They replied I should remove the XML sitemap plugin which seems 
   to be causing that slow query.
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wierd-sql-problem-server-has-gone-away/#post-1780500)
 * Did deactivating that plugin resolve the issue? It’s best to build the XML sitemap
   only once per day using a cron if possible if you have lots of posts or limited
   resources.

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

The topic ‘[Plugin: W3 Total Cache] Wierd SQL problem – server has gone away’ is
closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wierd-sql-problem-server-has-gone-away/#post-1780500)
 * Status: not a support question