Title: array_merge() Error
Last modified: March 16, 2017

---

# array_merge() Error

 *  Resolved [schokopress](https://wordpress.org/support/users/schokopress/)
 * (@schokopress)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/array_merge-error/)
 * Hi there,
 * I just noticed that one page of my website shows this error:
 * “Warning: array_merge(): Argument #1 is not an array in […]/wp-content/plugins/
   user-access-manager/class/UserAccessManager.php on line 1494”
 * I looked at the php-file and found this function:
 * if (count($aAllExcludedPosts) > 0) {
    $oWpQuery->query_vars[‘post__not_in’] =
   array_merge( _ $oWpQuery->query\_vars[‘post\_\_not\_in’],_ $aAllExcludedPosts);
   Line 1494 is highlighted in italic. This error appears only on one page, not 
   on any other of the pages. As UAM has no specific function on this page, I cannot
   see why this error appears there. As soon as I log in, the error is gone, but
   any visitor will see it. Any ideas how to fix this?
 * Thanks in advance,
    schokopress

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

 *  Plugin Author [gm_alex](https://wordpress.org/support/users/gm_alex/)
 * (@gm_alex)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/array_merge-error/#post-8921845)
 * Because of the lack of possibilities related to the overview of the WordPress
   support area for plugin authors I ask you to recreate your issue here: [https://github.com/GM-Alex/user-access-manager/issues](https://github.com/GM-Alex/user-access-manager/issues)
 * So I can fix it for the next release. Please resolve the issue here if you recreated
   the issue on GitHub and post the link to the new issue. Thank you very much.
 *  Thread Starter [schokopress](https://wordpress.org/support/users/schokopress/)
 * (@schokopress)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/array_merge-error/#post-8921897)
 * Thanks for the answer, I opened a new issue under the address
 * [https://github.com/GM-Alex/user-access-manager/issues/25](https://github.com/GM-Alex/user-access-manager/issues/25)
 * I’ll mark it here as resolved as requested. See you on github!

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

The topic ‘array_merge() Error’ is closed to new replies.

 * ![](https://ps.w.org/user-access-manager/assets/icon.svg?rev=1563783)
 * [User Access Manager](https://wordpress.org/plugins/user-access-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-access-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/user-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-access-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [schokopress](https://wordpress.org/support/users/schokopress/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/array_merge-error/#post-8921897)
 * Status: resolved