• I received this error after carrying out a bulk conversion of three ordinary posts into a new ‘Doc’ type I had created with this plugin:

    Fatal error: Call to a member function add_cap() on a non-object in /home/erlend_sh/silverback3d.dreamhosters.com/wordpress2/wp-content/plugins/more-types/more-types-object.php on line 135

    https://www.ads-software.com/extend/plugins/more-types/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Erlend

    (@sadr)

    Apparently pressing ‘edit’ now takes me to the front page… I figured out that the error doesn’t present itself until I log out.

    Find line 135.

    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);
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: More Types] Converting post types creates error’ is closed to new replies.