PageRenderTime 54ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/weshayutin/template
Go Template | 540 lines | 437 code | 103 blank | 0 comment | 0 complexity | 2a8bfbc1821b8f11384e0f6f65e5a4b0 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. [%# 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 == "action_unrecognized" %]
  36. [% docslinks = {'query.html' => "Searching for $terms.bugs",
  37. 'query.html#list' => "$terms.Bug lists"} %]
  38. I don't recognize the value (<em>[% action FILTER html %]</em>)
  39. of the <em>action</em> variable.
  40. [% ELSIF error == "attachment_already_obsolete" %]
  41. Attachment #[% attach_id FILTER html %] ([% description FILTER html %])
  42. is already obsolete.
  43. [% ELSIF error == "auth_invalid_email" %]
  44. [% title = "Invalid Email Address" %]
  45. We received an email address (<b>[% addr FILTER html %]</b>)
  46. that didn't pass our syntax checking for a legal email address,
  47. when trying to create or update your account.
  48. [% IF default %]
  49. A legal address must contain exactly one '@',
  50. and at least one '.' after the @.
  51. [% ELSE %]
  52. [%+ Param('emailregexpdesc') %]
  53. [% END %]
  54. It must also not contain any of these special characters:
  55. <tt>\ ( ) &amp; &lt; &gt; , ; : &quot; [ ]</tt>, or any whitespace.
  56. [% ELSIF error == "authres_unhandled" %]
  57. The result value of [% value FILTER html %] was not handled by
  58. the login code.
  59. [% ELSIF error == "bad_page_cgi_id" %]
  60. [% title = "Invalid Page ID" %]
  61. The ID <code>[% page_id FILTER html %]</code> is not a
  62. valid page identifier.
  63. [% ELSIF error == "bad_arg" %]
  64. Bad argument <code>[% argument FILTER html %]</code> sent to
  65. <code>[% function FILTER html %]</code> function.
  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. [% ELSIF error == "chart_data_not_generated" %]
  70. [% admindocslinks = {'extraconfig.html' => 'Setting up Charting'} %]
  71. [% IF product %]
  72. Charts for the <em>[% product FILTER html %]</em> product are not
  73. available yet because no charting data has been collected for it since it
  74. was created.
  75. [% ELSE %]
  76. No charting data has been collected yet.
  77. [% END %]
  78. Please wait a day and try again.
  79. If you're seeing this message after a day, then you should contact
  80. <a href="mailto:[% Param('maintainer') %]">[% Param('maintainer') %]</a>
  81. and reference this error.
  82. [% ELSIF error == "chart_datafile_corrupt" %]
  83. The chart data file [% file FILTER html %] is corrupt.
  84. [% ELSIF error == "chart_dir_nonexistent" %]
  85. One of the directories <tt>[% dir FILTER html %]</tt> and
  86. <tt>[% graph_dir FILTER html %]</tt> does not exist.
  87. [% ELSIF error == "chart_file_open_fail" %]
  88. Unable to open the chart datafile <tt>[% filename FILTER html %]</tt>.
  89. [% ELSIF error == "chart_lines_not_installed" %]
  90. [% admindocslinks = {'installation.html#install-perlmodules' => 'Installing Perl modules necessary for Charting'} %]
  91. Charts will not work without the Chart::Lines Perl module being installed.
  92. Run checksetup.pl for installation instructions.
  93. [% ELSIF error == "column_not_null_without_default" %]
  94. Failed adding the column [% name FILTER html %]:
  95. You cannot add a NOT NULL column with no default to an existing table
  96. unless you specify something for the <code>$init_value</code> argument.
  97. [% ELSIF error == "column_not_null_no_default_alter" %]
  98. You cannot alter the [% name FILTER html %] column to be NOT NULL
  99. without specifying a default or something for $set_nulls_to, because
  100. there are NULL values currently in it.
  101. [% ELSIF error == "db_rename_conflict" %]
  102. Name conflict: Cannot rename [% old FILTER html %] to
  103. [% new FILTER html %] because [% new FILTER html %] already exists.
  104. [% ELSIF error == "cookies_need_value" %]
  105. Every cookie must have a value.
  106. [% ELSIF error == "env_no_email" %]
  107. [% terms.Bugzilla %] did not receive an email address from the
  108. environment.
  109. [% IF Param("auth_env_email") %]
  110. This means that the '[% Param("auth_env_email") FILTER html %]'
  111. environment variable was empty or did not exist.
  112. [% ELSE %]
  113. You need to set the "auth_env_email" parameter to the name of
  114. the environment variable that will contain the user's email
  115. address.
  116. [% END %]
  117. [% ELSIF error == "extension_invalid" %]
  118. An error occurred processing hook [% name FILTER html %] in
  119. extension [% extension FILTER html %]: [% errstr FILTER html %]
  120. [% ELSIF error == "extern_id_conflict" %]
  121. The external ID '[% extern_id FILTER html %]' already exists
  122. in the database for '[% username FILTER html %]', but your
  123. account source says that '[% extern_user FILTER html %]' has that ID.
  124. [% ELSIF error == "field_choice_must_use_type" %]
  125. When you call a class method on <code>Bugzilla::Field::Choice</code>,
  126. you must call <code>Bugzilla::Field::Choice-&gt;type('some_field')</code>
  127. to generate the right class (you can't call class methods directly
  128. on Bugzilla::Field::Choice).
  129. [% ELSIF error == "field_type_mismatch" %]
  130. Cannot seem to handle <code>[% field FILTER html %]</code>
  131. and <code>[% type FILTER html %]</code> together.
  132. [% ELSIF error == "field_not_custom" %]
  133. '[% field.description FILTER html %]' ([% field.name FILTER html %])
  134. is not a custom field.
  135. [% ELSIF error == "gd_not_installed" %]
  136. [% admindocslinks = {'installation.html#install-perlmodules' => 'Installing Perl modules necessary for Charting'} %]
  137. Charts will not work without the GD Perl module being installed.
  138. Run checksetup.pl for installation instructions.
  139. [% ELSIF error == "illegal_content_type_method" %]
  140. Your form submission got corrupted somehow. The <em>content
  141. method</em> field, which specifies how the content type gets determined,
  142. should have been either <em>autodetect</em>, <em>list</em>,
  143. or <em>manual</em>, but was instead
  144. <em>[% contenttypemethod FILTER html %]</em>.
  145. [% ELSIF error == "illegal_field" %]
  146. A legal [% field FILTER html %] was not set.
  147. [% ELSIF error == "inactive_group" %]
  148. Attempted to add [% terms.bug %] to the '[% name FILTER html %]'
  149. group, which is not used for [% terms.bugs %].
  150. [% ELSIF error == "invalid_attach_id_to_obsolete" %]
  151. The attachment number of one of the attachments you wanted to obsolete,
  152. [% attach_id FILTER html %], is invalid.
  153. [% ELSIF error == "invalid_column_name_cookie" %]
  154. [% title = "Invalid Column Name" %]
  155. The custom sort order specified in your cookie contains an invalid
  156. column name <em>[% fragment FILTER html %]</em>.
  157. The cookie has been cleared.
  158. [% ELSIF error == "invalid_column_name_form" %]
  159. [% title = "Invalid Column Name" %]
  160. The custom sort order specified in your form submission contains an
  161. invalid column name <em>[% fragment FILTER html %]</em>.
  162. [% ELSIF error == "invalid_customfield_type" %]
  163. [% title = "Invalid Field Type" %]
  164. The type <em>[% type FILTER html %]</em> is not a valid field type.
  165. [% ELSIF error == "invalid_dimensions" %]
  166. [% title = "Invalid Dimensions" %]
  167. The width or height specified is not a positive integer.
  168. [% ELSIF error == "invalid_flag_association" %]
  169. [% title = "Invalid Flag Association" %]
  170. Some flags do not belong to
  171. [% IF attach_id %]
  172. attachment [% attach_id FILTER html %].
  173. [% ELSE %]
  174. [%+ terms.bug %] [%+ bug_id FILTER html %].
  175. [% END %]
  176. [% ELSIF error == "invalid_series_id" %]
  177. [% title = "Invalid Series" %]
  178. The series_id [% series_id FILTER html %] is not valid. It may be that
  179. this series has been deleted.
  180. [% ELSIF error == "invalid_webservergroup" %]
  181. There is no such group: [% group FILTER html %]. Check your $webservergroup
  182. setting in [% constants.bz_locations.localconfig FILTER html %].
  183. [% ELSIF error == "mismatched_bug_ids_on_obsolete" %]
  184. Attachment [% attach_id FILTER html %] ([% description FILTER html %])
  185. is attached to [% terms.bug %] [%+ attach_bug_id FILTER html %],
  186. but you tried to flag it as obsolete while creating a new attachment to
  187. [% terms.bug %] [%+ my_bug_id FILTER html %].
  188. [% ELSIF error == "flags_not_available" %]
  189. [% title = "Flag Editing not Allowed" %]
  190. [% IF type == "b" %]
  191. Flags cannot be set or changed when
  192. changing several [% terms.bugs %] at once.
  193. [% ELSE %]
  194. References to existing flags when creating
  195. a new attachment are invalid.
  196. [% END %]
  197. [% ELSIF error == "flag_requestee_disabled" %]
  198. [% title = "Flag not Requestable from Specific Person" %]
  199. You can't ask a specific person for
  200. <em>[% type.name FILTER html %]</em>.
  201. [% ELSIF error == "flag_status_invalid" %]
  202. The flag status <em>[% status FILTER html %]</em>
  203. [% IF id %]
  204. for flag ID #[% id FILTER html %]
  205. [% END %]
  206. is invalid.
  207. [% ELSIF error == "flag_type_inactive" %]
  208. [% title = "Inactive Flag Type" %]
  209. The flag type [% type FILTER html %] is inactive and cannot be used
  210. to create new flags.
  211. [% ELSIF error == "flag_type_nonexistent" %]
  212. There is no flag type with the ID <em>[% id FILTER html %]</em>.
  213. [% ELSIF error == "flag_type_target_type_invalid" %]
  214. The target type was neither <em>[% terms.bug %]</em> nor <em>attachment</em>
  215. but rather <em>[% target_type FILTER html %]</em>.
  216. [% ELSIF error == "invalid_field_name" %]
  217. Can't use [% field FILTER html %] as a field name.
  218. [% ELSIF error == "invalid_keyword_id" %]
  219. The keyword ID <em>[% id FILTER html %]</em> couldn't be
  220. found.
  221. [% ELSIF error == "invalid_user" %]
  222. [% title = "Invalid User" %]
  223. There is no user account
  224. [% IF user_id %]
  225. with ID <em>[% user_id FILTER html %]</em>.
  226. [% ELSIF user_login %]
  227. with login name <em>[% user_login FILTER html %]</em>.
  228. [% ELSE %]
  229. given.
  230. [% END %]
  231. [% ELSIF error == "jobqueue_insert_failed" %]
  232. [% title = "Job Queue Failure" %]
  233. Inserting a <code>[% job FILTER html %]</code> job into the Job
  234. Queue failed with the following error: [% errmsg FILTER html %]
  235. [% ELSIF error == "jobqueue_not_configured" %]
  236. Using the job queue system requires that certain Perl modules
  237. be installed. Run <code>checksetup.pl</code> to see what modules
  238. you are missing.
  239. [% ELSIF error == "jobqueue_no_job_mapping" %]
  240. <code>Bugzilla::JobQueue</code> has not been configured to handle
  241. the job "[% job FILTER html %]". You need to add this job type
  242. to the <code>JOB_MAP</code> constant in <code>Bugzilla::JobQueue</code>.
  243. [% ELSIF error == "ldap_bind_failed" %]
  244. Failed to bind to the LDAP server. The error message was:
  245. <code>[% errstr FILTER html %]</code>
  246. [% ELSIF error == "ldap_cannot_retreive_attr" %]
  247. The specified LDAP attribute [% attr FILTER html %] was not found.
  248. [% ELSIF error == "ldap_connect_failed" %]
  249. Could not connect to the LDAP server(s) <code>[% server FILTER html %]</code>.
  250. [% ELSIF error == "ldap_start_tls_failed" %]
  251. Could not start TLS with LDAP server: <code>[% error FILTER html %]</code>.
  252. [% ELSIF error == "ldap_search_error" %]
  253. An error occurred while trying to search LDAP for
  254. &quot;[% username FILTER html %]&quot;:
  255. <code>[% errstr FILTER html %]</code>
  256. [% ELSIF error == "ldap_server_not_defined" %]
  257. The LDAP server for authentication has not been defined.
  258. [% ELSIF error == "mail_send_error" %]
  259. There was an error sending mail from '[% mail.header('From') FILTER html %]'
  260. to '[% mail.header('To') FILTER html %]':
  261. [% msg FILTER html %]
  262. [% ELSIF error == "missing_bug_id" %]
  263. No [% terms.bug %] ID was given.
  264. [% ELSIF error == "missing_series_id" %]
  265. Having inserted a series into the database, no series_id was returned for
  266. it. Series: [% series.category FILTER html %] /
  267. [%+ series.subcategory FILTER html %] /
  268. [%+ series.name FILTER html %].
  269. [% ELSIF error == "need_quipid" %]
  270. A valid quipid is needed.
  271. [% ELSIF error == "no_manual_moved" %]
  272. You cannot set the resolution of [% terms.abug %] to MOVED without
  273. moving the [% terms.bug %].
  274. [% ELSIF error == "no_open_bug_status" %]
  275. [% title = "$terms.Bug Cannot Be Confirmed" %]
  276. There is no valid transition from
  277. [%+ get_status("UNCONFIRMED") FILTER html %] to an open state.
  278. [% ELSIF error == "param_invalid" %]
  279. [% title = "Invalid Parameter" %]
  280. <code>[% param FILTER html %]</code> is not a valid parameter
  281. for the [% function FILTER html %] function.
  282. [% ELSIF error == "param_must_be_numeric" %]
  283. [% title = "Invalid Parameter" %]
  284. Invalid parameter passed to [% function FILTER html %].
  285. It must be numeric.
  286. [% ELSIF error == "param_required" %]
  287. [% title = "Missing Parameter" %]
  288. The function <code>[% function FILTER html %]</code> requires
  289. a <code>[% param FILTER html %]</code> argument, and that
  290. argument was not set.
  291. [% ELSIF error == "params_required" %]
  292. [% title = "Missing Parameter" %]
  293. The function <code>[% function FILTER html %]</code> requires
  294. that you set one of the following parameters:
  295. <code>[% params.join(', ') FILTER html %]</code>
  296. [% ELSIF error == "product_empty_group_controls" %]
  297. [% title = "Missing Group Controls" %]
  298. New settings must be defined to edit group controls for
  299. the [% group.name FILTER html %] group.
  300. [% ELSIF error == "product_illegal_group_control" %]
  301. [% title = "Illegal Group Control" %]
  302. '[% value FILTER html %]' is not a legal value for
  303. the '[% field FILTER html %]' field.
  304. [% ELSIF error == "protection_violation" %]
  305. The function <code>[% function FILTER html %]</code> was called
  306. [% IF argument %]
  307. with the argument <code>[% argument FILTER html %]</code>
  308. [% END %]
  309. from
  310. [% IF caller %]
  311. <code>[%+ caller FILTER html %]</code>, which is
  312. [% END %]
  313. outside the package. This function may only be called from
  314. a subclass of <code>[% superclass FILTER html %]</code>.
  315. [% ELSIF error == "radius_preparation_error" %]
  316. An error occurred while preparing for a RADIUS authentication request:
  317. <code>[% errstr FILTER html %]</code>.
  318. [% ELSIF error == "unknown_comparison_type" %]
  319. Specified comparison type is not supported.
  320. [% ELSIF error == "request_queue_group_invalid" %]
  321. The group field <em>[% group FILTER html %]</em> is invalid.
  322. [% ELSIF error == "report_axis_invalid" %]
  323. <em>[% val FILTER html %]</em> is not a valid value for
  324. [%+ IF fld == "x" %]the horizontal axis
  325. [%+ ELSIF fld == "y" %]the vertical axis
  326. [%+ ELSIF fld == "z" %]the multiple tables/images
  327. [%+ ELSE %]a report axis[% END %] field.
  328. [% ELSIF error == "setting_info_invalid" %]
  329. To create a new setting, you must supply a setting name, a list of
  330. value/sortindex pairs, and the devault value.
  331. [% ELSIF error == "setting_name_invalid" %]
  332. The setting name <em>[% name FILTER html %]</em> is not a valid
  333. option. Setting names must begin with a letter, and contain only
  334. letters, digits, or the symbols '_', '-', '.', or ':'.
  335. [% ELSIF error == "setting_subclass_invalid" %]
  336. There is no such Setting subclass as
  337. <code>[% subclass FILTER html %]</code>.
  338. [% ELSIF error == "setting_value_invalid" %]
  339. The value "<code>[% value FILTER html %]</code>" is not in the list of
  340. legal values for the <em>[% name FILTER html %]</em> setting.
  341. [% ELSIF error == "soap_not_installed" %]
  342. [% admindocslinks = {'installation.html#install-perlmodules' => 'Installing Perl modules'} %]
  343. The XMLRPC interface will not work without the SOAP::Lite Perl module being
  344. installed.
  345. Run checksetup.pl for installation instructions.
  346. [% ELSIF error == "token_generation_error" %]
  347. Something is seriously wrong with the token generation system.
  348. [% ELSIF error == "template_error" %]
  349. [% template_error_msg FILTER html %]
  350. [% ELSIF error == "template_invalid" %]
  351. Template with invalid file name found in hook call: [% name FILTER html %].
  352. [% ELSIF error == "unable_to_retrieve_password" %]
  353. I was unable to retrieve your old password from the database.
  354. [% ELSIF error == "undefined_field" %]
  355. Form field [% field FILTER html %] was not defined.
  356. [% ELSIF error == "unknown_action" %]
  357. [% IF action %]
  358. Unknown action [% action FILTER html %]!
  359. [% ELSE %]
  360. I could not figure out what you wanted to do.
  361. [% END %]
  362. [% ELSIF error == "usage_mode_invalid" %]
  363. '[% invalid_usage_mode FILTER html %]' is not a valid usage mode.
  364. [% ELSIF error == "must_be_patch" %]
  365. [% title = "Attachment Must Be Patch" %]
  366. Attachment #[% attach_id FILTER html %] must be a patch.
  367. [% ELSIF error == "not_in_transaction" %]
  368. Attempted to end transaction without starting one first.
  369. [% ELSIF error == "comma_operator_deprecated" %]
  370. [% title = "SQL query generator internal error" %]
  371. There is an internal error in the SQL query generation code,
  372. creating queries with implicit JOIN.
  373. [% ELSIF error == "invalid_post_bug_submit_action" %]
  374. Invalid setting for post_bug_submit_action
  375. [% ELSE %]
  376. [%# Try to find hooked error messages %]
  377. [% error_message = Hook.process("errors") %]
  378. [% IF NOT error_message %]
  379. [% title = "Internal error" %]
  380. An internal error has occurred, but [% terms.Bugzilla %] doesn't know
  381. what <code>[% error FILTER html %]</code> means.
  382. If you are a [% terms.Bugzilla %] end-user seeing this message, please save
  383. this page and send it to [% Param('maintainer') %].
  384. [% ELSE %]
  385. [% error_message FILTER none %]
  386. [% END %]
  387. [% END %]
  388. [% END %]
  389. [%# We only want HTML error messages for ERROR_MODE_WEBPAGE %]
  390. [% USE Bugzilla %]
  391. [% IF Bugzilla.error_mode != constants.ERROR_MODE_WEBPAGE %]
  392. [% IF Bugzilla.usage_mode == constants.USAGE_MODE_BROWSER %]
  393. [% error_message FILTER none %]
  394. [% ELSE %]
  395. [% error_message FILTER txt %]
  396. [% END %]
  397. [% RETURN %]
  398. [% END %]
  399. [% UNLESS header_done %]
  400. [% PROCESS global/header.html.tmpl %]
  401. [% END %]
  402. [% PROCESS global/docslinks.html.tmpl
  403. docslinks = docslinks
  404. admindocslinks = admindocslinks
  405. %]
  406. <tt>
  407. <p>
  408. [% terms.Bugzilla %] has suffered an internal error. Please save this page and send
  409. it to [% Param("maintainer") %] with details of what you were doing at
  410. the time this message appeared.
  411. </p>
  412. <script type="text/javascript"> <!--
  413. document.write("<p>URL: " +
  414. document.location.href.replace(/&/g,"&amp;")
  415. .replace(/</g,"&lt;")
  416. .replace(/>/g,"&gt;") + "</p>");
  417. // -->
  418. </script>
  419. </tt>
  420. <table cellpadding="20">
  421. <tr>
  422. <td bgcolor="#ff0000">
  423. <font size="+2">
  424. [% error_message FILTER none %]
  425. </font>
  426. </td>
  427. </tr>
  428. </table>
  429. [% IF variables %]
  430. <pre>
  431. Variables:
  432. [% FOREACH key = variables.keys %]
  433. [%+ key FILTER html %]: [%+ variables.$key FILTER html %]
  434. [% END %]
  435. </pre>
  436. [% END %]
  437. [% PROCESS global/footer.html.tmpl %]