WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
Setting causes warning (3 posts)

  1. stvclanton
    Member
    Posted 2 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 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/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 2 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
    Member
    Plugin Author

    Posted 2 years ago #

    This was fixed and updated in 0.9.4.2.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic