• Resolved peter8nss

    (@peter8nss)


    Use of deprecated function reported with the following arguments:

    • “Simple_History\Loggers\Logger::__get”,
    • “get_slug()”,
    • 4.5.1

    Traceback:

    require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Simple_History\WP_REST_Events_Controller->get_items, Simple_History\Log_Query->query, Simple_History\Log_Query->query_overview, Simple_History\Log_Query->query_overview_mysql, Simple_History\Log_Query->get_inner_where, Simple_History\Log_Query->add_search_to_inner_where_query, Simple_History\Log_Query->match_logger_messages_with_search, Simple_History\Loggers\Logger->__get

    So it looks like the call is made from Log_Query::match_logger_messages_with_search presumably this line:

    $one_logger_slug = $one_logger['instance']->slug;

    Which I assume should be:

    $one_logger_slug = $one_logger['instance']->get_slug();
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pär Thernström

    (@eskapism)

    Thanks for the bug report! I will fix this in the next version. Don’t quite understand why this does not show up on my local test site (with Query Monitor + debug.log enabled)…

    Thread Starter peter8nss

    (@peter8nss)

    Its odd. I only see it when I’m logged in as administrator and I’m searching the event log for a particular word.

    ps: on my debug test site I connect to the deprecated_function_run hook and write to my Simple History log with traceback. Hence, pick up the occasional oddity like this.

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

The topic ‘Deprecated function’ is closed to new replies.