Solution for event manager wordpress lugin error line 200

Problem:

Notice: Undefined property: stdClass::$ID in …./wp-content/plugins/events-manager/events-manager.php on line 200

 

Solution

Replace line 200 with

 

$obj_id = 0;

if( is_home() ){

   $obj_id = ‘-1’;

}elseif( !empty( $obj->ID ) ){

$obj_id = $obj->ID;

}

.