Title: PHP Warning:  array_merge(): Argument #2 is not an array
Last modified: August 21, 2016

---

# PHP Warning: array_merge(): Argument #2 is not an array

 *  Resolved [Adrian Toll](https://wordpress.org/support/users/adriantoll/)
 * (@adriantoll)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/)
 * Hello
 * I’m getting this warning repeatedly in my error logs, and it’s the only one there,
   so ideally I’d like it not to appear. It seems that it’s to do with the array_merge()
   function on line 44 of /scb/Options.php Is there a simple way of adding a conditional
   to check whether it’s an array and respond appropriately so the warning doesn’t
   appear?
 * Thanks
 * Adrian
 * [http://wordpress.org/plugins/wp-useronline/](http://wordpress.org/plugins/wp-useronline/)

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/#post-4479326)
 * Could you try the latest version to see if it fixes it [https://github.com/lesterchan/wp-useronline/archive/master.zip](https://github.com/lesterchan/wp-useronline/archive/master.zip).
   I did upgrade scribu framework
 *  Thread Starter [Adrian Toll](https://wordpress.org/support/users/adriantoll/)
 * (@adriantoll)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/#post-4479351)
 * Yes, that did the trick. Thanks!
 *  Thread Starter [Adrian Toll](https://wordpress.org/support/users/adriantoll/)
 * (@adriantoll)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/#post-4479352)
 * One quick further question – I’m also getting the same error from WP-PageNavi.
   I presume that will disappear when you upgrade scribu’s framework in that plugin
   too?
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/#post-4479408)
 * Yeap, can you try? [https://github.com/lesterchan/wp-pagenavi/archive/master.zip](https://github.com/lesterchan/wp-pagenavi/archive/master.zip)
 *  Thread Starter [Adrian Toll](https://wordpress.org/support/users/adriantoll/)
 * (@adriantoll)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/#post-4479413)
 * Trying to active this alone is giving me an error: Warning: include(/snip-wordpress-
   directory/wp-content/plugins/wp-pagenavi/scb/load.php): failed to open stream:
   No such file or directory in /snip-wordpress-directory/wp-content/plugins/wp-
   pagenavi/wp-pagenavi.php on line 12
 * Also, when WP User Online isn’t the published version I now can’t activate that
   either: Fatal error: Call to undefined function scb_init() in /snip-wordpress-
   directory/wp-content/plugins/wp-useronline/wp-useronline.php on line 93
 * Perhaps the original WP Page Navi was loading the scb library and WP User Online
   was using that? I think there’s some kind of unintended conflict / dependency
   going on there.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/#post-4479415)
 * Looks like a problem with Github not including the SCB framework in the zip file.
 * So when you extract out [https://github.com/lesterchan/wp-pagenavi/archive/master.zip](https://github.com/lesterchan/wp-pagenavi/archive/master.zip),
   the scb folder is blank, put the contents of [https://github.com/scribu/wp-scb-framework/archive/master.zip](https://github.com/scribu/wp-scb-framework/archive/master.zip)
   in the scb folder.
 *  Thread Starter [Adrian Toll](https://wordpress.org/support/users/adriantoll/)
 * (@adriantoll)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/#post-4479423)
 * Yep, those are both working perfectly now. Thanks!

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

The topic ‘PHP Warning: array_merge(): Argument #2 is not an array’ is closed to
new replies.

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

 * 7 replies
 * 2 participants
 * Last reply from: [Adrian Toll](https://wordpress.org/support/users/adriantoll/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_merge-argument-2-is-not-an-array/#post-4479423)
 * Status: resolved