W3 Total Cache
w3_http_get not found: FIX. (3 posts)

  1. Ben Doherty (Oomph, Inc)
    Posted 2 years ago #

    This error seems to happen to me ONLY when I call wp_insert_post without any current user defined (which is a situation that may occur in many syndication plugins and automated processes.)

    PHP Fatal error: Call to undefined function w3_http_get() in [REDACTED]/wp-content/plugins/w3-total-cache/lib/W3/Dispatcher.php on line 238

    A simple fix is to edit the file w3-total-cache/lib/W3/PgCacheFlush.php and insert the following line at line 7, before w3_require_once(W3TC_LIB_W3_DIR . '/PgCache.php');

    w3_require_once(W3TC_INC_DIR . '/functions/http.php');


  2. Frederick Townes
    Plugin Author

    Posted 2 years ago #

    Thanks, this is already fixed in the next release.

  3. dancriel
    Posted 2 years ago #

    I had the same problem, but updating PgCacheFlush.php as described did not work for me, instead I added the line above to the file throwing the error, Dispatcher.php, and it seems to be fixed now.

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