Title: Register Session Error
Last modified: May 23, 2022

---

# Register Session Error

 *  [wittich](https://wordpress.org/support/users/wittich/)
 * (@wittich)
 * [4 years ago](https://wordpress.org/support/topic/register-session-error/)
 * Hi, I tumbled over an error message caused by the Podigee Plugin.
 * > PHP Warning: session_start(): Session cannot be started after headers have 
   > already been sent in /wp-content/plugins/podigee/podigee-quick-publish.php 
   > on line 320
 * So checking `headers_sent()` turns out that the header was already created and
   has the following output:
 *     ```
       # if(headers_sent()) error_log(json_encode(headers_list()));
       ["Expires: Wed, 11 Jan 1984 05:00:00 GMT","Cache-Control: no-cache, must-revalidate, max-age=0","Content-type: text\/html; charset=UTF-8"]
       ```
   
 * If this comes from the wp-core there are only two sources, `wp-cron.php:24` and`
   ajax-action.php:184`. I’m not sure why wp writs already the header during the
   init process.
 * I see tree possible solution,
    1. check if the header is already written `headers_sent()`,
    2. on init register_session earlier `add_action('init', 'register_session', 9);//
       default 10`
    3. or you just start the session if the requested URI doesn’t contain wp-cron.php
 * Does anybody else has this error?
 * Regards Valentin
    -  This topic was modified 4 years ago by [wittich](https://wordpress.org/support/users/wittich/).
    -  This topic was modified 4 years ago by [wittich](https://wordpress.org/support/users/wittich/).

The topic ‘Register Session Error’ is closed to new replies.

 * ![](https://ps.w.org/podigee/assets/icon-256x256.png?rev=2329267)
 * [Podigee Wordpress Quick Publish – now with Gutenberg support!](https://wordpress.org/plugins/podigee/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/podigee/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/podigee/)
 * [Active Topics](https://wordpress.org/support/plugin/podigee/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/podigee/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/podigee/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [wittich](https://wordpress.org/support/users/wittich/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/register-session-error/)
 * Status: not resolved