Title: array_intersect error with latest version:
Last modified: August 30, 2016

---

# array_intersect error with latest version:

 *  Resolved [Matt](https://wordpress.org/support/users/syntax53/)
 * (@syntax53)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/array_intersect-error-with-latest-version/)
 * Having this show up in PHP error log repeatedly.
 * [27-Oct-2015 12:37:00 UTC] PHP Warning: array_intersect(): Argument #1 is not
   an array in D:\path\to\wp\wp-content\plugins\threewp-broadcast\src\sdk\wordpress\
   base.php on line 489
 * [https://wordpress.org/plugins/threewp-broadcast/](https://wordpress.org/plugins/threewp-broadcast/)

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

 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/array_intersect-error-with-latest-version/#post-6690063)
 * This is an error related to the user roles. More specifically, the user capabilities
   on the blog.
 * Do you perhaps know what caps the user has? Or could you dig into your blog’s
   options table to find the raw capabilities string for the user?
 *  Thread Starter [Matt](https://wordpress.org/support/users/syntax53/)
 * (@syntax53)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/array_intersect-error-with-latest-version/#post-6690068)
 * Ah ok, that makes sense. I had some users logging into the site that normally
   shouldn’t have been. (I have a modified plugin to map/create user accounts automatically
   from LDAP.) When those users logged in they didn’t know what the hell they were
   doing (a link was given to them inadvertently). It looks like when they click
   on a button that I’ve added to the admin dashboard top-bar (a posts button taking
   you to /edit.php) they get the following message:
 * You attempted to access the “(my site name)” dashboard, but you do not currently
   have privileges on this site. If you believe you should be able to access the“(
   my site name)” dashboard, please contact your network administrator.
 * And above that message is 4 copies of the error in question. So it looks like
   it happens when they click on a button that normally shouldn’t be there accessing
   a page that they don’t have access to 🙂
 * I can add a check to see if they have access on the code I put in to put the 
   button there and make the button go away in that case, but I assume you may want
   to put some error checking on your end as well.
 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/array_intersect-error-with-latest-version/#post-6690074)
 * Aye, I suppose I could, but this isn’t an error that is supposed to appear under
   normal circumstances.
 * Well, resolved then. Fault wasn’t mine (yay!).
 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/array_intersect-error-with-latest-version/#post-6690227)
 * This will be fixed in the next version of BC.

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

The topic ‘array_intersect error with latest version:’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/array_intersect-error-with-latest-version/#post-6690227)
 * Status: resolved