Title: Cannot retrieve user rules from database
Last modified: April 14, 2024

---

# Cannot retrieve user rules from database

 *  Resolved [Joey George](https://wordpress.org/support/users/csine/)
 * (@csine)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/cannot-retrieve-user-rules-from-database-3/)
 * Occasionally hitting this error on my client site whenever I visit Plugins page
   as admin… 
   Already ran wp-db.php – all OK.What can be causing this? Apparently,
   the plugins page load takes a long time… so definitely some script is blocking…?
    -  This topic was modified 2 years, 1 month ago by [Joey George](https://wordpress.org/support/users/csine/).

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/cannot-retrieve-user-rules-from-database-3/#post-17688096)
 * NinjaFirewall doesn’t load any script outside its own page ( [https://domain.com/wp-admin/admin.php?page=NinjaFirewall](https://domain.com/wp-admin/admin.php?page=NinjaFirewall)).
   
   Check the firewall’s dashboard page: do you see any errors or warnings ?Is there
   anything in the PHP error log ? You can enable WordPress debugging:
    1. Edit your wp-config.php file
    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 saved to “/wp-content/debug.log”.
 *  [flojuh](https://wordpress.org/support/users/flojuh/)
 * (@flojuh)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/cannot-retrieve-user-rules-from-database-3/#post-17944158)
 * I got the same error. We just migrated our DB from MySQl 5.7 to MariaDB 10.11.
 *  [flojuh](https://wordpress.org/support/users/flojuh/)
 * (@flojuh)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/cannot-retrieve-user-rules-from-database-3/#post-17944300)
 * I checked it using this script: [https://nintechnet.com/share/wp-db.txt](https://nintechnet.com/share/wp-db.txt).
   Everything was OK except for the “Checking rules integrity” step, which returned
   the error: “Unserialize failed.”
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/cannot-retrieve-user-rules-from-database-3/#post-17944699)
 * It looks like the migration corrupted the data in the DB.
   Check the database 
   tables for error. The firewall uses the WordPress `options` tables.Alternatively,
   try to restore an older backup: go to “NinjaFirewall > Firewall Options” and 
   in the “Configuration backup” list, select the last known good backup file that
   was created before the migration.
 *  [flojuh](https://wordpress.org/support/users/flojuh/)
 * (@flojuh)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/cannot-retrieve-user-rules-from-database-3/#post-17947624)
 * Thank you! The plugin is now working properly again.

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

The topic ‘Cannot retrieve user rules from database’ 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/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 5 replies
 * 3 participants
 * Last reply from: [flojuh](https://wordpress.org/support/users/flojuh/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/cannot-retrieve-user-rules-from-database-3/#post-17947624)
 * Status: resolved