• Resolved rafszypniewski

    (@rafszypniewski)


    Hi Mahmood,

    Thank you for your continued efforts maintaining this plugin.
    I’ve ran into an issue with WP Rest & Loopback timing out.

    Steps to reproduce:

    1. Fresh WP Install – any version between 5.2 and 5.3 will work for this.
    2. Install WooCommerce
    3. Install Discounts Plus
    4. Navigate to Site Health.

    You will now see this:

    The REST API encountered an error Performance
    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
    
    Your site could not complete a loopback request Performance

    Thank you in advance for looking at this issue.

    Kind regards
    Raf

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rafszypniewski

    (@rafszypniewski)

    We’ve looked into the problem the original issue seems to have disappeared once we commented out the following lines in ./inc/functions.php

    	if(!function_exists('wdp_sessions')){
    		function wdp_sessions(){
    			if (!session_id()){
    				//ob_start();
    				//@session_start();
    			}
    		}
    	}

    I’m not sure what this could break in the grand scheme of things (we’ve only ran limited tests) but I wanted to point you in the right direction for a quicker resolution.

    Thank you
    Raf

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Dear Raf,

    Session related functions are common in my plugin scripts, i will double check this function with recent versions and make sure if there is any conflict or not. Thank you for helping me in this troubleshooting process. I will surely release another version with dedication to you.

    Thanks,
    Fahad

    Thread Starter rafszypniewski

    (@rafszypniewski)

    @fahadmahmood Thank you for your help. Version 3.2.2 fixed site health notices :).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Rest & Loopback Errors’ is closed to new replies.