• This error has been logged three months ago, and still seems to be affecting this plugin:

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

    For me, it works when logged in, but results in a completely blank screen for anonymous visitors.

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

    (@judgej)

    My work around is to add a condition to line 135 of the more-types-object.php script:

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

    changed to:

    if (is_object($wp_roles)) $wp_roles->add_cap($role, $capability);

    Although this works now, it may be back at the next plugin upgrade, and I am not sure what capabilities are removed through that condition.

    judgej – Thanks a lot for posting yourfix. Unfortunately, I needed it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: More Types] Call to a member function add_cap() on a non-object’ is closed to new replies.