WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
array_merge() [function.array-merge]: Argument #2...error (1 post)

  1. krunalshah1402
    Member
    Posted 8 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 8 months ago by krunalshah1402
  • This topic is not a support question
  • WordPress version: 3.7