Title: Warning: Undefined array key &#8220;alert_id&#8221;
Last modified: January 31, 2024

---

# Warning: Undefined array key “alert_id”

 *  Resolved [imwebvizion](https://wordpress.org/support/users/webvizionph/)
 * (@webvizionph)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-alert_id/)
 * Hi,
 * There is an error message on the edit product page in WooCommerce.
 * **Warning**: Undefined array key “alert_id” in **/wp-content/plugins/wp-security-
   audit-log/classes/WPSensors/class-woocommerce-sensor.php** on line **3637**
 * **Warning**: Undefined array key “alert_id” in **/wp-content/plugins/wp-security-
   audit-log/classes/WPSensors/class-woocommerce-sensor.php** on line **3637**
   >

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

 *  Thread Starter [imwebvizion](https://wordpress.org/support/users/webvizionph/)
 * (@webvizionph)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-alert_id/#post-17386634)
 * I tried editing line **3637** with this code and now the error is gone:
 * if ( ! empty( $last_occurrence[0][‘alert_id’] ) && $last_occurrence[0][‘alert_id’]
   === $alert_id ) {
 * But still, I need you to check because I might have messed the plugin by doing
   this. Thank you!
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-alert_id/#post-17389460)
 * Thank you for using our plugin.
 * We can confirm the issue and the fix. We will include a fix in the upcoming update
   of the plugin, which is to be released in a few days / next week.
 * Sorry if this has caused any inconvenience. Should you have any other questions/
   issues, please do not hesitate to get in touch.
 * Have a great day.
 *  Thread Starter [imwebvizion](https://wordpress.org/support/users/webvizionph/)
 * (@webvizionph)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-alert_id/#post-17389564)
 * Okay, thank you very much!
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [2 years ago](https://wordpress.org/support/topic/warning-undefined-array-key-alert_id/#post-17774377)
 * Hello, today we have released update 5.0 which includes a fix for this issue.
   Please update your plugin copy to the latest version.
 * Should you have any other questions, do not hesitate to ask.
 * Have a great day.

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

The topic ‘Warning: Undefined array key “alert_id”’ is closed to new replies.

 * ![](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/)

 * 4 replies
 * 2 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/warning-undefined-array-key-alert_id/#post-17774377)
 * Status: resolved