Title: REST API problem
Last modified: June 18, 2019

---

# REST API problem

 *  Resolved [kendawes](https://wordpress.org/support/users/kendawes/)
 * (@kendawes)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/rest-api-problem-2/)
 * Hi,
    I’ve installed Ninjafirewall on a site and it seems to be working properly.
 * However, when I run WP Site Health, I get the following…
 * > The REST API request failed due to an error.
   >  Error: [] cURL error 28: Operation
   > timed out after 10000 milliseconds with 0 bytes received
 * I have disabled all plugins and changed the theme and added plugins back one 
   at a time and its Ninjafirewall that triggers the message.
 * If Ninjafirewall is enabled in the Firewall Options – the problem exists.(there
   is no problem evident in the log files)
 * If Ninjafirewall is enabled and debug is turned on – the problem exists. (no 
   problem shows in the Firewall log)
 * If Ninjafirewall is active and disabled in Firewall Options – the problem goes
   away.
 * Any idea what’s going on? This problem doesn’t seem to occur on other websites
   where I have Ninjafirewall installed.

Viewing 5 replies - 16 through 20 (of 20 total)

[←](https://wordpress.org/support/topic/rest-api-problem-2/?output_format=md) [1](https://wordpress.org/support/topic/rest-api-problem-2/?output_format=md)
2

 *  [Alex@portalZINE](https://wordpress.org/support/users/portalzine/)
 * (@portalzine)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-2/page/2/#post-11788021)
 * Within the Rest API current_user_can will normally only work, if you provide 
   a valid NONCE.
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-2/page/2/#post-11789636)
 * The firewall is not calling the API, but it hooks `update_user_meta` and your
   application calls it while checking the password and PHP crash.
    I moved the 
   function a few lines below, that seems to work: 1. Make sure you’re running NF
   4.0.1. 2. Download this file: [https://plugins.trac.wordpress.org/export/HEAD/ninjafirewall/trunk/lib/utils.php](https://plugins.trac.wordpress.org/export/HEAD/ninjafirewall/trunk/lib/utils.php)
   3. Upload it over FTP into your `/ninjafirewall/lib/` folder.
 *  [Alex@portalZINE](https://wordpress.org/support/users/portalzine/)
 * (@portalzine)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-2/page/2/#post-11789835)
 * Great work, seems to be fine now.
 *  [Alex@portalZINE](https://wordpress.org/support/users/portalzine/)
 * (@portalzine)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/rest-api-problem-2/page/2/#post-11959091)
 * Hi,
    is that patch part of 4.0.3 ?
 * Thanks
    Alex
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/rest-api-problem-2/page/2/#post-11960493)
 * Yes it is. It was already part of 4.0.2 as well.

Viewing 5 replies - 16 through 20 (of 20 total)

[←](https://wordpress.org/support/topic/rest-api-problem-2/?output_format=md) [1](https://wordpress.org/support/topic/rest-api-problem-2/?output_format=md)
2

The topic ‘REST API problem’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 20 replies
 * 3 participants
 * Last reply from: [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/rest-api-problem-2/page/2/#post-11960493)
 * Status: resolved