• Resolved Jim

    (@jwmc)


    The threads I’ve brought this up on are closed or marked as resolved, but the problem is still there. There is no accompanying database error as there was long ago, but the email logs just pile up. From time to time I delete the older ones up to the time threshold I set, but nothing ever gets deleted.

Viewing 5 replies - 1 through 5 (of 5 total)
  • yeah same the error I see is Warning: Illegal string offset ‘auto_delete’ in /home/customer/www/

    Curious. I added the plugin WP Crontrol, to check cronjobs. I can see there is a hook that is set:

    Hook: wp-mail-catcher_0
    Parameters: None
    Next execution: 2022-04-16 15:09:04 (in 23 hours 56 minutes)
    Callback: WpMailCatcher\ExpiredLogManager::removeExpiredLogs()
    Interval: everyday

    This cronjob is run, so this is fine.

    But, it seems it doesn’t EVER load any Log to delete, probably because there are no parameters at all in the call to the method get:
    $logsGet = Logs::get();

    This is the only case in all the calls to that method where the argument is empty.

    So, the strange hybrid of WP_Query’s args and WPDB’s query, always returns an empty set of logs, thus, nothing will ever be deleted.

    I would suggest that the removeExpiredLogs() should contain a simple WPDB query on the table that deletes all the logs where time is less than “now minus the interval set in the settings”.

    I just opened a PR which fixes this problem. Hopefully James will merge it soon.

    Thread Starter Jim

    (@jwmc)

    @pbiron Thank you

    Plugin Author JWardee

    (@wardee)

    Should be resolved in V2.0.0

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Auto-delete still not working’ is closed to new replies.