[英]Warning: array_merge(): Argument #1 Error message in Wordpress using WooCommerce
I realize there's quite a few of these questions answered and all are unique in their own way.我意识到这些问题中有很多得到了回答,而且每个问题都有自己的独特之处。 Above is the error message that appeared over this weekend and I can't find a solution for the life of me.
以上是本周末出现的错误消息,我找不到适合我的生活的解决方案。 I mange to open up the file in Siteground's File Manager and here are the lines in question.
我设法在 Siteground 的文件管理器中打开文件,这里是有问题的行。 What can I do to fix this error?
我能做些什么来修复这个错误?
Warning: array_merge(): Argument #1 is not an array in /home/customer/www/myapx.shop/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 1184
警告:array_merge():参数 #1 不是第 1184 行 /home/customer/www/myapx.shop/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php 中的数组
Codebase代码库
if ( 'repeater' === $control_obj->get_type() ) {
foreach ( $settings[ $control_name ] as & $field ) {
$field = $this->parse_dynamic_settings( $field, $control['fields'], $field );
}
continue;
}
$dynamic_settings = $control_obj->get_settings( 'dynamic' );
if ( ! empty( $control['dynamic'] ) ) {
$dynamic_settings = array_merge( $dynamic_settings, $control['dynamic'] );
}
if ( empty( $dynamic_settings ) || ! isset( $all_settings[ Manager::DYNAMIC_SETTING_KEY ][ $control_name ] ) ) {
continue;
}
Any help or guidance would be appreciated.任何帮助或指导将不胜感激。
PS Go easy on me not very technical. PS 放轻松对我来说不是很技术。
I am having the same issue and it seems to be from the current update of the Elementor plugin.我遇到了同样的问题,它似乎来自 Elementor 插件的当前更新。 See this post:
看到这个帖子:
https://wordpress.org/support/topic/error-with-new-update-2-9-2/ https://wordpress.org/support/topic/error-with-new-update-2-9-2/
In my case, there was a conflict with an Add on for elementor, I reverted to version 2.8.5 of the plugin and the error is gone.就我而言,与 elementor 的 Add on 存在冲突,我恢复到插件的 2.8.5 版,错误消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.