PHP Fatal error

Yup, there it is:

PHP Fatal error: Call to a member function has_cap() on a non-object in public_html/wp-content/plugins/automessage/classes/class.automessage.php on line 95

A possible solution would be to check if the $role is actually an object

$role = get_role( 'administrator' );
if( is_object($role) and !$role->has_cap( 'read_automessage' ) ) { ...
  • aecnu
    • WP Unicorn

    Greetings adrian7,

    Just checking if this issue was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?

    If so, no need to reply, that's great news.

    If not, or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)

    Otherwise, happy days, glad you got it sorted :slight_smile:

    Thank you for being a WPMU Dev member!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.