PageRenderTime 60ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

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