Title: Getting PHP Warnings from Plugin
Last modified: May 27, 2020

---

# Getting PHP Warnings from Plugin

 *  Resolved [loreburek](https://wordpress.org/support/users/loreburek/)
 * (@loreburek)
 * [6 years ago](https://wordpress.org/support/topic/getting-php-warnings-from-plugin/)
 * Hi all, i’m trying to track down a performance issue (Memory and I/O max out)
   in the wordpress ui when i try to edit a particular page.
    In looking at my error
   file (at the root of /public_html), I noticed the same 2 errors popping up recently:
 *     ```
       [27-May-2020 00:07:56 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/thgas5fao4qf/public_html/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 381
       [27-May-2020 00:07:56 UTC] PHP Warning:  in_array() expects parameter 2 to be array, null given in /home/thgas5fao4qf/public_html/wp-content/plugins/custom-post-type-ui/inc/utility.php on line 901
       ```
   
 * I disabled the plugin. It didn’t fix my editing/performance issue, but I’m hestitant
   to re-activate this plugin with these warnings happening nearly every minute.
 * Any ideas? Core plugin issue, or could it be somewhere else?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [6 years ago](https://wordpress.org/support/topic/getting-php-warnings-from-plugin/#post-12896857)
 * Shouldn’t be a major issue to re-activate. They’re just notices. Fatal errors
   or warnings would be more worrisome.
 * What version of the plugin are you running, if not 1.7.4? Just in case it helps,
   any reason to not upgrade to that latest? The two have been pretty small releases,
   since I think you may be on 1.7.2.
    -  This reply was modified 6 years ago by [Michael Beckwith](https://wordpress.org/support/users/tw2113/).

Viewing 1 replies (of 1 total)

The topic ‘Getting PHP Warnings from Plugin’ 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

 * [invalid argument](https://wordpress.org/support/topic-tag/invalid-argument/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/getting-php-warnings-from-plugin/#post-12896857)
 * Status: resolved