{"id":8921841,"date":"2017-03-16T14:19:40","date_gmt":"2017-03-16T14:19:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/array_merge-error\/"},"modified":"2017-03-16T14:19:40","modified_gmt":"2017-03-16T14:19:40","slug":"array_merge-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/array_merge-error\/","title":{"rendered":"array_merge() Error"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I just noticed that one page of my website shows this error:<\/p>\n<p>&#8220;Warning: array_merge(): Argument #1 is not an array in [&#8230;]\/wp-content\/plugins\/user-access-manager\/class\/UserAccessManager.php on line 1494&#8221;<\/p>\n<p>I looked at the php-file and found this function:<\/p>\n<p>if (count($aAllExcludedPosts) &gt; 0) {<br \/>\n            $oWpQuery-&gt;query_vars[&#8216;post__not_in&#8217;] = array_merge(<br \/>\n               <em> $oWpQuery-&gt;query_vars[&#8216;post__not_in&#8217;],<\/em><br \/>\n                $aAllExcludedPosts<br \/>\n            );<br \/>\nLine 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.<br \/>\nAny ideas how to fix this?<\/p>\n<p>Thanks in advance,<br \/>\nschokopress<\/p>\n","protected":false},"template":"","class_list":["post-8921841","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8921841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8921841\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8921841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}