Question

Wordpress Error

Hello, I have a droplet setup correctly running wordpress with Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 12.10 X64 Server.

I got the following error in wordpress.

Warning: fopen(http://example.com/wordpress/wp-cron.php?doing_wp_cron=1361221148.57854199409284738473):failed to open stream: HTTP request failed! in /var/www/example.com/public_html/wordpress/wp-includes/class-http.php on line 921

Is this cron job related? If so how do i setup a cron job for wordpress, does it need one?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thank you Jonathan. I will have to setup an external CRON.

For reference, WordPress has it’s own internal CRON system which is fired off when visitors access your site. This is how scheduled posts are regulated. The same applies to [insert item] if it’s on a schedule (i.e. backups, etc). <br> <br>Normally when you see “doing_wp_cron” in the URL or error log, it’s due to the internal CRON being unable to run, or, you’ve disabled the internal CRON in favor of an external (i.e. crontab -e or through your control panel GUI). <br> <br>The downside, the internal CRON is fired off for each visitor, which can stress a server on larger sites. Just an FYI, if you’re running a large installation with quite a few visitors hitting the site at all hours of the day, an external CRON run may be better. That just from experience working with sites that continually see hundreds of thousands of [unique] visitors a month. On smaller installations it’s fine and really won’t do much harm, especially if you have your own VPS.

Thanks dave, <br> <br>Yes you are correct. I added permissions to the wordpress directory to allow my ftp user to edit files in filezilla but that changed my permissions i had previously set for wordpress. <br> <br>The solution: <br>sudo chown -R www-data:www-data /var/www/example.com/public_html/wordpress <br> <br> <br>