[Fix] Call to undefined function w3_url_format() in PgCacheAdmin.php
W3 Total Cache is one of the most appreciated modules of Optimization (SEO and Consuming of a Resurse Server) for WordPress. This tutorial solves an error “Call to undefined function w3_url_format() in PgCacheAdmin.php” which appears in some shingles.
To a few sites that this use plugin de WordPress I met errors like:
Sat Oct 01 05:41:28 2011] [error] [client IP] PHP Fatal error: Call to undefined function w3_url_format() in /home/username/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/PgCacheAdmin.php on line 213
Specific that the error occurs including in the last version 0.9.2.4 a W3 Total Cache.
For a blog owner who does not have cPanel For the administration of the service of web hosting or does not have access to Apache Error Logs, this error is invisible. I don't know exactly if it affects the proper functioning of the plugin W3 Total Cache, however, it is good to be eliminated.
[Fix] Call to undefined function w3_url_format() in PgCacheAdmin.php
1. We open the file PgCacheAdmin.php and below line 10:
require_once W3TC_INC_DIR . '/functions/rule.php';
We add the line:
require_once W3TC_INC_DIR . '/functions/url.php';
![w3cache - fix error pgcacheadmin w3_url_format() in PgCacheAdmin.php [Fix] Call to undefined function w3_url_format() in PgCacheAdmin.php](https://stealthsettings.com/wp-content/uploads/2023/05/Fix-w3-total-cache-error.webp)
2. We save the file PgCacheAdmin.php.
Now everything should be ok.
- WP Super Cache vs. W3 Total Cache (WordPress Page Load Speed)
- Fatal error: Call to undefined function wp() in /home/user/public_html/wp-blog-header.php on line 18
- [Fix PHP 7.2 / PHP 7.3] PHP Warning: Use of undefined constant (this will throw an Error in a future version of PHP)
- [Fix WordPress Update Error] You are not allowed to call this page directly.
Download W3 Total Cache WordPress Plugin – link .
W3 Total Cache
Improve site performance and user experience via caching: browser, page, object, database, minify and content delivery network support. W3 Total Cache improves the user experience of your site by improving your server performance, caching every aspect of your site, reducing the download times and providing transparent content delivery network (CDN) integration.
[Fix] Call to undefined function w3_url_format() in PgCacheAdmin.php
What’s New
About Stealth
Passionate about technology, I write with pleasure on stealthsetts.com starting with 2006. I have a rich experience in operating systems: Macos, Windows and Linux, but also in programming languages and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, Presashop).
View all posts by StealthYou may also be interested in...