• I keep getting this error every once and a while on my local installation. I’ve never seen it on a live site. Maybe you could tell me why and if there’s anything I can do to make it disappear.

    Warning: fopen(https://localhost/3.0/wp-cron.php?doing_wp_cron) [function.fopen]: failed to open stream: HTTP request failed! in C:\xampplite\htdocs\3.0\wp-includes\class-http.php on line 1045

    Thanks!
    -Mike

Viewing 6 replies - 1 through 6 (of 6 total)
  • I get this at intervals on my local install too but I just ignore it and refresh the page. I think it’s a Windows/PHP specific issue which (I assumed) was directly related to running WP inside a ported LAMP environment within Windows.

    Certainly nothing to worry about.

    Thread Starter Michael Fields

    (@mfields)

    Thanks! Did you or anyone else ever find a workaround? It’s glad to hear that this is not a big issue, but sometimes I will wait 8-10 seconds for the page to load and then this error will appear.Which is not a crisis but can be a bit annoying when constantly refreshing pages during development.

    NerdInProgress

    (@nerdinprogress)

    Is it possible that it is from some plugin that setup a cron and is now disabled?

    I have the same problem and I remember that when I’d tested Mailman, something to do with cron had come up…. it is uninstalled, but this message comes up with debug enabled. Is there a way to check why wordpress is doing the cron?

    Thread Starter Michael Fields

    (@mfields)

    I was hacking around a bit this morning with the wp_remote_request() function which calls fopen(). I used a very simple request which sent my whole system spaz-out:

    $test = wp_remote_request( 'https://localhost/3.1/', array( 'topics' => 'ajax' ) );

    However, the function worked fine when accessing a true remote url:

    $test = wp_remote_request( 'https://wordpress.mfields.org/', array( 'topics' => 'ajax' ) );

    Is there anything that I need to configure in windows to stop this from happening? It happens rather frequently for me.

    Moderator Dominik Schilling

    (@ocean90)

    WordPress Core Developer

    Thread Starter Michael Fields

    (@mfields)

    @ocean90 Thanks for posting a link to that ticket. Very informative. I no longer develop on a Windows machine. And have not noticed the errors since I switched.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘fopen() Cron Error’ is closed to new replies.