Title: Session cannot be started (wp_cron)
Last modified: January 9, 2025

---

# Session cannot be started (wp_cron)

 *  [Earthman Media](https://wordpress.org/support/users/earthman100/)
 * (@earthman100)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/session-cannot-be-started-wp_cron/)
 * Hello, we have this recurring error from your plugin when wp_cron is fired.
 *     ```wp-block-code
       session_start(): Session cannot be started after headers have already been sent…tart called at /code/wp-content/plugins/favorites/app/Bootstrap.php (83)…sion called at /code/wp-content/plugins/favorites/app/Bootstrap.php (43)…rites\Bootstrap::init called at /code/wp-includes/class-wp-hook.php (324)…P_Hook::apply_filters called at /code/wp-includes/class-wp-hook.php (348)        in WP_Hook::do_action called at /code/wp-includes/plugin.php (517)                        in do_action called at /code/wp-settings.php (704)                       in require_once called at /code/wp-config.php (185)                         in require_once called at /code/wp-load.php (50)                         in require_once called at /code/wp-cron.php (46)
       ```
   
 * I would think that sessions should not be required by your plugin when cron is
   running, can you please add a conditional and not initialize a session, in those
   instances?

The topic ‘Session cannot be started (wp_cron)’ is closed to new replies.

 * ![](https://ps.w.org/favorites/assets/icon-128x128.png?rev=1677726)
 * [Favorites](https://wordpress.org/plugins/favorites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/favorites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/favorites/)
 * [Active Topics](https://wordpress.org/support/plugin/favorites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/favorites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/favorites/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Earthman Media](https://wordpress.org/support/users/earthman100/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/session-cannot-be-started-wp_cron/)
 * Status: not resolved