美好的一天,
有谁知道以下问题的解决办法吗?
我最近使用自定义帖子模板设置了高级自定义字段插件,并一直在使用重力表单提交帖子数据。在许多帖子中,一切似乎都运行良好。但是,我通过帖子编辑器屏幕更新帖子,当我单击“更新”或“预览”时,出现以下错误:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/uswfeoab/public_html/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php on line 396
此操作已重复 8 次,然后出现以下错误代码:
Warning: Cannot modify header information - headers already sent by (output started at /home/uswfeoab/public_html/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php:396) in /home/uswfeoab/public_html/wp-includes/pluggable.php on line 876
我仔细查看了论坛和 ACF 网站,但找不到与 _functions.php 文件相关的错误的任何故障排除。作为参考,第 396 行的代码行是 $field = array_merge($defaults, $field);
不幸的是,这远远超出了我的 PHP 技能范围。任何建议将不胜感激!
唷!
Advanced Custom Fields作者今天发布并更新至4.1.2版本。这已经解决了问题。
恐慌结束!