Title: Site health errors &#8220;active PHP session&#8221; &amp; &#8220;REST API&#8221;
Last modified: September 12, 2021

---

# Site health errors “active PHP session” & “REST API”

 *  [NoNewWars](https://wordpress.org/support/users/nonewwars/)
 * (@nonewwars)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/site-health-errors-active-php-session-rest-api/)
 * When this plugin is activated the Site Health Status shows:
    “2 critical issues
   An active PHP session was detected The REST API encountered an error” Deactivate
   the plugin and those two issues go away.
 * I found this by following the Site Health advice “A PHP session was created by
   a session_start() function call. This interferes with REST API and loopback requests.
   The session should be closed by session_write_close() before making any HTTP 
   requests.”
 * I searched my entire site for session_start() and checked the code where it is
   used. The only instance where it appears without the close() is in
    public_html/
   wp-content/plugins/custom-contact-forms/classes/class-ccf-form-handler.php
 * I tried disabling each plugin and it was only by disabling this one I could make
   the problem go away.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsite-health-errors-active-php-session-rest-api%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Site health errors “active PHP session” & “REST API”’ is closed to new
replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [NoNewWars](https://wordpress.org/support/users/nonewwars/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/site-health-errors-active-php-session-rest-api/)
 * Status: not resolved