WordPress.org

Ready to get started?Download WordPress

Forums

More Types
Call to member function on a non-object add_cap() (3 posts)

  1. Donald Gilbert
    Member
    Posted 2 years ago #

    When are guys going to fix this for real? Every time I update, it breaks with the same stupid error.

    http://wordpress.org/extend/plugins/more-types/

  2. JeffreyLin
    Member
    Posted 2 years ago #

    this hack from http://wordpress.org/support/topic/plugin-more-types-fatal-error-call-to-a-member-function-add_cap

    seems to work

    on line 139

    Change: $wp_roles->add_cap($role, $capability);

    To:
    if(is_object($mp_roles) && method_exists($wp_roles,'add_cap'))
    {
    $wp_roles->add_cap($role, $capability);
    }

  3. batitombo
    Member
    Posted 2 years ago #

    Is there a development version of this plugin so we can push changes? and then the authors push it to the master?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags