[Correção] Chamada para função indefinida w3_url_format() em PgCacheAdmin.php
[Correção] Chamada para função indefinida w3_url_format() em PgCacheAdmin.php
W3 Total Cache este unul dintre cele mai apreciate module de otimização (SEO e consum de resurse server) para WordPress. Acest tutorial rezolvă o eroare “Call to undefined function w3_url_format() in PgCacheAdmin.php” care apare în unele șcenarii.
La câteva site-uri pe care folosesc acest plugin de WordPress am întâlnit erori de genul:
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 că eroarea apare inclusiv în ultima versiune 0.9.2.4 um W3 Total Cache.
Pentru un proprietar de blog care nu are cpanel pentru administrarea serviciului de hospedagem na web sau nu are acces la Apache Error Logs, această erro este invizibilă. Nu știu exact daca afectează buna funcționare a plugin-ului W3 Total Cache, însa este bine sa fie eliminată.
[Correção] Chamada para função indefinida w3_url_format() em PgCacheAdmin.php
1. Deschidem fisierul PgCacheAdmin.php e sub linia 10:
require_once W3TC_INC_DIR . '/functions/rule.php';
adaugam linia:
require_once W3TC_INC_DIR . '/functions/url.php';
![[Correção] Chamada para função indefinida w3_url_format() em 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. Salvam fisierul PgCacheAdmin.php.
Acum totul ar trebui sa fie OK.
- WP Super Cache vs. W3 Total Cache (velocidade de carregamento da página WordPress)
- 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.
[Correção] Chamada para função indefinida w3_url_format() em PgCacheAdmin.php
O que há de novo
Sobre Stealth
Apaixonado por tecnologia, escrevo com prazer no StealthSettings.com desde 2006. Tenho uma vasta experiência em sistemas operativos: macOS, Windows e Linux, bem como em linguagens de programação e plataformas de blogging (WordPress) e para lojas online (WooCommerce, Magento, PrestaShop).
Veja todos os posts de StealthVocê também pode estar interessado em...