Title: fopen() Cron Error
Last modified: August 19, 2016

---

# fopen() Cron Error

 *  [Michael Fields](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/fopen-cron-error/)
 * 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(http://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)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/fopen-cron-error/#post-1670962)
 * 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](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/fopen-cron-error/#post-1671163)
 * 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](https://wordpress.org/support/users/nerdinprogress/)
 * (@nerdinprogress)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/fopen-cron-error/#post-1671275)
 * 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](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/fopen-cron-error/#post-1671290)
 * 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( 'http://localhost/3.1/', array( 'topics' => 'ajax'));`
 * However, the function worked fine when accessing a true remote url:
 * `$test = wp_remote_request( 'http://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](https://wordpress.org/support/users/ocean90/)
 * (@ocean90)
 * WordPress Core Developer
 * [15 years ago](https://wordpress.org/support/topic/fopen-cron-error/#post-1671342)
 * See [http://core.trac.wordpress.org/ticket/11831](http://core.trac.wordpress.org/ticket/11831)
 *  Thread Starter [Michael Fields](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/fopen-cron-error/#post-1671346)
 * [@ocean90](https://wordpress.org/support/users/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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [Michael Fields](https://wordpress.org/support/users/mfields/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/fopen-cron-error/#post-1671346)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
