Custom Content Type Manager
Setting causes warning (3 posts)

  1. stvclanton
    Posted 4 years ago #

    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 I tried to submit to the bug tracker, but the submit button was grayed out.


  2. fireproofsocks
    Plugin Contributor

    Posted 4 years ago #

    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.

  3. fireproofsocks
    Plugin Contributor

    Posted 4 years ago #

    This was fixed and updated in

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic