Title: Error
Last modified: April 25, 2025

---

# Error

 *  Resolved [Roland](https://wordpress.org/support/users/rolandriddell/)
 * (@rolandriddell)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/error-1929/)
 * When I enable tag capture, I get the following error:
 * Fatal error: Uncaught Rubix\ML\Exceptions\RuntimeException: Estimator has not
   been trained. in ../wp-content/plugins/no-unsafe-inline/vendor/rubix/ml/src/Classifiers/
   KNearestNeighbors.php:208
 * Thanks for your help and for this great plugin!

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

 *  Plugin Author [Giuseppe](https://wordpress.org/support/users/mociofiletto/)
 * (@mociofiletto)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/error-1929/#post-18435683)
 * did you train the estimator by clustering your scripts?
 * did you first enable capturing for a while and, only after having captured some
   scripts, enable protection?
 *  Thread Starter [Roland](https://wordpress.org/support/users/rolandriddell/)
 * (@rolandriddell)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/error-1929/#post-18437635)
 * Thanks, Giuseppe. That was the issue.

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

The topic ‘Error’ is closed to new replies.

 * ![](https://ps.w.org/no-unsafe-inline/assets/icon-256x256.png?rev=2699768)
 * [No unsafe-inline](https://wordpress.org/plugins/no-unsafe-inline/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/no-unsafe-inline/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/no-unsafe-inline/)
 * [Active Topics](https://wordpress.org/support/plugin/no-unsafe-inline/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/no-unsafe-inline/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/no-unsafe-inline/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Roland](https://wordpress.org/support/users/rolandriddell/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/error-1929/#post-18437635)
 * Status: resolved