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.
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.
jalancast
Member
Posted 1 year ago #
judgej - Thanks a lot for posting yourfix. Unfortunately, I needed it.