• 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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 16103310

    (@anonymized-16103310)

    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 3 years, 11 months ago by Anonymous User 16103310.

    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.