2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2017 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
26 {* error.tpl: Display page for fatal errors. Provides complete HTML doc.*}
27 {if $config->userFramework != 'Joomla' and $config->userFramework != 'WordPress'}
28 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
29 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
32 <title>{$pageTitle}</title>
33 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
34 <base href="{$config->resourceBase}" />
35 <style type="text/css" media="screen">
36 @import url({$config->resourceBase}css/civicrm.css);
37 @import url({$config->resourceBase}css/crm-i.css);
38 @import url({$config->resourceBase}bower_components/font-awesome/css/font-awesome.min.css);
42 <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
44 <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
45 <style type="text/css" media="screen">
46 @import url({$config->resourceBase}css/civicrm.css);
47 @import url({$config->resourceBase}css/crm-i.css);
48 @import url({$config->resourceBase}bower_components/font-awesome/css/font-awesome.min.css);
51 <div class="messages status no-popup"> <i class="crm-i fa-exclamation-triangle crm-i-red"></i>
52 <span class="status-fatal">{ts}Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.{/ts}</span>
53 <div class="crm-section crm-error-message">{$message}</div>
54 {if $error.message && $message != $error.message}
55 <hr style="solid 1px" />
56 <div class="crm-section crm-error-message">{$error.message}</div>
58 {if ($code OR $mysql_code OR $errorDetails) AND $config->debug}
59 <div class="crm-accordion-wrapper collapsed crm-fatal-error-details-block">
60 <div class="crm-accordion-header" onclick="toggle(this);";>
61 {ts}Error Details{/ts}
62 </div><!-- /.crm-accordion-header -->
63 <div class="crm-accordion-body">
65 <div class="crm-section">{ts}Error Code:{/ts} {$code}</div>
68 <div class="crm-section">{ts}Database Error Code:{/ts} {$mysql_code}</div>
71 <div class="crm-section">{ts}Additional Details:{/ts} {$errorDetails}</div>
73 </div><!-- /.crm-accordion-body -->
74 </div><!-- /.crm-accordion-wrapper -->
76 <p><a href="{$config->userFrameworkBaseURL}" title="{ts}Main Menu{/ts}">{ts}Return to home page.{/ts}</a></p>
78 </div> {* end crm-container div *}
80 <script language="JavaScript">
81 function toggle( element ) {
82 var parent = element.parentNode;
83 var className = parent.className;
84 if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') {
85 parent.className = 'crm-accordion-wrapper crm-fatal-error-details-block';
87 parent.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block';
92 {if $config->userFramework != 'Joomla' and $config->userFramework != 'WordPress'}