WordPress.org

Support

Support » Plugins and Hacks » WP-PageNavi » array_merge() [function.array-merge]: Argument #2…error

array_merge() [function.array-merge]: Argument #2…error

  • Some of you may be experiencing this error with the latest version of WordPress (3.7 +) and this plugin (2.83).

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /wp-content/plugins/wp-pagenavi/scb/Options.php on line 46/44

    Go ahead and open up the file references, Options.php. Go to line 46/44.

    Replace this line with:
    $data = array_merge( $this->defaults, $data );

    This line:
    $data = array_merge( $this->defaults, (array)$data );

    Or

    Replace this line with:
    $data = array_merge( $this->defaults, get_option( $this->key, array() ) );

    This line:
    $data = array_merge( $this->defaults, (array)get_option( $this->key, array() ) );

    And your error message should be fixed!

    http://wordpress.org/plugins/wp-pagenavi/

  • The topic ‘array_merge() [function.array-merge]: Argument #2…error’ is closed to new replies.
Skip to toolbar