Title: Warning: array_merge() issue
Last modified: August 30, 2016

---

# Warning: array_merge() issue

 *  Resolved [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/warning-array_merge-issue/)
 * We have use with multisite network now i have set my site live todays generate
   error: on frontpage and setting page:
 *     ```
       Warning: array_merge(): Argument #2 is not an array in /wp-content/plugins/wp-pagenavi/scb/Options.php on line 44
       ```
   
 * reply as soon as possible
 * [https://wordpress.org/plugins/wp-pagenavi/](https://wordpress.org/plugins/wp-pagenavi/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/warning-array_merge-issue/#post-6373886)
 * The options might be missing. WP-Admin -> Settings -> PageNavi, ensure the options
   are filled up for the site (not network admin)
 *  Thread Starter [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/warning-array_merge-issue/#post-6373892)
 * Yes But. this one code issue.
 * network site setting exists serialized data but when on the sub site not work
   code for get and display after this code change getting auto data please correct
   code after test.
 * $data = array_merge( $this->defaults, (array)get_option( $this->key, array() ));
 * replace to in code
 * $data = array_merge( $this->defaults, (array)get_option( $this->key, array() ));
 * Thanks for plugin and reply.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/warning-array_merge-issue/#post-6373894)
 * I don’t see a difference between both code you pasted?
 * You can submit a PR to [https://github.com/scribu/wp-scb-framework/blob/master/Options.php](https://github.com/scribu/wp-scb-framework/blob/master/Options.php)
 *  Thread Starter [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/warning-array_merge-issue/#post-6373895)
 * sorry on line no 44.
 *     ```
       $data = array_merge( $this->defaults, get_option( $this->key, array() ) );
       ```
   
 * replace to in code
 *     ```
       $data = array_merge( $this->defaults, (array)get_option( $this->key, array() ) );
       ```
   
 * Thanks for plugin and reply.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Warning: array_merge() issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-pagenavi/assets/icon.svg?rev=977997)
 * [WP-PageNavi](https://wordpress.org/plugins/wp-pagenavi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pagenavi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pagenavi/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pagenavi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pagenavi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pagenavi/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [page navi](https://wordpress.org/support/topic-tag/page-navi/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/warning-array_merge-issue/#post-6373895)
 * Status: resolved