[%# db_error.html This file handles site errors gracefully for the user while the script that called it prints out useful information into the error log files. Please check there if you are trying to track down a database error. It takes the following variable: type => script, db, or code script => item, geocat, etc (optional) subroutine => commitnew, listview (optional as well) reason => "execute" or "prepare" time => Thursday Blah %] CALF | ERROR [% INCLUDE groupshead %] [% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]

[% IF reason == 'repeatlist' %] The list you just tried to [% subroutine %], [% details %], seems to already be in the database. Chances are, this list has already been submitted but has not been approved. Please click the back button on your browser to return to the edit page. One thing to check is that you have included the list's name, not the address for subscribing and unsubscribing, in the list address box.

[% ELSE %]

Oops! - You've found an error!

[% IF type == 'db' %] The site encounted an error while trying to [% reason %] a query on the database. It's very likely that you've found a bug in the software behind this site. [% ELSIF type == 'mail' %] The site encountered an error while trying to send an email message. It's possible that this is due to a bug in the software that runs this site. [% ELSIF type == 'code' %] You've run into an error that the developers will need to correct. PLEASE report this error to us AS SOON as possible at dgroups@organizenow.net so we can fix it right away. [% ELSIF type == 'script' %] You've encountered an error when trying to run the following script: [% script %].pl

[% IF reason == 'invalidaction' %] The following action, "[% details or "none" %]", is not a valid action for this script. You may be trying to do something outside the bounds of what the site is designed to do. If you would can report this, we would appreciate it. [% END %] [% IF script == 'item' %] [% IF reason == 'noitem' %] You must specify a list ID number when trying to [% subroutine %] a list! [% ELSIF reason == 'toolong' %] Sorry, while you were trying [% subroutine %] on a list, you've entered something that was too long to fit in the database. Please let us know about this error and we will make sure that it is handled more gracefully in the future. [% ELSIF reason == 'badinput' %] Sorry, while you were trying [% subroutine %] on a list, you've entered something that was unexpected. We may be able to prevent this from happening in the future if you email us with this information. [% END %] [% END %] [% IF script == 'browse' %] [% IF reason == 'invalidbrowseby' %] Somehow, you've asked the software to either:

[% END %] [% END %] [% IF script == 'geocat' %] [% IF reason == 'invalidzip' %] While searching by zipcode you either entered an invalid zipcode, or we don't seem to have your zipcode in our database! If you believe you have reached this message in error, please don't hesitate to tell us and we'll look into fixing this error. [% END %] [% END %] [% ELSE %] You've encountered an unknown error! [% END %]

Please send an email to dgroups@organizenow.net describing what you were doing when the error occurred and the following date and time: (cut and paste "[% time %]").

Thanks for your help and we're sorry for the inconvenience!

[% END %] [% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] [% INCLUDE footer %]