• 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.