Title: Cron script with WP limit causes errors
Last modified: May 23, 2017

---

# Cron script with WP limit causes errors

 *  [macmike78](https://wordpress.org/support/users/macmike78/)
 * (@macmike78)
 * [9 years ago](https://wordpress.org/support/topic/cron-script-with-wp-limit-causes-errors/)
 * I have a cron script running to send emails. I’m getting session start & headers
   already sent errors emailed to me when I have your plugin enabled. Any ideas?
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Arshid](https://wordpress.org/support/users/arshidkv12/)
 * (@arshidkv12)
 * [9 years ago](https://wordpress.org/support/topic/cron-script-with-wp-limit-causes-errors/#post-9161979)
 * I think, you are doing cron job script is not checking session started or not.
   Please add `if` condition then check session started or not by your script (plugin
   or functions.php )

Viewing 1 replies (of 1 total)

The topic ‘Cron script with WP limit causes errors’ is closed to new replies.

 * ![](https://ps.w.org/wp-limit-login-attempts/assets/icon-256x256.png?rev=1225433)
 * [WP Limit Login Attempts](https://wordpress.org/plugins/wp-limit-login-attempts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-limit-login-attempts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-limit-login-attempts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-limit-login-attempts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-limit-login-attempts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-limit-login-attempts/reviews/)

## Tags

 * [headers already sent](https://wordpress.org/support/topic-tag/headers-already-sent/)

 * 1 reply
 * 2 participants
 * Last reply from: [Arshid](https://wordpress.org/support/users/arshidkv12/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/cron-script-with-wp-limit-causes-errors/#post-9161979)
 * Status: not resolved