php - 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 行 [] []
解决方案
正如您在 system.log 中看到的,此错误显示在以下路径中:app/code/Hashcrypt/Contact/Plugin/AddFieldToContactForm.php 第 20 行请检查此内容,或者您可以通过禁用此模块“Hashcrypt_Contact”来检查。
推荐阅读
- ios - UIView 自下而上的动画问题
- google-apps-script - 如果所有单元格都具有 Apps 脚本的值,那么清除行的最有效方法是什么?
- java - 休眠查询以获取不同的用户表数据不起作用
- angular - 如何按特定顺序执行量角器测试
- c# - 动态下拉菜单无法按字母顺序排序
- xcode - 尝试在 Xcode 9.4 中打印变量时出错
- performance - 我使用 Bootstrap 4 和 font-awesome 为多个页面配置了 webpack,它非常慢并且让我的电脑卡住了
- angular - 如何指定从根到资产Angular的路径?
- imanage - 工地 - 工作区的清洁历史
- laravel - laravel 在 try catch 中使用 withErrors