WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
PHP Error, undefined function? (4 posts)

  1. rykios
    Member
    Posted 1 year ago #

    Have been using w3TC for long, never had a single problem. Most effective and COMPLETE caching plugin, by far :)
    After a recent move to a new server, i noticed error log in public_html, full with lines like this one:
    [21-Oct-2012 06:10:54 UTC] PHP Fatal error: Call to undefined function w3_url_format() in /home/radicio/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/PgCacheAdmin.php on line 213
    All look like this one, only time stamps change.

    Any ideas?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. rykios
    Member
    Posted 1 year ago #

    I m not a php expert, but it looks like function w3_url_format is indeed undefined. At least not in functions/http.php
    Looks like a bug indeed.

    Result: Preload not working (checked via FTP for new page folders written in cache folder, and verified, only visited pages are cached)

  3. rykios
    Member
    Posted 1 year ago #

    ok it is a bug, that function is defined in another file (url.php)

    To fix:
    Edit file
    /wp-content/plugins/w3-total-cache/lib/W3/Plugin/PgCacheAdmin.php

    Change line 210 to this:
    require_once W3TC_INC_DIR . '/functions/url.php';

    Error, sorted. (Still cannot verify that there are pre-cache files generated, as it needs time)

  4. Frederick Townes
    Member
    Plugin Author

    Posted 1 year ago #

    This is fixed in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic