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

  1. rykios
    Posted 2 years 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?


  2. rykios
    Posted 2 years 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
    Posted 2 years ago #

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

    To fix:
    Edit file

    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
    Plugin Author

    Posted 2 years ago #

    This is fixed in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic