WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Logging Service
WordPress Logging Service doesn't delete log entries in bulk (3 posts)

  1. tomdkat
    Member
    Posted 11 months ago #

    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() ?>
            </form>

    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.

    Thanks!

    Peace...

    http://wordpress.org/plugins/wordpress-logging-service/

  2. maurta
    Member
    Posted 8 months ago #

    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'] ?>"

    Thanks.

  3. tomdkat
    Member
    Posted 8 months ago #

    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. :)

    Peace...

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.