Audit log / lighttpd errors after pressing button

pressing the audit button (tools audit log) has no effect, the lighttpd log has the following entries:

2020-02-18 09:47:49: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice:  Undefined index: comment in /var/www/html/admin/scripts/pi-hole/php/add.php on line 21
2020-02-18 09:47:49: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning:  SQLite3::prepare(): Unable to prepare statement: 1, table domain_audit has no column named comment in /var/www/html/admin/scripts/pi-hole/php/database.php on line 140

Your debug token is: https://tricorder.pi-hole.net/sqo0xg9jfl

1 Like

This is already known but I haven't looked at it, so far.

Okay, solution proposed in

It would be very nice if you could test our fix with

pihole checkout web fix/audit_log

done, no more errors in /var/log/lighttpd/error.log, when pressing the button, but nothing appears to be happening. What is this button suppose to do? sorry for my ignorance.

There are several buttons, which one do you mean in particular?

Audit will simply add the domain to the audit list and tehreby remove from the set of shown domains. The Black- or Whitelist buttons do the same but they also add the domain to the respective list.

I mean the audit button (never use the whitelist or blacklist buttons)
So where is the audit list the audited domains are in the domain_audit table (confirmed), how can I modify (remove domains) it (using the web interface), where are the results? Again, sorry for my ignorance, I only test beta5 features, don't say I will use them all in real life...

When a domain is added to the audit list, it is supposed to disappear from the audit log page on the web interface, and a new domain (that is not yet on the audit list) should appear on the page.

Therefore, you can go over the domains that Pi-hole is querying, and click the "audit" button to mark it as reviewed, in a way, so that the audit log knows that you've looked at that domain already, and thus only show you different domains.

I noticed that, so that works.

And is that everything it does?

If that is the case, the solution can be merged, because it works.

Yes. It only means "I have seen this domain and acknowledge that is was either permitted or blocked (and I want it to stay like that)". We just memorize them to be able to exclude them from being shown. The stored domains are not used for anything else.

The fix has been merged into the beta code. Please go back on track using

pihole checkout web release/v5.0