• Hello,

    We are using easyship for our wocommerce shipping solution for over a year now. Please release wordpress version of plugin which is compatible with WordPress version 5.5.1. There is major issues such which show “An active PHP session was detected” 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.

    This causes Rest API issues The REST API encountered an error.

    The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.

    The REST API request failed due to an error.
    Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)

    Upon disabling your plugin all error messages including both above disappear. Kindly waiting your resolution

Viewing 2 replies - 1 through 2 (of 2 total)
  • @esaleco,
    After months of no response from the plug-in developer, multiple plug-in updates that made no difference, and no luck getting customer support to put me in touch with the plug-in developers, I believe I have resolved the issue myself. Use at your own risk as I am not the plug-in developer, but this is working for me to resolve the issue mentioned above.

    Go into the following php file: /wp-content/plugins/easyship-woocommerce-shipping-rates/easyship.php

    Find Lines 67-74:

    
                /**
                 *  Register a session
                 */
                public function register_session()
                {
                    if (session_status() == PHP_SESSION_NONE && !headers_sent())
                        session_start();
                }
    

    And replace lines 67-74 with the following:

    
                /**
                 *  Register a session
                 */
                public function register_session()
                {
                    if (session_status() == PHP_SESSION_NONE && !headers_sent()) {
    	                session_start();
    	                session_write_close();
                    }
                }
    

    Run Site Health test and the errors should all be gone.

    Thread Starter esaleco

    (@esaleco)

    @forgetme Thank you, this helped me out. Really appreciate you taking your time and sharing this for helping people like me out, as you are right the support on this plugin has not replied for getting me in touch with plugin developers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce Plugin Incompatible with WordPress version 5.5.1’ is closed to new replies.