Title: Fatal error: Uncaught Error: Class &#8220;WSAL_Models_OccurrenceQuery&#8221;
Last modified: June 26, 2026

---

# Fatal error: Uncaught Error: Class “WSAL_Models_OccurrenceQuery”

 *  Resolved [Oded Talmon](https://wordpress.org/support/users/odedta/)
 * (@odedta)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-wsal_models_occurrencequery/)
 * Hello,
 * I’m on the latest WooCommerce (v10.9.1) and WordPress (v7.0) and WP Activity 
   Log (+WooCommerce Activity Log extension) plugins are activated. When I try to
   edit a Product. I get this error:
 * >     ```wp-block-code
   >     [26-Jun-2026 16:48:25 UTC] PHP Fatal error:  Uncaught Error: Class "WSAL_Models_OccurrenceQuery" not found in {MY_PATH}wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php:3300Stack trace:#0 {MY_PATH}wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php(3261): WSAL\Plugin_Sensors\WooCommerce_Sensor::was_triggered(9072)#1 {MY_PATH}wp-includes/class-wp-hook.php(341): WSAL\Plugin_Sensors\WooCommerce_Sensor::editing_product(Object(WP_Post))#2 {MY_PATH}wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(Object(WP_Post), Array)#3 {MY_PATH}wp-includes/plugin.php(522): WP_Hook->do_action(Array)#4 {MY_PATH}wp-admin/edit-form-advanced.php(482): do_action('post_edit_form_...', Object(WP_Post))#5 {MY_PATH}wp-admin/post.php(206): require('{MY_PATH}...')#6 {main}  thrown in {MY_PATH}wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php on line 3300
   >     ```
   > 
 * It crashes the edit screen.

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

 *  Plugin Support [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * (@lucianwpwhite)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-wsal_models_occurrencequery/#post-18950608)
 * Hi there [@odedta](https://wordpress.org/support/users/odedta/) ,
 * Thank you for reaching out, and for the detailed error log , that’s really helpful.
 * Before we dig deeper, there’s an** important **bit of context: we’ve moved our
   extensions directly into the core of WP Activity Log, so the separate WooCommerce
   extension is no longer needed and can actually conflict with the main plugin.
   The fatal error you’re seeing (the missing `WSAL_Models_OccurrenceQuery` class)
   is consistent with that kind of overlap.
 * As a first step, could you kindly deactivate and remove the **WooCommerce Activity
   Log extension** (`wp-activity-log-for-woocommerce`) and simply keep the main 
   WP Activity Log plugin active **_(running it’s latest version 5.6.4)_** on its
   own? WooCommerce logging is now built in, so you won’t lose any functionality.
   Once that’s done, please try editing a product again and let us know whether 
   the error still occurs.
 * To help us investigate further if needed, would you also mind sharing the following:
    - Your PHP version
    - The theme currently in use
    - The new error stack (if it still happens also with the extension removed)
 * Looking forward to your reply.
 *  Thread Starter [Oded Talmon](https://wordpress.org/support/users/odedta/)
 * (@odedta)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-wsal_models_occurrencequery/#post-18951294)
 * Got it! I disabled and removed that extension. Thanks!
    -  This reply was modified 1 week, 1 day ago by [Oded Talmon](https://wordpress.org/support/users/odedta/).
      Reason: typo
 *  Plugin Support [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * (@lucianwpwhite)
 * [1 week ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-wsal_models_occurrencequery/#post-18951618)
 * Glad everything is now sorted [@odedta](https://wordpress.org/support/users/odedta/)!
   Don’t forget to drop us a review [here on the forums](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/#new-post)
   if you enjoy our plugin and support as it really helps out! 
   Have a nice day 
   ahead!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-error-class-wsal_models_occurrencequery%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * Last activity: [1 week ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-wsal_models_occurrencequery/#post-18951618)
 * Status: resolved