迁移到 https:// 时 Tectite formmail php 脚本错误

Tectite formmail php script error when migrating to https://

Tectite formmail 在迁移到 https://

时出错

提交表单后,浏览器转到:

https://test.harrieboerhof.nl/templates/HB-home/forms/fmbadhandler.php?insession=1&vuyk=790dg132pl9sm33qcla6ho7dn5

并给出一个带有此消息的白页:

"insession specified, but no data found in session "

我收到一封主题为 "FormMail script error" 的邮件,内容为:

mail_failed ********** Error=Failed to send email

加上一封邮件,主题为 "FormMail script error",内容为:

Socket error 0: :

在浏览器中使用 https://www.harrieboerhof/templates/HB-home/forms/formmail-aanvraag-tuinontwerpgesprek.php?testalert=1 进行测试时出现消息:

Test message sent. Check your email.

收到一封邮件:

This is a test alert message Loaded language is English (builtin) PHP version is 7.0.22-0ubuntu0.16.04.1 FormMail version is 8.24 Server type: non-Windows

DOCUMENT_ROOT: /var/www/testhtml SCRIPT_FILENAME: /var/www/testhtml/templates/HB-home/forms/formmail-zend-uw-bericht-test.php PATH_TRANSLATED:-未设置- REAL_DOCUMENT_ROOT:/var/www

SERVER_NAME 是本地主机 REQUEST_URI 是 /templates/HB-home/forms/formmail-zend-uw-bericht-test.php?testalert=1

用户 IP 地址为 81.206.125.28 用户代理为 Mozilla/5.0 (Windows 新台币 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0

形式的html:

<form action="https://test.harrieboerhof.nl/templates/HB-home/forms/formmail-zend-uw-bericht-test.php" enctype="multipart/form-data" method="post">
  <input name="recipients" type="hidden" value="harrie" >
  <input type="hidden" name="bcc" value="mail@domain.nl" />
  <input name="conditions" type="hidden" value="conditions" >
  <input name="subject" type="hidden" value="Contactformulier van website" >
  <input name="mail_options" type="hidden" value="HTMLTemplate=https://test.harrieboerhof.nl/templates/HB-home/forms/zend-ons-uw-bericht.htm, NoPlain, FromAddr=noreply@harrieboerhof.nl,TemplateMissing=-, CharSet=utf-8 " >
  <input name="good_url" type="hidden" value="https://test.harrieboerhof.nl/nl/zend-ons-uw-bericht-bedankt/" >
  <input name="bad_url" type="hidden" value="https://test.harrieboerhof.nl/templates/HB-home/forms/fmbadhandler.php" >
  <input name="this_form" type="hidden" value="https://test.harrieboerhof.nl/nl/contact-met-uw-tuinman-hovenier-uit-drenthe/contactformulier/" />
  <input name="bad_template" type="hidden" value="https://test.harrieboerhof.nl/nl/onvolledige-contactaanvraag/" />

当我使用 http:// 版本的测试站点时,一切正常。 我搜索了 Google 这种情况,但这似乎是第一次发生,我希望有人知道哪里出了问题?

编辑:已接受的答案并不完全正确,请查看下面的评论。

我怀疑问题是 PHP 会话在您的 https://test 站点上无法正常工作。

"vuyk" 似乎是会话名称。

你有没有

$SESSION_NAME = "vuyk";

在 FormMail 和 FMBadHandler 中?

如果是这样,则可能是您的 https://test 站点的会话配置有问题。