PageRenderTime 29ms CodeModel.GetById 11ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/template/en/default/global/code-error.html.tmpl

https://bitbucket.org/a1kmm/physiome-tracker
Go Template | 544 lines | 440 code | 104 blank | 0 comment | 0 complexity | b79ac2f9aa9d0e70683cbd629f2e73cc MD5 | raw file
  1[%# The contents of this file are subject to the Mozilla Public
  2  # License Version 1.1 (the "License"); you may not use this file
  3  # except in compliance with the License. You may obtain a copy of
  4  # the License at http://www.mozilla.org/MPL/
  5  #
  6  # Software distributed under the License is distributed on an "AS
  7  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  8  # implied. See the License for the specific language governing
  9  # rights and limitations under the License.
 10  #
 11  # The Original Code is the Bugzilla Bug Tracking System.
 12  #
 13  # The Initial Developer of the Original Code is Netscape Communications
 14  # Corporation. Portions created by Netscape are
 15  # Copyright (C) 1998 Netscape Communications Corporation. All
 16  # Rights Reserved.
 17  #
 18  # Contributor(s): Gervase Markham <gerv@gerv.net>
 19  #%]
 20
 21[%# INTERFACE:
 22  # header_done: boolean. True if the header has already been printed.
 23  # error: string. The tag of the error.
 24  # variables: hash. Useful data about the problem. The keys are the variable
 25  #  names, and the values the variable values.
 26  #%]
 27
 28[%# This is a list of all the possible code errors. Please keep them in
 29  # alphabetical order by error tag, and leave a blank line between errors.
 30  #
 31  # Note that you must explicitly filter every single template variable
 32  # in this file; if you do not wish to change it, use the "none" filter.
 33  #%]
 34
 35[% PROCESS "global/field-descs.none.tmpl" %]
 36
 37[% DEFAULT title = "Internal Error" %]
 38
 39[% error_message = BLOCK %]
 40  [% IF error == "auth_invalid_email" %]
 41    [% title = "Invalid Email Address" %]
 42    We received an email address (<b>[% addr FILTER html %]</b>)
 43    that didn't pass our syntax checking for a legal email address,
 44    when trying to create or update your account.
 45    [% IF default %]
 46      A legal address must contain exactly one '@',
 47      and at least one '.' after the @.
 48    [% ELSE %]
 49      [%+ Param('emailregexpdesc') FILTER html_light %]
 50    [% END %]
 51    It also must not contain any illegal characters.
 52
 53  [% ELSIF error == "authres_unhandled" %]
 54    The result value of [% value FILTER html %] was not handled by
 55    the login code.
 56
 57  [% ELSIF error == "bad_page_cgi_id" %]
 58    [% title = "Invalid Page ID" %]
 59    The ID <code>[% page_id FILTER html %]</code> is not a
 60    valid page identifier.
 61
 62  [% ELSIF error == "bad_arg" %]
 63    Bad argument <code>[% argument FILTER html %]</code> sent to
 64    <code>[% function FILTER html %]</code> function.
 65
 66  [% ELSIF error == "bug_error" %]
 67    Trying to retrieve [% terms.bug %] [%+ bug.bug_id FILTER html %] returned 
 68    the error [% bug.error FILTER html %].
 69    
 70  [% ELSIF error == "chart_data_not_generated" %]
 71    [% admindocslinks = {'extraconfig.html' => 'Setting up Charting'} %]
 72    [% IF product %]
 73      Charts for the <em>[% product FILTER html %]</em> product are not
 74      available yet because no charting data has been collected for it since it
 75      was created.
 76    [% ELSE %]
 77      No charting data has been collected yet.
 78    [% END %]
 79    Please wait a day and try again.
 80    If you're seeing this message after a day, then you should contact
 81    <a href="mailto:[% Param('maintainer') %]">[% Param('maintainer') %]</a>
 82    and reference this error.
 83
 84  [% ELSIF error == "chart_datafile_corrupt" %]
 85    The chart data file [% file FILTER html %] is corrupt.
 86        
 87  [% ELSIF error == "chart_dir_nonexistent" %]
 88    One of the directories <tt>[% dir FILTER html %]</tt> and 
 89    <tt>[% graph_dir FILTER html %]</tt> does not exist.
 90  
 91  [% ELSIF error == "chart_file_open_fail" %]
 92    Unable to open the chart datafile <tt>[% filename FILTER html %]</tt>.
 93 
 94  [% ELSIF error == "column_alter_nonexistent_fk" %]
 95    You attempted to modify the foreign key for 
 96    [%+ table FILTER html %].[% column FILTER html %], but there is
 97    no foreign key on that column.
 98 
 99  [% ELSIF error == "column_not_null_without_default" %]
100    Failed adding the column [% name FILTER html %]:
101    You cannot add a NOT NULL column with no default to an existing table
102    unless you specify something for the <code>$init_value</code> argument.
103
104  [% ELSIF error == "column_not_null_no_default_alter" %]
105    You cannot alter the [% name FILTER html %] column to be NOT NULL 
106    without specifying a default or something for $set_nulls_to, because
107    there are NULL values currently in it.
108
109  [% ELSIF error == "comment_extra_data_not_allowed" %]
110    You tried to set the <code>extra_data</code> field to 
111    '[% extra_data FILTER html %]' but comments of type [% type FILTER html %]
112    do not accept an <code>extra_data</code> argument.
113
114  [% ELSIF error == "comment_extra_data_required" %]
115    Comments of type [% type FILTER html %] require an <code>extra_data</code>
116    argument to be set.
117
118  [% ELSIF error == "comment_extra_data_not_numeric" %]
119    You tried to set the <code>extra_data</code> field to
120    '[% extra_data FILTER html %]' but comments of type [% type FILTER html %]
121    require a numeric <code>extra_data</code> argument.
122
123  [% ELSIF error == "comment_type_invalid" %]
124    '[% type FILTER html %]' is not a valid comment type.
125
126  [% ELSIF error == "db_rename_conflict" %]
127    Name conflict: Cannot rename [% old FILTER html %] to
128    [%+ new FILTER html %] because [% new FILTER html %] already exists.
129
130  [% ELSIF error == "cookies_need_value" %]
131    Every cookie must have a value.
132
133  [% ELSIF error == "env_no_email" %]
134    [% terms.Bugzilla %] did not receive an email address from the 
135    environment.
136    [% IF Param("auth_env_email") %]
137      This means that the '[% Param("auth_env_email") FILTER html %]'
138      environment variable was empty or did not exist.
139    [% ELSE %]
140      You need to set the "auth_env_email" parameter to the name of
141      the environment variable that will contain the user's email
142      address.
143    [% END %]
144
145  [% ELSIF error == "extension_disabled" %]
146    [% title = "Extension Disabled" %]
147    You cannot access this page because the extension '[% name FILTER html %]'
148    is disabled.
149
150  [% ELSIF error == "extension_must_be_subclass" %]
151    <code>[% package FILTER html %]</code> from 
152    <code>[% filename FILTER html %]</code> is not a subclass of
153    <code>[% class FILTER html %]</code>.
154
155  [% ELSIF error == "extension_must_return_name" %]
156    <code>[% extension FILTER html %]</code> returned
157    <code>[% returned FILTER html %]</code>, which is not a valid name
158    for an extension. Extensions must return their name, not <code>1</code>
159    or a number. See the documentation of
160    <a href="[% docs_urlbase FILTER html %]api/Bugzilla/Extension.html">Bugzilla::Extension</a>
161    for details.
162
163  [% ELSIF error == "extension_no_name" %]
164    We did not find a <code>NAME</code> method in 
165    <code>[% package FILTER html %]</code> (loaded from
166    <code>[% filename FILTER html %]</code>). This means that
167    the extension has one or more of the following problems:
168
169    <ul>
170      <li><code>[% filename FILTER html %]</code> did not define a
171        <code>[% package FILTER html %]</code> package.</li>
172      <li><code>[% package FILTER html %]</code> did not define a
173        <code>NAME</code> method (or the <code>NAME</code> method
174        returned an empty string).</li>
175    </ul>
176
177  [% ELSIF error == "extern_id_conflict" %]
178    The external ID '[% extern_id FILTER html %]' already exists
179    in the database for '[% username FILTER html %]', but your
180    account source says that '[% extern_user FILTER html %]' has that ID.
181
182  [% ELSIF error == "field_choice_must_use_type" %]
183    When you call a class method on <code>Bugzilla::Field::Choice</code>,
184    you must call <code>Bugzilla::Field::Choice-&gt;type('some_field')</code>
185    to generate the right class (you can't call class methods directly
186    on Bugzilla::Field::Choice).
187
188  [% ELSIF error == "field_not_custom" %]
189    '[% field.description FILTER html %]' ([% field.name FILTER html %])
190    is not a custom field.
191
192  [% ELSIF error == "field_type_not_specified" %]
193    [% title = "Field Type Not Specified" %]
194    You must specify a type when creating a custom field.
195
196  [% ELSIF error == "illegal_content_type_method" %]
197    Your form submission got corrupted somehow.  The <em>content
198    method</em> field, which specifies how the content type gets determined,
199    should have been either <em>autodetect</em>, <em>list</em>,
200    or <em>manual</em>, but was instead
201    <em>[% contenttypemethod FILTER html %]</em>.
202
203  [% ELSIF error == "illegal_field" %]
204    A legal [% field FILTER html %] was not set.
205
206  [% ELSIF error == "invalid_attach_id_to_obsolete" %]
207     The attachment number of one of the attachments you wanted to obsolete,
208     [%+ attach_id FILTER html %], is invalid.
209          
210  [% ELSIF error == "invalid_customfield_type" %]
211    [% title = "Invalid Field Type" %]
212    The type <em>[% type FILTER html %]</em> is not a valid field type.
213
214  [% ELSIF error == "invalid_dimensions" %]
215    [% title = "Invalid Dimensions" %]
216    The width or height specified is not a positive integer.
217
218  [% ELSIF error == "invalid_feature" %]
219    [% title = "Invalid Feature Name" %]
220    [% feature FILTER html %] is not a valid feature name. See
221    <code>OPTIONAL_MODULES</code> in 
222    <code>Bugzilla::Install::Requirements</code> for valid names.
223
224  [% ELSIF error == "invalid_flag_association" %]
225    [% title = "Invalid Flag Association" %]
226    Some flags do not belong to
227    [% IF attach_id %]
228      attachment [% attach_id FILTER html %].
229    [% ELSE %]
230      [%+ terms.bug %] [%+ bug_id FILTER html %].
231    [% END %]
232
233  [% ELSIF error == "invalid_series_id" %]
234    [% title = "Invalid Series" %]
235    The series_id [% series_id FILTER html %] is not valid. It may be that
236    this series has been deleted.
237
238  [% ELSIF error == "invalid_timestamp" %]
239    The entered timestamp <code>[% timestamp FILTER html %]</code> could not
240    be parsed into a valid date and time.
241
242  [% ELSIF error == "invalid_webservergroup" %]
243    There is no such group: [% group FILTER html %]. Check your $webservergroup
244    setting in [% constants.bz_locations.localconfig FILTER html %].
245
246  [% ELSIF error == "mismatched_bug_ids_on_obsolete" %]
247    Attachment [% attach_id FILTER html %] is attached to another [% terms.bug %],
248    but you tried to flag it as obsolete while creating a new attachment to 
249    [%+ terms.bug %] [%+ my_bug_id FILTER html %].
250
251  [% ELSIF error == "feature_disabled" %]
252    The [% install_string("feature_$feature") FILTER html %] feature is not
253    available in this [% terms.Bugzilla %]. 
254    [% IF user.in_group('admin') %]
255      If you would like to enable this feature, please run 
256      <kbd>checksetup.pl</kbd> to see how to install the necessary
257      requirements for this feature.
258    [% END %]
259
260  [% ELSIF error == "flag_unexpected_object" %]
261    [% title = "Object Not Recognized" %]
262    Flags cannot be set for objects of type [% caller FILTER html %].
263    They can only be set for [% terms.bugs %] and attachments.
264
265  [% ELSIF error == "flag_requestee_disabled" %]
266    [% title = "Flag not Requestable from Specific Person" %]
267    You can't ask a specific person for
268    <em>[% type.name FILTER html %]</em>.
269  
270  [% ELSIF error == "flag_type_inactive" %]
271    [% title = "Inactive Flag Type" %]
272    The flag type [% type FILTER html %] is inactive and cannot be used
273    to create new flags.
274
275  [% ELSIF error == "flag_type_target_type_invalid" %]
276    The target type was neither <em>[% terms.bug %]</em> nor <em>attachment</em>
277    but rather <em>[% target_type FILTER html %]</em>.
278  
279  [% ELSIF error == "invalid_field_name" %]
280    Can't use [% field FILTER html %] as a field name.
281
282  [% ELSIF error == "invalid_keyword_id" %]
283    The keyword ID <em>[% id FILTER html %]</em> couldn't be
284    found.
285
286  [% ELSIF error == "invalid_user" %]
287    [% title = "Invalid User" %]
288    There is no user account
289    [% IF user_id %]
290      with ID <em>[% user_id FILTER html %]</em>.
291    [% ELSIF user_login %]
292      with login name <em>[% user_login FILTER html %]</em>.
293    [% ELSE %]
294      given.
295    [% END %]
296
297  [% ELSIF error == "jobqueue_insert_failed" %]
298   [% title = "Job Queue Failure" %]
299    Inserting a <code>[% job FILTER html %]</code> job into the Job 
300    Queue failed with the following error: [% errmsg FILTER html %]
301
302  [% ELSIF error == "jobqueue_no_job_mapping" %]
303    <code>Bugzilla::JobQueue</code> has not been configured to handle
304    the job "[% job FILTER html %]".  You need to add this job type
305    to the <code>JOB_MAP</code> constant in <code>Bugzilla::JobQueue</code>,
306    perhaps by using the 'job_map' hook.
307
308  [% ELSIF error == "ldap_bind_failed" %]
309    Failed to bind to the LDAP server. The error message was: 
310    <code>[% errstr FILTER html %]</code>
311
312  [% ELSIF error == "ldap_cannot_retreive_attr" %]
313    The specified LDAP attribute [% attr FILTER html %] was not found.
314
315  [% ELSIF error == "ldap_connect_failed" %]
316    Could not connect to the LDAP server(s) <code>[% server FILTER html %]</code>.
317
318  [% ELSIF error == "ldap_start_tls_failed" %]
319    Could not start TLS with LDAP server: <code>[% error FILTER html %]</code>.
320
321  [% ELSIF error == "ldap_search_error" %]
322    An error occurred while trying to search LDAP for 
323    &quot;[% username FILTER html %]&quot;: 
324    [% IF errstr %]
325      <code>[% errstr FILTER html %]</code>
326    [% ELSE %]
327      Unable to find user in LDAP
328    [% END %]
329
330  [% ELSIF error == "ldap_server_not_defined" %]
331    The LDAP server for authentication has not been defined.
332
333  [% ELSIF error == "mail_send_error" %]
334    There was an error sending mail from '[% mail.header('From') FILTER html %]'
335    to '[% mail.header('To') FILTER html %]':
336    [%+ msg FILTER html %]
337
338  [% ELSIF error == "missing_bug_id" %]
339    No [% terms.bug %] ID was given.
340    
341  [% ELSIF error == "missing_series_id" %]
342    Having inserted a series into the database, no series_id was returned for
343    it. Series: [% series.category FILTER html %] / 
344    [%+ series.subcategory FILTER html %] / 
345    [%+ series.name FILTER html %].
346    
347  [% ELSIF error == "need_quipid" %]
348    A valid quipid is needed.
349
350  [% ELSIF error == "object_dep_sort_loop" %]
351    There is a loop in VALIDATOR_DEPENDENCIES involving
352    '[%+ field FILTER html %]'. Here are the fields we considered:
353    [%+ considered.join(', ') FILTER html %].
354
355  [% ELSIF error == "param_invalid" %]
356    [% title = "Invalid Parameter" %]
357    <code>[% param FILTER html %]</code> is not a valid parameter
358    for the [% function FILTER html %] function.
359
360  [% ELSIF error == "param_must_be_numeric" %]
361    [% title = "Invalid Parameter" %]
362    Invalid parameter <code>[% param FILTER html %]</code> passed to 
363    <code>[% function FILTER html %]</code>: It must be numeric.
364
365  [% ELSIF error == "param_required" %]
366    [% title = "Missing Parameter" %]
367    The function <code>[% function FILTER html %]</code> requires
368    a <code>[% param FILTER html %]</code> argument, and that
369    argument was not set.
370
371  [% ELSIF error == "params_required" %]
372    [% title = "Missing Parameter" %]
373    The function <code>[% function FILTER html %]</code> requires
374    that you set one of the following parameters:
375    <code>[% params.join(', ') FILTER html %]</code>
376
377  [% ELSIF error == "product_empty_group_controls" %]
378    [% title = "Missing Group Controls" %]
379    New settings must be defined to edit group controls for
380    the [% group.name FILTER html %] group.
381
382  [% ELSIF error == "product_illegal_group_control" %]
383    [% title = "Illegal Group Control" %]
384    '[% value FILTER html %]' is not a legal value for
385    the '[% field FILTER html %]' field.
386
387  [% ELSIF error == "protection_violation" %]
388    The function <code>[% function FILTER html %]</code> was called
389
390    [% IF argument %]
391        with the argument <code>[% argument FILTER html %]</code>
392    [% END %]
393
394    from
395   
396    [% IF caller %]
397        <code>[%+ caller FILTER html %]</code>, which is
398    [% END %]
399
400    outside the package. This function may only be called from
401    a subclass of <code>[% superclass FILTER html %]</code>.
402
403  [% ELSIF error == "radius_preparation_error" %]
404    An error occurred while preparing for a RADIUS authentication request:
405    <code>[% errstr FILTER html %]</code>.
406
407  [% ELSIF error == "report_axis_invalid" %]
408    <em>[% val FILTER html %]</em> is not a valid value for 
409    [%+ IF    fld == "x" %]the horizontal axis
410    [%+ ELSIF fld == "y" %]the vertical axis
411    [%+ ELSIF fld == "z" %]the multiple tables/images
412    [%+ ELSE %]a report axis[% END %] field.
413
414  [% ELSIF error == "search_cp_without_op" %]
415    Search argument f[% id FILTER html %] is "CP" but there is no
416    matching "OP" before it.
417
418  [% ELSIF error == "search_invalid_joiner" %]
419    '[% joiner FILTER html %]' is not a valid joiner for a search.
420
421  [% ELSIF error == "setting_info_invalid" %]
422    To create a new setting, you must supply a setting name, a list of 
423    value/sortindex pairs, and the default value.
424
425  [% ELSIF error == "setting_name_invalid" %]
426    The setting name <em>[% name FILTER html %]</em> is not a valid
427    option. Setting names must begin with a letter, and contain only
428    letters, digits, or the symbols '_', '-', '.', or ':'.
429
430  [% ELSIF error == "setting_subclass_invalid" %]
431    There is no such Setting subclass as
432    <code>[% subclass FILTER html %]</code>.
433
434  [% ELSIF error == "setting_value_invalid" %]
435    The value "<code>[% value FILTER html %]</code>" is not in the list of
436    legal values for the <em>[% name FILTER html %]</em> setting.
437
438  [% ELSIF error == "token_generation_error" %]
439    Something is seriously wrong with the token generation system.
440
441  [% ELSIF error == "template_error" %]
442    [% template_error_msg FILTER html %]
443
444  [% ELSIF error == "template_invalid" %]
445    Template with invalid file name found in hook call: [% name FILTER html %].
446
447  [% ELSIF error == "unable_to_retrieve_password" %]
448     I was unable to retrieve your old password from the database.
449
450  [% ELSIF error == "undefined_field" %]
451    Form field [% field FILTER html %] was not defined.
452    
453  [% ELSIF error == "unknown_method" %]
454    The requested method '[% method FILTER html %]' was not found.
455
456  [% ELSIF error == "usage_mode_invalid" %]
457    '[% invalid_usage_mode FILTER html %]' is not a valid usage mode.
458
459  [% ELSIF error == "must_be_patch" %]
460    [% title = "Attachment Must Be Patch" %]
461    Attachment #[% attach_id FILTER html %] must be a patch.
462
463  [% ELSIF error == "not_in_transaction" %]
464    Attempted to end transaction without starting one first.
465
466  [% ELSIF error == "invalid_post_bug_submit_action" %]
467    Invalid setting for post_bug_submit_action
468
469  [% ELSIF error == "search_field_operator_unsupported" %]
470    [% terms.Bugzilla %] does not support the search type
471    "[% operator FILTER html %]".
472
473  [% ELSE %]
474    [%# Try to find hooked error messages %]
475    [% error_message = Hook.process("errors") %]
476    [% IF NOT error_message %]
477      [% title = "Internal error" %]
478      An internal error has occurred, but [% terms.Bugzilla %] doesn't know
479      what <code>[% error FILTER html %]</code> means.
480
481      If you are a [% terms.Bugzilla %] end-user seeing this message, please save
482      this page and send it to [% Param('maintainer') %].
483    [% ELSE %]
484      [% error_message FILTER none %]
485    [% END %]
486  [% END %]
487[% END %]
488
489[%# We only want HTML error messages for ERROR_MODE_WEBPAGE %]
490[% USE Bugzilla %]
491[% IF Bugzilla.error_mode != constants.ERROR_MODE_WEBPAGE %]
492  [% IF Bugzilla.usage_mode == constants.USAGE_MODE_BROWSER %]
493    [% error_message FILTER none %]
494  [% ELSE %]
495    [% error_message FILTER txt %]
496  [% END %]
497  [% RETURN %]
498[% END %]
499
500[% UNLESS header_done %]
501  [% PROCESS global/header.html.tmpl %]
502[% END %]
503
504[% PROCESS global/docslinks.html.tmpl
505   docslinks      = docslinks
506   admindocslinks = admindocslinks
507%]
508
509<tt>
510  <p>
511    [% terms.Bugzilla %] has suffered an internal error. Please save this page and send
512    it to [% Param("maintainer") %] with details of what you were doing at
513    the time this message appeared.
514  </p>
515  <script type="text/javascript"> <!--
516    document.write("<p>URL: " + 
517                    document.location.href.replace(/&/g,"&amp;")
518                                          .replace(/</g,"&lt;")
519                                          .replace(/>/g,"&gt;") + "</p>");
520  // -->
521  </script>
522</tt>
523
524<table cellpadding="20">
525  <tr>
526    <td id="error_msg" class="throw_error">
527      [% error_message FILTER none %]
528    </td>
529  </tr>
530</table>
531
532<p>Traceback:</p>
533<pre>[% traceback FILTER html %]</pre>
534
535[% IF variables %]
536  <pre>
537Variables:
538  [% FOREACH key = variables.keys %]
539    [%+ key FILTER html %]: [%+ variables.$key FILTER html %]
540  [% END %]
541  </pre>
542[% END %]
543
544[% PROCESS global/footer.html.tmpl %]