WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ben Doherty (Oomph, Inc)
    Member
    Posted 1 year 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');

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

  2. Frederick Townes
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, this is already fixed in the next release.

  3. dancriel
    Member
    Posted 1 year 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

About this Topic