Title: Error
Last modified: April 15, 2021

---

# Error

 *  Resolved [vhenry1974](https://wordpress.org/support/users/vhenry1974/)
 * (@vhenry1974)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1514/)
 * [15-Apr-2021 11:26:51 UTC] PHP Warning: Invalid argument supplied for foreach()
   in public_html/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php
   on line 385

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1514/#post-14323293)
 * Looks like potentially one of your post types doesn’t have a labels index saved
   in the CPTUI settings.
 * Hopefully you don’t have a HUGE amount, but perhaps try editing each post type
   you have saved with CPTUI, and just click save once done, without actually editing
   anything. That will hopefully get at least an empty array in place to remove 
   that warning you provided above.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1514/#post-14349425)
 * Any news or changes here [@vhenry1974](https://wordpress.org/support/users/vhenry1974/)
   or did my suggestion end up clearing out the issue?

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

The topic ‘Error’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/error-1514/#post-14349425)
 * Status: resolved