]> BookStack Code Mirror - bookstack/blob - resources/views/errors/debug.blade.php
Merge pull request #5668 from bumperbox/patch-1
[bookstack] / resources / views / errors / debug.blade.php
1 <!doctype html>
2 <html lang="en">
3 <head>
4     <meta charset="UTF-8">
5     <meta name="viewport"
6           content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7     <title>Error: {{ $error }}</title>
8
9     <style>
10         html, body {
11             background-color: #F2F2F2;
12             font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
13         }
14
15         html {
16             padding: 0;
17         }
18
19         body {
20             margin: 0;
21             border-top: 6px solid #206ea7;
22         }
23
24         h1 {
25             margin-top: 0;
26         }
27
28         h2 {
29             color: #666;
30             font-size: 1rem;
31             margin-bottom: 0;
32         }
33
34         .container {
35             max-width: 800px;
36             margin: 1rem auto;
37         }
38
39         .panel {
40             background-color: #FFF;
41             border-radius: 3px;
42             box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.1);
43             padding: 1rem 2rem;
44             margin: 2rem 1rem;
45         }
46
47         .panel-title {
48             font-weight: bold;
49             font-size: 1rem;
50             color: #FFF;
51             margin-top: 0;
52             margin-bottom: 0;
53             background-color: #206ea7;
54             padding: 0.25rem .5rem;
55             display: inline-block;
56             border-radius: 3px;
57         }
58
59         pre {
60             overflow-x: scroll;
61             background-color: #EEE;
62             border: 1px solid #DDD;
63             padding: .25rem;
64             border-radius: 3px;
65         }
66
67         a {
68             color: #206ea7;
69             text-decoration: none;
70         }
71
72         a:hover, a:focus {
73             text-decoration: underline;
74             color: #105282;
75         }
76
77         ul {
78             margin-left: 0;
79             padding-left: 1rem;
80         }
81
82         li {
83             margin-bottom: .4rem;
84         }
85
86         .notice {
87             margin-top: 2rem;
88             padding: 0 2rem;
89             font-weight: bold;
90             color: #666;
91         }
92     </style>
93 </head>
94 <body>
95     <div class="container">
96
97         <p class="notice">
98             WARNING: Application is in debug mode. This mode has the potential to leak confidential
99             information and therefore should not be used in production or publicly
100             accessible environments.
101         </p>
102
103         <div class="panel">
104             <h4 class="panel-title">Error</h4>
105             <h2>{{ $errorClass }}</h2>
106             <h1>{{ $error }}</h1>
107         </div>
108
109         <div class="panel">
110             <h4 class="panel-title">Help Resources</h4>
111             <ul>
112                 <li>
113                     <a href="https://www.bookstackapp.com/docs/admin/debugging/" target="_blank">Review BookStack debugging documentation &raquo;</a>
114                 </li>
115                 <li>
116                     <a href="https://github.com/BookStackApp/BookStack/releases" target="_blank">Ensure your instance is up-to-date &raquo;</a>
117                 </li>
118                 <li>
119                     <a href="https://github.com/BookStackApp/BookStack/issues?q=is%3Aissue+{{ urlencode($error) }}" target="_blank">Search for the issue on GitHub &raquo;</a>
120                 </li>
121                 <li>
122                     <a href="https://discord.gg/ztkBqR2" target="_blank">Ask for help via Discord &raquo;</a>
123                 </li>
124                 <li>
125                     <a href="https://duckduckgo.com/?q={{urlencode("BookStack {$error}")}}" target="_blank">Search the error message &raquo;</a>
126                 </li>
127             </ul>
128         </div>
129
130         <div class="panel">
131             <h4 class="panel-title">Environment</h4>
132             <ul>
133                 @foreach($environment as $label => $text)
134                 <li><strong>{{ $label }}:</strong> {{ $text }}</li>
135                 @endforeach
136             </ul>
137         </div>
138
139         <div class="panel">
140             <h4 class="panel-title">Stack Trace</h4>
141             <pre>{{ $trace }}</pre>
142         </div>
143
144     </div>
145 </body>
146 </html>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.