Title: random endless loading and error message
Last modified: November 11, 2020

---

# random endless loading and error message

 *  Resolved [getupworks](https://wordpress.org/support/users/getupworks/)
 * (@getupworks)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-endless-loading-and-error-message/)
 * from time to time the wp admin as well as the frontend will load for ~30-60secs
   and in the end this message will show up on the dashboard:
 * >  NinjaFirewall fatal error: Cannot retrieve user rules from database (#2). 
   > Review your installation, your site is not protected.
 * on the next load everything will work fine again. this is rather confusing…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frandom-endless-loading-and-error-message%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-endless-loading-and-error-message/#post-13648646)
 * Does it happen even when NinjaFirewall is disabled?
    It looks to me that you’re
   having issues with your database (bottleneck?). Try to put WordPress is debugging
   mode: 1. Edit your wp-config.php 2. Search for: `define('WP_DEBUG', false);` 
   3. Replace with: `define('WP_DEBUG', true);` 4. Add this line below: `define('
   WP_DEBUG_LOG', true );`
 * The log (if any) will be located in “/wp-content/debug.log”.
 *  Thread Starter [getupworks](https://wordpress.org/support/users/getupworks/)
 * (@getupworks)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-endless-loading-and-error-message/#post-13657381)
 * did this and the logfile looks good. as the problem didn’t occur again it was
   probably hosting-related. sorry for bothering you.
 *  Thread Starter [getupworks](https://wordpress.org/support/users/getupworks/)
 * (@getupworks)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-endless-loading-and-error-message/#post-13680164)
 * [@nintechnet](https://wordpress.org/support/users/nintechnet/) ok so after this
   happened again for a few times, i made contact with my provider. they referred
   to [this article](https://blogvault.net/an-in-depth-review-of-ninjafirewall-against-common-wordpress-attacks/)
   and said, sth like the firwall opens a connection for every plugin etc and it
   can occur that there’s too many connections. which apparently they can’t change.
   basically they recommended to switch to another firewall plugin. i’m a bit lost
   tbh
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-endless-loading-and-error-message/#post-13681648)
 * I really don’t know what they mean about “opens a connection for every plugin”.
 * Enable debugging in WordPress:
    1. Edit your wp-config.php 2. Search for: `define('
   WP_DEBUG', false);` 3. Replace with: `define('WP_DEBUG', true);` 4. Add this 
   line below: `define( 'WP_DEBUG_LOG', true );`
 * The log (if any) will be located in “/wp-content/debug.log”.
    It may display 
   the reason why you’re having issues.
 * After debugging, undo the above modifications.
 *  Thread Starter [getupworks](https://wordpress.org/support/users/getupworks/)
 * (@getupworks)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-endless-loading-and-error-message/#post-13685130)
 * i did that. the log contains an undefined variable and 2 google maps scripts 
   are called in an incorrect way. those things keep appearing in the log all the
   time.
    when the problem i described happens, nothing else is logged
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-endless-loading-and-error-message/#post-13691094)
 * Could you ask your host to give more detail about the issue, i.e. about their“
   opens a connection for every plugin” response?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘random endless loading and error message’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/random-endless-loading-and-error-message/#post-13691094)
 * Status: resolved