Support » Plugin: Simple History » Not Displaying and Changes

  • Resolved pixelspokefitz

    (@pixelspokefitz)


    I have an example of a site where in the admin area Simple History is not displaying any results, and when I export to JSON or CSV I just get an empty file. We use Simple History on all of our sites, and I have never seen this before.

    I have copied the site to a staging site, disabled all other plugins, and activated the twentyseventeen theme. And, I am still not seeing any changes.

    I do see that there are records in the database that should be rendering though.
    Table name Size Rows
    wp_simple_history 0.64 MB 2,450 rows
    wp_simple_history_contexts 4.52 MB 21,173 rows

    I am not seeing any logs in the error log that look related.

    Does this sound at all familiar to anyone?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just as a follow up on my debugging progress

    
    $query = new SimpleHistoryLogQuery();
    
    $query_args = array(
        'paged' => 1,
        'posts_per_page' => 3000,
    );
    
    $events = $query->query($query_args);
    

    returns

    
    [21-Oct-2019 20:54:01 UTC] $events
    [21-Oct-2019 20:54:01 UTC] Array
    (
        [total_row_count] => 0
        [pages_count] => 0
        [page_current] => 1
        [page_rows_from] => 1
        [page_rows_to] => 0
        [max_id] => 0
        [min_id] => 0
        [log_rows_count] => 0
        [log_rows] => Array
            (
            )
    
    )
    

    When it should return a set of events that I am seeing in the database

    Plugin Author Pär Thernström

    (@eskapism)

    When you say it’s not displaying any results do you mean the log says “no results” or similar or do you just get an empty blank screen or something like that?

    Could you open the simple history page and also open the developer tools in your web browser and see if you see any errors there?

    Sorry, it turned out that it was an error in my code unrelated to the plugin. I should have closed this out a while ago, but thank you for your reply.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.