Title: wp-cron.php error
Last modified: August 11, 2017

---

# wp-cron.php error

 *  Resolved [Fiz](https://wordpress.org/support/users/fayzanzahid/)
 * (@fayzanzahid)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cron-php-error/)
 * Whenever wp-cron.php runs it causes this error
 * (/public_html/.htaccess.bak): failed to open stream: Permission denied in /public_html/
   wp-content/plugins/block-referer-spam/lib/RefSpamBlocker.php on line 223
    -  This topic was modified 8 years, 9 months ago by [Fiz](https://wordpress.org/support/users/fayzanzahid/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [supersoju](https://wordpress.org/support/users/supersoju/)
 * (@supersoju)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cron-php-error/#post-9401487)
 * It seems your web server user doesn’t have write access to your public_html directory.
 * /public_html/ should be 755
 * If you’re able to create files via FTP, you can manually create the .htaccess.
   bak file and chmod it to 644.

Viewing 1 replies (of 1 total)

The topic ‘wp-cron.php error’ is closed to new replies.

 * ![](https://ps.w.org/block-referer-spam/assets/icon-256x256.png?rev=1553044)
 * [Block Referer Spam](https://wordpress.org/plugins/block-referer-spam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-referer-spam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-referer-spam/)
 * [Active Topics](https://wordpress.org/support/plugin/block-referer-spam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-referer-spam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-referer-spam/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [supersoju](https://wordpress.org/support/users/supersoju/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/cron-php-error/#post-9401487)
 * Status: resolved