W3 Total Cacheがundefined functionエラーを吐く件の対処

 

プラグイン W3 Total Cache を使ってる WordPress サイトで、httpd のエラーログを見たら、こんなの↓を吐いてまして…

[Sun Jun 24 06:18:33 2012] [error] [client ***.***.***.***] PHP Fatal error:  Call to undefined function w3_url_format() in /*****/wp-content/plugins/w3-total-cache/lib/W3/Plugin/PgCacheAdmin.php on line 213

以下のサイトの通りに対処。

WordPress › Support » [Plugin: W3 Total Cache] Call to Undefined Function after Update

具体的には、「./wp-content/plugins/w3-total-cache/lib/W3/Plugin/PgCacheAdmin.php」の10行目

require_once W3TC_INC_DIR . '/functions/rule.php';

の後に、以下の行を追記

require_once W3TC_INC_DIR . '/functions/url.php';

環境にもよるけど、これの適用後はキャシュをクリアするとか、httpd を graceful restart するなりした方がいいかもね。勘だけど。

いじょ。

Hatena Pocket Line

コメントを記入