简体   繁体   English

迁移到https://时的Tectite Formmail PHP脚本错误

[英]Tectite formmail php script error when migrating to https://

Tectite formmail gives an error when migrating to https:// Tectite Formmail迁移到https://时出现错误

After submitting the form, the browser goes to: 提交表单后,浏览器将转到:

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

And gives a white page with this message: 并给出带有此消息的白页:

"insession specified, but no data found in session "

I receive a mail with subject "FormMail script error" and the message: 我收到一封主题为“ FormMail脚本错误”的邮件,并显示以下消息:

mail_failed ********** Error=Failed to send email mail_failed **********错误=发送电子邮件失败

Plus a mail with subject "FormMail script error" and the message: 加上主题为“ FormMail脚本错误”的邮件和以下消息:

Socket error 0: : 套接字错误0 ::

When testing with https://www.harrieboerhof/templates/HB-home/forms/formmail-aanvraag-tuinontwerpgesprek.php?testalert=1 in the browser a message: 在浏览器中使用https://www.harrieboerhof/templates/HB-home/forms/formmail-aanvraag-tuinontwerpgesprek.php?testalert = 1进行测试时,出现以下消息:

Test message sent. 测试消息已发送。 Check your email. 查看你的邮件。

and a mail is received with: 并收到以下邮件:

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 这是一条测试警报消息,已加载语言为英语(内置)PHP版本为7.0.22-0ubuntu0.16.04.1 FormMail版本为8.24服务器类型:非Windows

DOCUMENT_ROOT: /var/www/testhtml SCRIPT_FILENAME: /var/www/testhtml/templates/HB-home/forms/formmail-zend-uw-bericht-test.php PATH_TRANSLATED: -not set- REAL_DOCUMENT_ROOT: /var/www DOCUMENT_ROOT:/ var / www / testhtml脚本文件名:/var/www/testhtml/templates/HB-home/forms/formmail-zend-uw-bericht-test.php PATH_TRANSLATED:-未设置-REAL_DOCUMENT_ROOT:/ var / www

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

User IP address was 81.206.125.28 User agent was Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0 用户IP地址为81.206.125.28用户代理为Mozilla / 5.0(Windows NT 6.1; WOW64; rv:55.0)Gecko / 20100101 Firefox / 55.0

The html of the form: 表单的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/" /> 

When I use the http:// version of the testsite, everything works fine. 当我使用测试站点的http://版本时,一切正常。 I searched Google for this condition, but it seems to be the first time this happens, I hope someone has an idea what could be wrong? 我在Google上搜索了这种情况,但这似乎是第一次出现这种情况,希望有人知道这可能是什么错误?

Edit: the accepted answer is not quite the answer, look in the comments below. 编辑:接受的答案不是完全的答案,请看下面的评论。

I suspect the problem is that PHP sessions are not working as they should with your https://test site. 我怀疑问题在于PHP会话无法正常运行,而应该与您的https:// test站点一起使用。

"vuyk" appears to be the session name. “ vuyk”似乎是会话名称。

So do you have 那你有

$SESSION_NAME = "vuyk";

in both FormMail and FMBadHandler? 在FormMail和FMBadHandler中?

If so, then it may be a problem with the configuration of sessions for your https://test site. 如果是这样,则可能是https:// test站点的会话配置存在问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM