首页 > 解决方案 > Magento 2.1 站点中的联系页面错误

问题描述

我是 Magento 的新手,我需要你的帮助。当我打开我网站上的联系页面时,我收到此错误。

“很抱歉,生成此电子邮件时发生错误。”

我检查了 system.log 文件,我发现了。

你可以帮帮我吗 ?

[2020-11-19 14:58:18] main.CRITICAL:可恢复的错误:传递给 Hashcrypt\Contact\Plugin\AddFieldToContactForm::afterToHtml() 的参数 2 必须是 Hashcrypt\Contact\Plugin\string 的实例,字符串给定,在第 152 行的 /var/www/vhosts/ora24.gr/httpdocs/vendor/magento/framework/Interception/Interceptor.php 中调用并在 /var/www/vhosts/ora24.gr/httpdocs/app/code/ 中定义Hashcrypt/Contact/Plugin/AddFieldToContactForm.php 第 20 行 [] []

标签: phpmagento

解决方案


正如您在 system.log 中看到的,此错误显示在以下路径中:app/code/Hashcrypt/Contact/Plugin/AddFieldToContactForm.php 第 20 行请检查此内容,或者您​​可以通过禁用此模块“Hashcrypt_Contact”来检查。


推荐阅读