Never posted here but since I can't find a solution on my own, let's abuse your kindness!

I'm adding some custom post types through my theme.

The first custom type works like a charm, but as soon as I add the second (and third) one, the apache's error log reports a PHP Warning when trying to do a search action (like the one to search a post to attach a media).

fopen(http://localhost/site/wp-cron.php?doing_wp_cron) [<a href='function.fopen'>function.fopen</a>]: failed to open stream [...] in E:\\www\\site\\wp-includes\\class-http.php on line 876, referer: http://localhost/raw/wp-admin/edit.php

It only happens when I set the 'thumbnail' string into the $args['supports'] array passed to the register_post_type function.

Any help would be much appreciated!


1 Answer 1


I had that error pop up a few times recently as well. From what I can tell it's a side effect of the local dev environment.

More reading:



  • I've had this as well. From the Trac ticket, adding define('ALTERNATE_WP_CRON', true); to my wp-config.php silenced the warning.
    – EAMann
    Aug 30, 2011 at 22:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.