mlutfy / reporterror

Sends you a detailed email when a CiviCRM fatal error occurs.
https://lab.civicrm.org/extensions/reporterror
10 stars 7 forks source link

Error spam - filtering? #11

Closed eileenmcnaughton closed 9 years ago

eileenmcnaughton commented 10 years ago

Hi,

I'm getting LOADS of these "The page you requested is currently unavailable" which makes me not want to role this out further. I'm wondering it the Error module should allow site administrators to filter specific strings - do you think that would be the right approach?

mlutfy commented 10 years ago

Yes, absolutely, although I would filter based on more specific criteria, such as the Googlebot user-agent, or lack or http-referer (ex: for the contribution page). Otherwise, your users may run into the error, but you will not be notified about it.

For example, if users hit the "back" button on some pages, they can get fatal errors. Another place where I discovered fatal errors that were freaking out, is when they would close their browser on tablets after finishing their registration/contribution, and later re-opening the page would create a fatal error. By checking the http-referer (empty http-referer and error message), we can assume they are restoring their browser session, and can just redirect them to the front page or specific campaign page.

Although in any case, if we have it as an option, I'm OK with it.

mlutfy commented 9 years ago

Most of these things have been implemented, ex: accessing a contribution page without a proper referer, and filtering bots (in v2.8 released today).