PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 1.3.0
Backup Migration v1.3.0
2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / includes / dashboard / chapter / troubleshooting.php
backup-backup / includes / dashboard / chapter Last commit date
AA-Template.php 2 years ago other_config.php 2 years ago save-button.php 2 years ago staging.php 2 years ago store_config.php 2 years ago troubleshooting.php 2 years ago what_backed_up.php 2 years ago where_config.php 2 years ago
troubleshooting.php
269 lines
1 <?php
2
3 // Namespace
4 namespace BMI\Plugin\Dashboard;
5
6 // Use
7 use BMI\Plugin\Checker\System_Info as SI;
8
9 // Exit on direct access
10 if (!defined('ABSPATH')) {
11 exit;
12 }
13
14 // Tooltips
15 $ctl = __("Your account on Wordpress.org (where you open a new support thread) is different to the one you login to your WordPress dashboard (where you are now). If you don’t have a WordPress.org account yet, please sign up at the top right on the Support Forum page, and then scroll down on that page . It only takes a minute :) Thank you!", 'backup-backup');
16
17 $bmiTroubleshootingLogShareInfo = __("You'll share: Website URL, %s1backup logs%s2, %s3restore logs%s2, %s4staging logs%s2, our plugin logs & configuration, basic data about your site.", 'backup-backup');
18 $bmiTroubleshootingLogShareInfo2 = __("No confidential data such as email gets shared.", 'backup-backup');
19
20 $bmiTroubleshootingLogShareInfo = str_replace('%s1', '<a href="#" class="download-backup-log-url hoverable secondary" download="backup_logs.txt">', $bmiTroubleshootingLogShareInfo);
21 $bmiTroubleshootingLogShareInfo = str_replace('%s3', '<a href="#" class="download-restore-log-url hoverable secondary" download="restore_logs.txt">', $bmiTroubleshootingLogShareInfo);
22 $bmiTroubleshootingLogShareInfo = str_replace('%s4', '<a href="#" class="download-staging-log-url hoverable secondary" download="staging_logs.txt">', $bmiTroubleshootingLogShareInfo);
23 $bmiTroubleshootingLogShareInfo = str_replace('%s2', '</a>', $bmiTroubleshootingLogShareInfo);
24
25 ?>
26
27 <div class="mm mt mb f20 lh40">
28
29 <div class="mbl">
30 <?php _e("If something doesn't work, you have several options - pick one:", 'backup-backup'); ?>
31 </div>
32
33 <table class="center-table trouble-section">
34
35 <tr class="lh28">
36 <td style="width: 33%">
37 <a href="https://wordpress.org/support/plugin/backup-backup/" target="_blank" class="nodec">
38 <div class="shadow">
39 <div class="flex flexcenter mtl mtb">
40 <div style="width: 66px; height: 63px;">
41 <svg style="width: 66px; height: 63px;"><use xlink:href="<?php echo $this->get_asset('images', 'support-1.svg'); ?>#img"></use></svg>
42 </div>
43 <div class="semibold">
44 <?php _e("Ask us in the Support forum", 'backup-backup'); ?>
45 </div>
46 </div>
47 <div class="f16">
48 <?php _e("Your first port of call. We'll try to respond quickly!", 'backup-backup'); ?>
49 </div>
50 </div>
51 </a>
52 </td>
53 <td style="width: 33%">
54 <a href="<?php echo BMI_AUTHOR_URI; ?>" target="_blank" class="nodec">
55 <div class="shadow">
56 <div class="flex flexcenter mtl mtb">
57 <div style="width: 69px; height: 63px;">
58 <svg style="width: 69px; height: 63px; margin-top: 10px;"><use xlink:href="<?php echo $this->get_asset('images', 'support-2.svg'); ?>#img"></use></svg>
59 </div>
60 <div class="semibold">
61 <?php _e("Get the Premium Plugin", 'backup-backup'); ?>
62 </div>
63 </div>
64 <div class="f16">
65 <?php _e("...which includes support, so we can help you in more detail if you get stuck.", 'backup-backup'); ?>
66 </div>
67 </div>
68 </a>
69 </td>
70 <td style="width: 33%">
71 <div class="shadow" id="open_trouble_extenstion">
72 <div class="flex flexcenter mtl mtb">
73 <div style="width: 70px; height: 63px;">
74 <svg style="width: 70px; height: 63px;"><use xlink:href="<?php echo $this->get_asset('images', 'support-3.svg'); ?>#img"></use></svg>
75 </div>
76 <div class="semibold">
77 <?php _e("Check advanced options", 'backup-backup'); ?>
78 </div>
79 </div>
80 <div class="f16">
81 <?php _e("...in an effort to fix it yourself. Be sure you know what you are doing!", 'backup-backup'); ?>
82 </div>
83 </div>
84 </td>
85 </tr>
86 <tr>
87 <td class="mtlll">
88 <span class="tooltip hoverable info-cursor f18" tooltip="<?php echo $ctl; ?>"><?php _e("Cannot log in there?", 'backup-backup'); ?></span>
89 </td>
90 <td></td>
91 <td></td>
92 </tr>
93
94 </table>
95
96 </div>
97
98 <div id="trouble_extenstion" class="f20" style="display: none; min-width: calc(100% - 45px - 45px);">
99
100 <div class="mm">
101 <div class="f26 semibold mb">
102 <?php _e("Troubleshooting settings", 'backup-backup'); ?>
103 </div>
104 </div>
105
106 <div class="mm bmi-troubleshooting-btn-mm">
107
108 <div class="f20 semibold">
109 <?php _e("Send troubleshooting data", 'backup-backup'); ?>
110 </div>
111
112 <div class="f16 mtll mbll bmi-troubleshooting-btn-section">
113 <div class="bmi-troubleshooting-btn-text">
114 <?php _e("Send us debug information of your latest failed backup or restore, so that we can investigate.", 'backup-backup'); ?>
115 </div>
116 <div class="bmi-inline">
117 <a href="#" class="btn bmi-send-troubleshooting-logs bmi-troubleshooting-btn mm30"><?php _e("Share debug infos with BackupBliss team", 'backup-backup'); ?></a>
118 </div>
119 <div class="bmi-troubleshooting-info-logs">
120 <?php echo $bmiTroubleshootingLogShareInfo; ?><br>
121 <?php echo $bmiTroubleshootingLogShareInfo2; ?>
122 </div>
123 </div>
124
125 </div>
126
127 <div class="mm">
128 <div class="f20 semibold">
129 <?php _e("Site information", 'backup-backup'); ?>
130 </div>
131 <div class="f16 mtll mbll">
132 <?php _e("Here is some information about your site, which may help to debug if there is an issue:", 'backup-backup'); ?>
133 </div>
134 </div>
135
136 <div class="mm bg-second f16 mtl mbl lh25">
137 <table style="width: 100%">
138 <tbody>
139
140 <?php
141 require_once BMI_INCLUDES . '/check/system_info.php';
142 $info = new SI();
143 $info = $info->to_array();
144 $i = 0;
145 foreach ($info as $key => $value) {
146 $i++; ?>
147 <tr class="<?php echo(($i <= 7)?'ignored-tr':'hide-show-tr'); ?>">
148 <th align="left"><?php echo ucwords(str_replace('_', ' ', $key)); ?></th>
149 <td><?php
150
151 if (is_object($value)) {
152 echo $value->format('Y-m-d H:i:s.u');
153 } elseif (is_array($value)) {
154 if (sizeof($value) === 0) {
155 echo '---';
156 } else {
157 if ($key == 'wp_active_themes_info') {
158 echo $value[0]['name'] . '@' . $value[0]['version'];
159 } elseif ($key == 'wp_active_plugins_info') {
160 $disp = '';
161 for ($i = 0; $i < sizeof($value); ++$i) {
162 $disp .= $value[$i]['name'] . '@' . $value[$i]['version'] . ' | ';
163 }
164 echo rtrim($disp, ' | ');
165 } else {
166 echo implode(' | ', $value);
167 }
168 }
169 } elseif (is_bool($value)) {
170 echo $value === true ? 'true' : 'false';
171 } else {
172 if (!$value || is_null($value) || strlen($value) == '0') {
173 echo '---';
174 } else {
175 echo $value;
176 }
177 } ?></td>
178 </tr>
179 <?php
180 }
181 ?>
182 <tr class="ignored-tr">
183 <th style="width: 400px"></th>
184 <td align="right">
185 <span class="hoverable secondary" id="switch-show-trs" data-see="<?php _e("See more", 'backup-backup'); ?>" data-hide="<?php _e("Collapse", 'backup-backup'); ?>">
186 <?php _e("See more", 'backup-backup'); ?>
187 </span>
188 </td>
189 </tr>
190 </tbody>
191 </table>
192 </div>
193
194 <div class="mm mtll f16">
195 <a href="#" class="nodec secondary hoverable" id="download-site-infos"><?php _e("Download your site infos", 'backup-backup'); ?></a> <?php _e("(e.g. for easy sharing with us, so that we can debug)", 'backup-backup'); ?>
196 </div>
197
198 <div class="mm mtl semibold">
199 <?php _e("Logging", 'backup-backup'); ?>
200 </div>
201
202 <div class="mm mtll f16 lh28">
203 <?php _e("All backup creation & restore processes are documented in log files which to debug issues.", 'backup-backup'); ?>
204 <a href="<?php echo get_site_url(); ?>/?backup-migration=PROGRESS_LOGS&progress-id=complete_logs.log&backup-id=current&t=<?php echo time(); ?>"
205 download="troubleshooting-logs.txt" class="nodec hoverable secondary">
206 <?php _e("Download logs.", 'backup-backup'); ?>
207 </a>
208 </div>
209
210 <div class="mm mtl semibold">
211 <?php _e("Backup/restore process issues", 'backup-backup'); ?>
212 </div>
213
214 <div class="mm mtll f16 lh28">
215 <?php _e("If you are sure the backup process is not running but you can't run it: ", 'backup-backup'); ?>
216 <a href="#!" id="bmi-force-backup-to-stop" class="nodec hoverable secondary">
217 <?php _e("Force the process to stop.", 'backup-backup'); ?>
218 </a>
219 <br>
220 <?php _e("If you are sure the restore process is not running but you can't run it: ", 'backup-backup'); ?>
221 <a href="#!" id="bmi-force-restore-to-stop" class="nodec hoverable secondary">
222 <?php _e("Force the restoration to stop.", 'backup-backup'); ?>
223 </a>
224 <br>
225 <span><?php _e('* If the process is still running after killing, that means it probably still running (for real), wait a bit for it to fail then.', 'backup-backup'); ?></span>
226 </div>
227
228 <div class="mm mtl semibold">
229 <?php _e("Error: php_uname is disabled for security reasons", 'backup-backup'); ?>
230 </div>
231
232 <div class="mm mtll f16 lh28">
233 <?php _e("Some hostings blocks php_uname function which is required by pclzip module included in WordPress.", 'backup-backup'); ?><br>
234 <?php _e("You can automatically replace the function with compatible code:", 'backup-backup'); ?>
235 <a href="#" class="nodec secondary hoverable" id="fix-uname-issues"><?php _e("Replace php_uname function in pclzip file", 'backup-backup'); ?></a><br>
236 <?php _e("You can also restore the changes with one click if something went wrong:", 'backup-backup'); ?>
237 <a href="#" class="nodec secondary hoverable" id="revert-uname-issues"><?php _e("Restore original pclzip file (will work after first replacement)", 'backup-backup'); ?></a>
238 </div>
239
240 <div class="mm mtl semibold">
241 <?php _e("Test email", 'backup-backup'); ?>
242 </div>
243
244 <div class="mm mtll f16 lh28">
245 <?php _e("If you're willing to know if your server is properly configured to send emails, you can test it here.", 'backup-backup'); ?><br>
246 <?php _e("Remember that even if you get success alert there still might be some issues.", 'backup-backup'); ?> <?php _e("Check if the email is visible in your mailbox / spam folder.", 'backup-backup'); ?><br>
247 <?php _e("Message will be sent to e-mail you provided in the ", 'backup-backup'); ?> <a href="#" class="collapser-openner nodec secondary hoverable" data-el="#other-options"><?php _e("other options", 'backup-backup'); ?></a>.<br>
248 <a href="#" id="bmi_send_test_mail" class="nodec hoverable secondary"><?php _e("Click here", 'backup-backup'); ?></a> <?php _e("to send the mail.", 'backup-backup'); ?><br>
249 </div>
250
251 <div class="mm mtl mbll semibold">
252 <?php _e("Reset configuration", 'backup-backup'); ?>
253 </div>
254
255 <div class="mm mb f16">
256 <?php _e("Please", 'backup-backup'); ?> <a href="#" class="hoverable secondary bmi-modal-opener nodec" data-modal="reset-confirm-modal"><?php _e("click here", 'backup-backup'); ?></a> <?php _e("to reset plugin configuration.", 'backup-backup'); ?>
257 </div>
258
259 <div class="mm mb f18">
260 <?php _e("If you’re looking for other options not listed above, check out the", 'backup-backup'); ?> <a href="#" class="collapser-openner nodec secondary hoverable" data-el="#other-options"><?php _e("Other options", 'backup-backup'); ?></a> <?php _e("chapter as they might be there.", 'backup-backup'); ?>
261 </div>
262
263 </div>
264
265 <div class="mm center f20 mb">
266 <a href="#" class="text-muted close-chapters nodec"><?php _e("Collapse this chapter", 'backup-backup'); ?></a>
267 </div>
268 <div class="mbll"></div>
269