Support » Plugins and Hacks » Custom Content Type Manager » [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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor fireproofsocks

    (@fireproofsocks)


    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

    (@fireproofsocks)


    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.