We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c90f9f commit c42459aCopy full SHA for c42459a
web/edit/server/index.php
@@ -308,6 +308,7 @@
308
unset($output);
309
$v_hostname = $_POST["v_hostname"];
310
}
311
+
312
if ($_SESSION["WEB_BACKEND"] == "php-fpm") {
313
// Install/remove php versions
314
if (empty($_SESSION["error_msg"])) {
web/inc/main.php
@@ -179,6 +179,12 @@ function check_return_code($return_var, $output) {
179
if (empty($error)) {
180
$error = sprintf(_("Error code: %s"), $return_var);
181
182
183
+ // Add backtrace if debug mode is activated to find out the cause
184
+ if ($_SESSION["DEBUG_MODE"] == "true") {
185
+ $error .= " | DEBUG BACKTRACE: " . var_export(debug_backtrace(), true);
186
+ }
187
188
$_SESSION["error_msg"] = $error;
189
190
0 commit comments