Title: [Bug] Undefined property: stdClass::$context_message_key
Last modified: June 1, 2021

---

# [Bug] Undefined property: stdClass::$context_message_key

 *  [Ducktales](https://wordpress.org/support/users/ducktales/)
 * (@ducktales)
 * [5 years ago](https://wordpress.org/support/topic/bug-undefined-property-stdclasscontext_message_key/)
 * Hi, there is a bug on action ‘simple_history_api’. On line 55 of _/dropins/SimpleHistoryIpInfoDropin.
   php_ there is this code:
 * `if (!in_array($row->context_message_key, $arr_keys_to_log)) {`
 * Looking at the `$row` data in the Sentry bugtracer it should be probably something
   like `$row->context->_message_key`
 * **Stack trace:**
 *     ```
       ErrorException: Warning: Undefined property: stdClass::$context_message_key
       #11 /wp-content/plugins/simple-history/dropins/SimpleHistoryIpInfoDropin.php(55): SimpleHistoryIpInfoDropin::row_header_display_ip_address_filter
       #10 /wp-includes/class-wp-hook.php(292): WP_Hook::apply_filters
       #9 /wp-includes/plugin.php(212): apply_filters
       #8 /wp-content/plugins/simple-history/loggers/SimpleLogger.php(553): SimpleLogger::getLogRowHeaderIPAddressOutput
       #7 /wp-content/plugins/simple-history/loggers/SimpleLogger.php(666): SimpleLogger::getLogRowHeaderOutput
       #6 /wp-content/plugins/simple-history/inc/SimpleHistory.php(2300): SimpleHistory::getLogRowHeaderOutput
       #5 /wp-content/plugins/simple-history/inc/SimpleHistory.php(2380): SimpleHistory::getLogRowHTMLOutput
       #4 /wp-content/plugins/simple-history/inc/SimpleHistory.php(671): SimpleHistory::api
       #3 /wp-includes/class-wp-hook.php(292): WP_Hook::apply_filters
       #2 /wp-includes/class-wp-hook.php(316): WP_Hook::do_action
       #1 /wp-includes/plugin.php(484): do_action
       #0 /wp-admin/admin-ajax.php(187): null
       ```
   
 * Simple History v2.42.0

The topic ‘[Bug] Undefined property: stdClass::$context_message_key’ is closed to
new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Ducktales](https://wordpress.org/support/users/ducktales/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/bug-undefined-property-stdclasscontext_message_key/)
 * Status: not resolved