简体   繁体   English

警告:array_merge():使用 WooCommerce 的 Wordpress 中的参数 #1 错误消息

[英]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.

相关问题 Zend PHP函数错误-警告:array_merge():参数#1不是以下数组 - Zend php function error - Warning: array_merge(): Argument #1 is not an array in 插件错误-array_merge():参数2不是数组 - Plugin Error - array_merge(): Argument #2 is not an array Laravel array_merge():参数 #2 不是数组错误 - Laravel array_merge(): Argument #2 is not an array Error symfony警告:array_merge():参数#2不是/ home /中的数组 - symfony Warning: array_merge(): Argument #2 is not an array in /home/ 警告:array_merge():当处理两个$ _POST时,参数#1不是数组 - Warning: array_merge(): Argument #1 is not an array, when processing two $_POST array_merge():参数1不是数组 - array_merge(): Argument #1 is not an array Laravel 5.4 array_merge():使用组件表单时参数2不是数组错误 - Laravel 5.4 array_merge(): Argument #2 is not an array error while using components forms 在Wordpress中使用array_merge后,限制每页的帖子数 - Limit posts per page after using array_merge in Wordpress array_merge():参数#1不是laravel 5.5中的数组 - array_merge(): Argument #1 is not an array in laravel 5.5 PHP:快速排序代码一直在说:警告:array_merge():参数3不是其中的数组 - PHP: Quick sort code keeps saying: Warning: array_merge(): Argument #3 is not an array in
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM