Support » Plugin: WordPress Logging Service » WordPress Logging Service doesn't delete log entries in bulk

  • tomdkat


    I’m running WordPress Logging Service in WordPress 3.6 and for the most part, it works fine. The main issue I have is when I try to delete log messages in bulk. Here is what I do and the results:

    1) Login to WordPress
    2) Go to “Dashboard/System Logs”
    3) I see the log entries shown
    4) I click “Bulk actions” and choose “Delete”
    5) I select all of the log entries
    6) I click “Apply”
    7) I’m taken back to the Dashboard “Home” page

    At this point, if I click “Dashboard/System Logs” again, the log entries I thought I deleted are no longer shown.

    I did some research and found a solution which seems to work for me. In the “Custom List Table” example plugin, I found the HTML form used and it contained a relevant HTML comment:

    <!-- Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions -->
            <form id="movies-filter" method="get">
               <strong> <!-- For plugins, we also need to ensure that the form posts back to our current page -->
                <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /></strong>
                <!-- Now we can render the completed list table -->
                <?php $testListTable->display() ?>

    The hidden INPUT field with name “page” is what I added to admin-overview.php and now when I perform the steps above, the log entries are deleted in step #6 and I remain on the “WordPress Logging Service” page, as expected.

    I have screen shots I can send via e-mail, if necessary.



Viewing 2 replies - 1 through 2 (of 2 total)
  • I see the exact same behaviour. Can you please elaborate how you solved the issue, i.e. where in admin-overview.php did you add the code that generates the extra HTML input field? I assume the code is:

    <input type=”hidden” name=”page” value=”<?php echo $_REQUEST[‘page’] ?>”


    Hi! Since starting this thread, WordPress Logging Service has been updated. So, my changes were wiped out and I don’t have a copy on my computer anymore. 🙁

    Yes, the hidden input field you identified above is what needed to be added to one of the forms defined in admin-overview.php. However, since the plugin has been updated, you’ll need to look at the current plugin files to see which form needs that hidden field added.

    When I get some time, I can install the latest version of the plugin and if I can recreate the problem, I’ll post more information about my solution. 🙂


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Logging Service doesn't delete log entries in bulk’ is closed to new replies.