Title: Plugin causes REST API and PHP Session Error
Last modified: May 26, 2025

---

# Plugin causes REST API and PHP Session Error

 *  Resolved [Andre](https://wordpress.org/support/users/naturheilmittel/)
 * (@naturheilmittel)
 * [1 year ago](https://wordpress.org/support/topic/plugin-causes-rest-api-and-php-session-error/)
 * Dear Admins,
   after installing and using the WP Event Manager Plugin, WordPress
   shows 2 critical problems which disappear after deactivating the plugin again:
 * 1. A PHP session was created by a session_start() function call. This affects
   the REST API and loopback requests. The session should be closed by session_write_close()
   before any HTTP requests are made.translator
   2. The REST API is a way for WordPress
   and other applications to communicate with the server. The block editor screen,
   for example, relies on the REST API to display and save your posts and pages.
   An error occurred while testing the REST API:REST API endpoint: [https://schoepferinsel.com/wp-json/wp/v2/types/post?context=edit](https://schoepferinsel.com/wp-json/wp/v2/types/post?context=edit)
   REST API response: (http_request_failed) cURL error 28: Operation timed out after
   10002 milliseconds with 0 bytes receivedI found this on stackoverflow:[https://stackoverflow.com/questions/64377032/getting-an-active-php-session-was-detected-critical-warning-in-wordpress](https://stackoverflow.com/questions/64377032/getting-an-active-php-session-was-detected-critical-warning-in-wordpress)
 * Also many other sources have the opinion, that there must be some wrong code 
   within a plugin which can only be fixed by the plugin provider.
   Can you please
   look into this?Kind regards,Andre
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-causes-rest-api-and-php-session-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [jathinhelp](https://wordpress.org/support/users/jathinhelp/)
 * (@jathinhelp)
 * [1 year ago](https://wordpress.org/support/topic/plugin-causes-rest-api-and-php-session-error/#post-18484750)
 * Hello,
 * [@naturheilmittel](https://wordpress.org/support/users/naturheilmittel/) Thank
   you for bringing this to our attention. However this issue has been already addressed
   and resolved and the upcoming version will be released as soon as possible.
 * Regards,
 * WP Event Manager.
 *  Thread Starter [Andre](https://wordpress.org/support/users/naturheilmittel/)
 * (@naturheilmittel)
 * [1 year ago](https://wordpress.org/support/topic/plugin-causes-rest-api-and-php-session-error/#post-18485014)
 * Hi [jathinhelp](https://wordpress.org/support/users/jathinhelp/),
   thanks for 
   the quick reply and for looking into this. I’m glad to hear that it will be fixed
   in the coming update.Kind regards,Andre

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin causes REST API and PHP Session Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-event-manager/assets/icon-256x256.png?rev=1622826)
 * [WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce](https://wordpress.org/plugins/wp-event-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-event-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-event-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-event-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-event-manager/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Andre](https://wordpress.org/support/users/naturheilmittel/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/plugin-causes-rest-api-and-php-session-error/#post-18485014)
 * Status: resolved