Title: array_unique returning null
Last modified: August 30, 2016

---

# array_unique returning null

 *  Resolved [RRaker](https://wordpress.org/support/users/rraker/)
 * (@rraker)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array_unique-returning-null/)
 * Hi,
 * My site suddenly started throwing these two errors on custom post. Can you please
   help?
 * Warning: array_unique() expects parameter 1 to be array, null given in /nas/content/
   staging/accutune/wp-includes/post-template.php on line 520
 * Warning: implode(): Invalid arguments passed in /nas/content/staging/accutune/
   wp-content/themes/enfold/includes/loop-index.php on line 87
 * Everything still displays ok but I know something must be broken.
 * Thank you!
 * -Ryan
 * [https://wordpress.org/plugins/custom-post-type-ui/](https://wordpress.org/plugins/custom-post-type-ui/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array_unique-returning-null/#post-6865570)
 * Not sure what to tell ya there. We don’t use array_unique() at all in our plugin.
 * The second warning is coming from your theme as well, not CPTUI

Viewing 1 replies (of 1 total)

The topic ‘array_unique returning null’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/array_unique-returning-null/#post-6865570)
 * Status: resolved