NinjaFirewall doesn’t load any script outside its own page ( 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:
- Edit your wp-config.php file
- Search for:
define('WP_DEBUG', false);
- Replace with:
define('WP_DEBUG', true);
- Add this line below:
define( 'WP_DEBUG_LOG', true );
The log (if any) will be saved to “/wp-content/debug.log”.
I got the same error. We just migrated our DB from MySQl 5.7 to MariaDB 10.11.
I checked it using this script: https://nintechnet.com/share/wp-db.txt. Everything was OK except for the “Checking rules integrity” step, which returned the error: “Unserialize failed.”
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.
Thank you! The plugin is now working properly again.