Title: PHP errors
Last modified: September 1, 2016

---

# PHP errors

 *  Resolved [Josh Fialkoff](https://wordpress.org/support/users/nooozeguy/)
 * (@nooozeguy)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-81/)
 * Hi,
    Our logs show errors related to the plugin. What do you recommend we do 
   to fix this? Thanks, Josh
 * [01-Jul-2016 20:26:18 UTC] PHP Warning: in_array() expects parameter 2 to be 
   array, null given in /home/[site]/public_html/red2/wp-content/plugins/custom-
   post-type-ui/custom-post-type-ui.php on line 282
    [01-Jul-2016 20:26:18 UTC] 
   PHP Warning: Invalid argument supplied for foreach() in /home/[site]/public_html/
   red2/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 292
 * [https://wordpress.org/plugins/custom-post-type-ui/](https://wordpress.org/plugins/custom-post-type-ui/)

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-81/#post-7537150)
 * Regarding the first error, you’re somehow getting a value of null saved in the
   supports parameter for one or more of your posts types. The question is how because
   for the most part, I’ve avoided using “null” at all.
 * For the second error, best guess I have is that you have something that isn’t
   an array, empty or filled, for the labels spot for one or more of your post types.
 * Would you be willing to send your post type settings to me, so I can check on
   that?
 * You can use the values stored in the import/export area and the post type tab,
   or you can use the “Debug info” tab to send that and more to me via email. Fill
   in the text input below the large textarea with michael @ webdevstudios . com
   and it’ll go to me.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-81/#post-7537309)
 * Hey Josh, I wanted to write and say that I did receive your email, but that’s
   not looking like the CPTUI data that I’d need to debug the null values issues.
   That looks like it comes from Custom Content Type Manager instead of our plugin.
 * All of our stuff would be available in the [http://MYSITE.com/wp-admin/admin.php?page=cptui_importexport](http://MYSITE.com/wp-admin/admin.php?page=cptui_importexport)
   area.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-errors-81/#post-7537340)
 * Any changes here Josh?
 *  Thread Starter [Josh Fialkoff](https://wordpress.org/support/users/nooozeguy/)
 * (@nooozeguy)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-errors-81/#post-7537341)
 * Hi Michael,
    We had imported CCTM CPTs into CPT UI. We ended up remaking these
   in CPT UI. I don’t see these errors any more. Thanks for checking and for your
   help! Josh
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-errors-81/#post-7537342)
 * Welcome. Glad things got sorted out 🙂

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

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

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 5 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/php-errors-81/#post-7537342)
 * Status: resolved