Title: PHP Fatal error: undefined function w3_url_format()
Last modified: August 20, 2016

---

# PHP Fatal error: undefined function w3_url_format()

 *  [jumbo](https://wordpress.org/support/users/jumbo/)
 * (@jumbo)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-undefined-function-w3_url_format/)
 * Hi,
 * The following error is appearing in my log files:
 * PHP Fatal error: Call to undefined function w3_url_format() in /home/userdir/
   public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/PgCacheAdmin.php 
   on line 213
 * I’m using v0.9.2.5 but this error was logged with the prior version v0.9.2.4 
   as well.
 * I only have disk enhanced cache enabled.
 * Thanks.
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

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

 *  [BOYPT](https://wordpress.org/support/users/boypt/)
 * (@boypt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-undefined-function-w3_url_format/#post-3325270)
 * You can fix it by yourself by add a line of code:
 * refer:
    [http://wordpress.org/support/topic/plugin-w3-total-cache-call-to-undefined-function-after-update?replies=17](http://wordpress.org/support/topic/plugin-w3-total-cache-call-to-undefined-function-after-update?replies=17)
 * Open the problematic PgCacheAdmin.php, and after the line :
 * `require_once W3TC_INC_DIR . '/functions/rule.php';`
 * add :
 * `require_once W3TC_INC_DIR . '/functions/url.php';`
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-undefined-function-w3_url_format/#post-3325316)
 * This issue is fixed in the latest release.

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

The topic ‘PHP Fatal error: undefined function w3_url_format()’ 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/)

## Tags

 * [W3TC](https://wordpress.org/support/topic-tag/w3tc/)

 * 2 replies
 * 3 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-undefined-function-w3_url_format/#post-3325316)
 * Status: not resolved