Title: PHP sessions created by a session_start() ERROR
Last modified: January 31, 2021

---

# PHP sessions created by a session_start() ERROR

 *  [pal2020](https://wordpress.org/support/users/pal2020/)
 * (@pal2020)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-sessions-created-by-a-session_start-error/)
 * HELLO, thank you for the great plugin, i use it for 6 years and it is fantastic.
 * after the new wordpress updates, the following critical error appear in SiteHealth:
 * “”
    PHP sessions created by a session_start() function call may interfere with
   REST API and loopback requests. An active session should be closed by session_write_close()
   before making any HTTP requests. “”
 * the error disappear after i disable the plugin.

Viewing 1 replies (of 1 total)

 *  Thread Starter [pal2020](https://wordpress.org/support/users/pal2020/)
 * (@pal2020)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-sessions-created-by-a-session_start-error/#post-13982243)
 * hello again,
    you should edit wp-simple-anchors-links.php file line 29 :
 * from:
 *     ```
       if ( !session_id() ){ session_start(); } // Start session just in case
       ```
   
 * to
 *     ```
       if ( !session_id() ){ session_start(); session_write_close(); } // Start session just in case
       ```
   
    -  This reply was modified 5 years, 4 months ago by [pal2020](https://wordpress.org/support/users/pal2020/).
    -  This reply was modified 5 years, 4 months ago by [pal2020](https://wordpress.org/support/users/pal2020/).

Viewing 1 replies (of 1 total)

The topic ‘PHP sessions created by a session_start() ERROR’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-simple-anchors-links_7b563c.svg)
 * [WP Simple Anchors Links](https://wordpress.org/plugins/wp-simple-anchors-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-simple-anchors-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simple-anchors-links/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simple-anchors-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simple-anchors-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simple-anchors-links/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [pal2020](https://wordpress.org/support/users/pal2020/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/php-sessions-created-by-a-session_start-error/#post-13982243)
 * Status: not resolved