Title: Plugin causing Site Health Errors: active PHP session and loopback request
Last modified: December 29, 2020

---

# Plugin causing Site Health Errors: active PHP session and loopback request

 *  [thepeanutisme](https://wordpress.org/support/users/thepeanutisme/)
 * (@thepeanutisme)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/plugin-causing-site-health-errors-active-php-session-and-loopback-request/)
 * Plugin is the latest version, but errors have been happening in the previous 
   version as well.
 * When this plugin is active, the following errors appear:
 * 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.
 * Loopback requests are used to run scheduled events, and are also used by the 
   built-in editors for themes and plugins to verify code stability.
 * The loopback request to your site failed, this means features relying on them
   are not currently working as expected.
    Error: cURL error 28: Operation timed
   out after 10001 milliseconds with 0 bytes received (http_request_failed)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-causing-site-health-errors-active-php-session-and-loopback-request%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Anonymous User 16103310
 * (@anonymized-16103310)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causing-site-health-errors-active-php-session-and-loopback-request/#post-14276163)
 * Same problem. Had to deactivate. Hoping for an update to fix this. Took me some
   time to figure out what was causing this until a finally agreed to first first
   disable all plug-ins and that’s how I zeroed on this plugin
    -  This reply was modified 5 years, 1 month ago by Anonymous User 16103310.
 *  [airflo](https://wordpress.org/support/users/airflo/)
 * (@airflo)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-site-health-errors-active-php-session-and-loopback-request/#post-14598103)
 * Disclaimer: no warranty whatsoever. What I did to work around this issue is edit
   one of the plugin’s files, and everything SEEMS to work normally still.
 * File:
    `wp-content/plugins/premmerce-woocommerce-wholesale-pricing/src/Admin/
   Admin.php`
 * Lines 43-45:
 *     ```
       if(!session_id()){
         session_start();
       }
       ```
   
 * Modification:
 *     ```
       /*
       if(!session_id()){
         session_start();
       }
       */
       ```
   
 * So I basically commented out (and thus disabled) the part where the session is
   started. I did not find calls to `session_write()` or `session_write_close()`
   anywhere in the plugin’s code.
 * I would be grateful if the developers at Premmerce could resolve this issue, 
   as modifying the code or accepting the WordPress warning is not really a good
   solution.

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

The topic ‘Plugin causing Site Health Errors: active PHP session and loopback request’
is closed to new replies.

 * ![](https://ps.w.org/premmerce-woocommerce-wholesale-pricing/assets/icon-256x256.
   png?rev=1840685)
 * [Premmerce Wholesale Pricing for WooCommerce](https://wordpress.org/plugins/premmerce-woocommerce-wholesale-pricing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/premmerce-woocommerce-wholesale-pricing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/premmerce-woocommerce-wholesale-pricing/)
 * [Active Topics](https://wordpress.org/support/plugin/premmerce-woocommerce-wholesale-pricing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/premmerce-woocommerce-wholesale-pricing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/premmerce-woocommerce-wholesale-pricing/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [session](https://wordpress.org/support/topic-tag/session/)
 * [session_start](https://wordpress.org/support/topic-tag/session_start/)

 * 2 replies
 * 3 participants
 * Last reply from: [airflo](https://wordpress.org/support/users/airflo/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-site-health-errors-active-php-session-and-loopback-request/#post-14598103)
 * Status: not resolved