Title: [Plugin: Custom Content Type Manager] Setting causes warning
Last modified: August 20, 2016

---

# [Plugin: Custom Content Type Manager] Setting causes warning

 *  [stvclanton](https://wordpress.org/support/users/stvclanton/)
 * (@stvclanton)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-content-type-manager-setting-causes-warning/)
 * Checking “Show Settings Menu” under CCTM Setting tab cause a warning:
 * Warning: Invalid argument supplied for foreach() in /var/www/vhosts/example.com/
   httpdocs/wp-content/plugins/custom-content-type-manager/includes/CCTM.php on 
   line 879
 * I was able to duplicate the error vanilla wordpress 3.2.1 installation with 0.9.4.1-
   pl. I tried to submit to the bug tracker, but the submit button was grayed out.
 * [http://wordpress.org/extend/plugins/custom-content-type-manager/](http://wordpress.org/extend/plugins/custom-content-type-manager/)

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

 *  Plugin Contributor [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * (@fireproofsocks)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-content-type-manager-setting-causes-warning/#post-2334538)
 * Hmm… interesting. The Bug tracker thing might be because Google was doing maintenance
   on their code site…
 * Ah, ok, I see where this is getting tripped up. I’ll implement it as a fix. Thanks
   for bringing this to my attention!
 * You should be able to move this line:
 * `$active_post_types = self::get_active_post_types();`
 * to the top of the create_admin_menu() function, around line 764, right after 
   the function declaration, like this:
 *     ```
       public static function create_admin_menu() {
                  $active_post_types = self::get_active_post_types();
       ```
   
 * That should fix it.
 *  Plugin Contributor [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * (@fireproofsocks)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-content-type-manager-setting-causes-warning/#post-2334640)
 * This was fixed and updated in 0.9.4.2.

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

The topic ‘[Plugin: Custom Content Type Manager] Setting causes warning’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-type-manager_c9c790.
   svg)
 * [Custom Content Type Manager](https://wordpress.org/plugins/custom-content-type-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-content-type-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-type-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-type-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-type-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-type-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-content-type-manager-setting-causes-warning/#post-2334640)
 * Status: not resolved