This is a pre-release of a Drupal 5 module which allows you to record JavaScript errors from visitors either to the Drupal log, or (if you're really keen to hear about it!) have immediate notifications sent by email.
On the Paper Fish website, we use jCarousel to display a carousel of similar products. It works really well, but for some Safari users it gave a strange error, which was proving hard to reproduce on our test machines. In order to leverage the users visiting the site in order to test the system more completely, we produced this module.
If a visitor's browser has a JS error, it calls window.onerror(), which we redefine with a function that makes a POST to a Drupal path that will record the error message and some other forensic data, and optionally email you to let you know.
Feedback welcome!
Readme:
Description ----------- This module allows you to enable logging (via watchdog or email) of JavaScript errors experienced by visitors to your site. Dependencies ------------ Drupal's default jQuery installation, or better. And Javascript on the client! Installation ------------ 1) Place this module directory in your modules folder (this will usually be "sites/all/modules/"). 2) Enable the module. 3) Configure the logging settings at ?q=admin/settings/jserrorlog Usage ----- See http://www.giantrobot.co.nz/blog/js-error-logger-drupal5-pre-release Author ------ Chris Burgess * mail: <use contact form here> * website: http://www.giantrobot.co.nz The author can be contacted for paid customizations of this module as well as Drupal consulting, development and installation.
Comments
Post new comment