Title: [Plugin: W3 Total Cache] WordPress Database error in pgcacheadmin.php
Last modified: August 20, 2016

---

# [Plugin: W3 Total Cache] WordPress Database error in pgcacheadmin.php

 *  [dadaas](https://wordpress.org/support/users/dadaas/)
 * (@dadaas)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/)
 *     ```
       [07-Jan-2012 11:33:45] PHP Fatal error:  Call to undefined function  w3_url_format() in /home/******/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/PgCacheAdmin.php on line 213
       [07-Jan-2012 11:37:39] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:40:26] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:41:54] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:41:57] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:41:59] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:42:01] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:42:03] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:42:06] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:42:08] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       [07-Jan-2012 11:42:10] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1 for query SELECT * FROM wp_posts  WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC  0 made by require, require_once, do_action, call_user_func_array, AA_G404->template_redirect, load_template, require_once, aa_google_404, AA_G404_Handler->output, wp_get_archives, W3_Db->query
       ```
   
 * And i m getting this error every 2 second. So please help me out on thisone. 
   Or give me hint what could i take a look or something.
 * Thanks
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

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

 *  [Alexandru Vornicescu](https://wordpress.org/support/users/alexvorn2/)
 * (@alexvorn2)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497504)
 * oh, my…
 *  Thread Starter [dadaas](https://wordpress.org/support/users/dadaas/)
 * (@dadaas)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497537)
 * Oh my? Come on give me more than this. I noticed this error on all my wordpress
   blogs that use W3 Total. I think this plugin is not so good after all. I have
   constant problems with it. First i disabled Minify because it was not working
   properly and now with almost all options turned off is still giving me hard time…
 * Anyone else with this kind of problem?
 *  [stotman](https://wordpress.org/support/users/stotman/)
 * (@stotman)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497548)
 * Once a fatal error is encountered (as the name implies) everything else is killed.
   A fatal error is normally caused by referring to a nonexistent file or function.
 *  [stotman](https://wordpress.org/support/users/stotman/)
 * (@stotman)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497549)
 * I would use an FTP client to check the line of that file. You’ll probably actually
   find it before line 213. You might try to take out that plug-in and see if that
   automatically fixes your problem. I’m no expert when it comes to PHP but as fantastic
   as it is, it’s very picky. Anything missing can make everything go to pot.
 *  Thread Starter [dadaas](https://wordpress.org/support/users/dadaas/)
 * (@dadaas)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497550)
 * I m sorry but i will not digg trough this PHP codes and fix things. I just setup
   my bot to remove on all blogs w3 total and install 4 other plugins. W3 Total 
   is no good IMO.
 *  [Andreas](https://wordpress.org/support/users/andreasnrb/)
 * (@andreasnrb)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497752)
 * Will be fixed in next release.
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497769)
 * Meanwhile try the development version.
 *  [spabav](https://wordpress.org/support/users/spabav/)
 * (@spabav)
 * [14 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497816)
 * I am getting exactly the same database errors.
 * Is there any word as when this might be fixed ?
 * Would be great to see the plugin updated. It is such an excellent plugin.
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497834)
 * Sorry for the trouble, this is already fixed in the next release.

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

The topic ‘[Plugin: W3 Total Cache] WordPress Database error in pgcacheadmin.php’
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/)

 * 9 replies
 * 6 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-database-error-in-pgcacheadminphp/#post-2497834)
 * Status: not resolved