Title: Session/cron PHP Warning
Last modified: October 22, 2020

---

# Session/cron PHP Warning

 *  [jcanepa](https://wordpress.org/support/users/jcanepa/)
 * (@jcanepa)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/session-cron-php-warning/)
 * The fix created for package rollbar/rollbar-php-wordpress was never ported over
   to the WordPress plugin version. I received thousands of occurrences until patched
   it myself, please release an update with the fix.
 * [Original report](https://wordpress.org/support/topic/rollbar-plugin-creating-errors-and-reporting-itself-cron/)
 * Equivalent [wpackagist package issue](https://github.com/rollbar/rollbar-php-wordpress/issues/82)
 * To resolve, update line 102 of wp-content/plugins/rollbar/src/Settings.php to:
   `
   if( !session_id() && !defined( 'DOING_CRON' )) {` as defined [here](https://github.com/rollbar/rollbar-php-wordpress/blob/master/src/Settings.php#L102).

The topic ‘Session/cron PHP Warning’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [jcanepa](https://wordpress.org/support/users/jcanepa/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/session-cron-php-warning/)
 * Status: not resolved