Title: WP Rest &amp; Loopback Errors
Last modified: November 14, 2019

---

# WP Rest & Loopback Errors

 *  Resolved [rafszypniewski](https://wordpress.org/support/users/rafszypniewski/)
 * (@rafszypniewski)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/wp-rest-loopback-errors/)
 * 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](https://wordpress.org/support/users/rafszypniewski/)
 * (@rafszypniewski)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/wp-rest-loopback-errors/#post-12133691)
 * 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
    -  This reply was modified 6 years, 6 months ago by [rafszypniewski](https://wordpress.org/support/users/rafszypniewski/).
    -  This reply was modified 6 years, 6 months ago by [rafszypniewski](https://wordpress.org/support/users/rafszypniewski/).
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/wp-rest-loopback-errors/#post-12134531)
 * 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](https://wordpress.org/support/users/rafszypniewski/)
 * (@rafszypniewski)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/wp-rest-loopback-errors/#post-12176857)
 * [@fahadmahmood](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woocommerce-discounts-plus/assets/icon-256x256.gif?rev=2467408)
 * [Discounts & Promotions Automation](https://wordpress.org/plugins/woocommerce-discounts-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-discounts-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-discounts-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-discounts-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-discounts-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-discounts-plus/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [rafszypniewski](https://wordpress.org/support/users/rafszypniewski/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/wp-rest-loopback-errors/#post-12176857)
 * Status: resolved