From 891ffce73ea5831d47fb40755b23d6d752622358 Mon Sep 17 00:00:00 2001 From: spetznas Date: Wed, 17 Jun 2026 19:06:56 +0200 Subject: [PATCH] debugging rsvp-submit.php --- public/de/series/index.html | 4 ++-- public/de/sitemap.xml | 20 ++++++++++---------- public/en/sitemap.xml | 10 +++++----- public/rsvp-submit.php | 15 +-------------- public/ru/404.html | 4 ++-- public/ru/categories/index.html | 4 ++-- public/ru/index.html | 4 ++-- public/ru/sitemap.xml | 28 ++++++++++++++-------------- public/tags/index.html | 4 ++-- static/rsvp-submit.php | 15 +-------------- 10 files changed, 41 insertions(+), 67 deletions(-) diff --git a/public/de/series/index.html b/public/de/series/index.html index 6631b4c..3d868df 100755 --- a/public/de/series/index.html +++ b/public/de/series/index.html @@ -137,14 +137,14 @@ diff --git a/public/de/sitemap.xml b/public/de/sitemap.xml index 8cfb04a..3ce8530 100755 --- a/public/de/sitemap.xml +++ b/public/de/sitemap.xml @@ -20,11 +20,6 @@ /> http://markinstefan.xyz/de/categories/ - + http://markinstefan.xyz/de/hochzeit/ http://markinstefan.xyz/de/series/ - + http://markinstefan.xyz/de/tags/ http://markinstefan.xyz/tags/ + - diff --git a/public/rsvp-submit.php b/public/rsvp-submit.php index 031da2e..88c3851 100755 --- a/public/rsvp-submit.php +++ b/public/rsvp-submit.php @@ -1,9 +1,7 @@ safeLoad(); -file_put_contents('/tmp/rsvp-debug.log', "3\n", FILE_APPEND); function checkboxArrayToString($value) { @@ -103,18 +100,14 @@ foreach ($fields as &$field) { $field = mb_convert_encoding($field, 'UTF-8', 'auto'); } -file_put_contents('/tmp/rsvp-debug.log', "4\n", FILE_APPEND); $mail = new PHPMailer(true); try { $mail->CharSet = 'UTF-8'; - error_log("SMTP_HOST=" . $_ENV['SMTP_HOST']); -error_log("SMTP_PORT=" . $_ENV['SMTP_PORT']); -error_log("SMTP_USER=" . $_ENV['SMTP_USER']); $mail->isSMTP(); - $mail->Host = $_ENV['SMTP_HOST']; + $mail->Host = gethostbyname($_ENV['SMTP_HOST']); $mail->SMTPAuth = true; $mail->Username = $_ENV['SMTP_USER']; $mail->Password = $_ENV['SMTP_PASS']; @@ -203,14 +196,8 @@ EOD; $mail->Body = $body; - file_put_contents('/tmp/rsvp-debug.log', "5\n", FILE_APPEND); - $mail->SMTPDebug = 2; -$mail->Debugoutput = 'error_log'; $mail->Timeout = 10; -error_log("About to send mail"); $mail->send(); -error_log("Mail sent"); - file_put_contents('/tmp/rsvp-debug.log', "6\n", FILE_APPEND); header('Location: /thank-you/'); exit; diff --git a/public/ru/404.html b/public/ru/404.html index ab2f6c7..82f7abe 100755 --- a/public/ru/404.html +++ b/public/ru/404.html @@ -136,14 +136,14 @@ diff --git a/public/ru/categories/index.html b/public/ru/categories/index.html index 90c5031..fdd3de6 100755 --- a/public/ru/categories/index.html +++ b/public/ru/categories/index.html @@ -137,14 +137,14 @@ diff --git a/public/ru/index.html b/public/ru/index.html index a76c1ac..8266e40 100755 --- a/public/ru/index.html +++ b/public/ru/index.html @@ -138,14 +138,14 @@ diff --git a/public/ru/sitemap.xml b/public/ru/sitemap.xml index 2f0b69a..acdf2e8 100755 --- a/public/ru/sitemap.xml +++ b/public/ru/sitemap.xml @@ -20,11 +20,6 @@ /> http://markinstefan.xyz/ru/categories/ - + http://markinstefan.xyz/ru/series/ http://markinstefan.xyz/ru/tags/ + - http://markinstefan.xyz/ru/contact/ http://markinstefan.xyz/ru/ - 🇩🇪 + 🇷🇺 diff --git a/static/rsvp-submit.php b/static/rsvp-submit.php index 031da2e..88c3851 100755 --- a/static/rsvp-submit.php +++ b/static/rsvp-submit.php @@ -1,9 +1,7 @@ safeLoad(); -file_put_contents('/tmp/rsvp-debug.log', "3\n", FILE_APPEND); function checkboxArrayToString($value) { @@ -103,18 +100,14 @@ foreach ($fields as &$field) { $field = mb_convert_encoding($field, 'UTF-8', 'auto'); } -file_put_contents('/tmp/rsvp-debug.log', "4\n", FILE_APPEND); $mail = new PHPMailer(true); try { $mail->CharSet = 'UTF-8'; - error_log("SMTP_HOST=" . $_ENV['SMTP_HOST']); -error_log("SMTP_PORT=" . $_ENV['SMTP_PORT']); -error_log("SMTP_USER=" . $_ENV['SMTP_USER']); $mail->isSMTP(); - $mail->Host = $_ENV['SMTP_HOST']; + $mail->Host = gethostbyname($_ENV['SMTP_HOST']); $mail->SMTPAuth = true; $mail->Username = $_ENV['SMTP_USER']; $mail->Password = $_ENV['SMTP_PASS']; @@ -203,14 +196,8 @@ EOD; $mail->Body = $body; - file_put_contents('/tmp/rsvp-debug.log', "5\n", FILE_APPEND); - $mail->SMTPDebug = 2; -$mail->Debugoutput = 'error_log'; $mail->Timeout = 10; -error_log("About to send mail"); $mail->send(); -error_log("Mail sent"); - file_put_contents('/tmp/rsvp-debug.log', "6\n", FILE_APPEND); header('Location: /thank-you/'); exit;