Title: array_merge() [function.array-merge] in admin-bar-items.php on line 122
Last modified: October 24, 2016

---

# array_merge() [function.array-merge] in admin-bar-items.php on line 122

 *  Resolved [WP Monkey](https://wordpress.org/support/users/scdesmond/)
 * (@scdesmond)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/)
 * I’ve seen some similar support tickets about this issue that have been resolved,
   but they also said that a fix was rolled out in previous versions, so I’m re-
   posting
 * I have the following error:
 * > Warning: array_merge() [function.array-merge]: Argument #1 is not an array 
   > in wp-content/plugins/adminimize/inc-setup/admin-bar-items.php on line 122
 * Are there any new suggestions, fixes, or pending releases?

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

 *  Plugin Contributor [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/#post-8375548)
 * Can you test the current github version? I have a change for this topic, also
   a var_dump() to see, what is in the variable, there makes this error. That is
   really helpful for me.
    download: [https://github.com/bueltge/Adminimize/archive/master.zip](https://github.com/bueltge/Adminimize/archive/master.zip)
 *  [kadaj](https://wordpress.org/support/users/aldabogskie/)
 * (@aldabogskie)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/#post-8386663)
 * I have exact same issue. I didnt notice this error because its really doesn’t
   affects the plugin or cause of an error
 *  Plugin Contributor [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/#post-8386804)
 * Have you tried the linked version from github? This would really helps me to 
   fix it.
 *  [Ratatoskk](https://wordpress.org/support/users/ratatoskk/)
 * (@ratatoskk)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/#post-8425011)
 * Hi Frank
    I tried your github link above, and now error in wp-admin is :
 *     ```
       array(1) { ["administrator"]=> array(0) { } } 
       Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/www/bd826d89c1515eb6e0c84e12a419dd22/web/site/wp-content/plugins/adminimize/inc-setup/admin-bar-items.php on line 119
       ```
   
 * Thank you for your great job and help, best regards
 *  Plugin Contributor [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/#post-8449194)
 * I have validate this problem and is a topic from a php version <= 5.2. This PHP
   version is really old and not under maintenance. You should switch to another
   version or hoster with actual versions.
 * But I will switch to another way to reduce this var, I hope that’s helps.
    Best.
    -  This reply was modified 9 years, 6 months ago by [Frank Bueltge](https://wordpress.org/support/users/bueltge/).
 *  Plugin Contributor [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/#post-8449247)
 * It would be fine, if you retest again the last github master download. The problem
   should be fixed.
    Thanks
 *  Plugin Contributor [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/#post-8476950)
 * Should be done with version 1.11.0; new function that also works in php 5.2

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

The topic ‘array_merge() [function.array-merge] in admin-bar-items.php on line 122’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/adminimize_000000.svg)
 * [Adminimize](https://wordpress.org/plugins/adminimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adminimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adminimize/)
 * [Active Topics](https://wordpress.org/support/plugin/adminimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adminimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adminimize/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/array_merge-function-array-merge-in-admin-bar-items-php-on-line-122/#post-8476950)
 * Status: resolved