• eRooms Pro plugin is throwing a fatal error when I attempt to move a meeting to trash. Apparently it’s trying to delete the Google Meet event which I didn’t create. The Google Meet add on is not even active.

    Notice: Trying to get property 'events' of non-object in /home4/bigbrish/public_html/wp-content/plugins/eroom-zoom-meetings-webinar-pro/addons/GoogleMeet/Services/GoogleCalendarEvent.php on line 155

    Fatal error: Uncaught Error: Call to a member function delete() on null in /home4/bigbrish/public_html/wp-content/plugins/eroom-zoom-meetings-webinar-pro/addons/GoogleMeet/Services/GoogleCalendarEvent.php:155 Stack trace: #0 /home4/bigbrish/public_html/wp-includes/class-wp-hook.php(326): GoogleMeet\Services\GoogleCalendarEvent::delete_google_meeting(28931) #1 /home4/bigbrish/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home4/bigbrish/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home4/bigbrish/public_html/wp-includes/post.php(3694): do_action('wp_trash_post', 28931, 'draft') #4 /home4/bigbrish/public_html/wp-admin/post.php(260): wp_trash_post(28931) #5 {main} thrown in /home4/bigbrish/public_html/wp-content/plugins/eroom-zoom-meetings-webinar-pro/addons/GoogleMeet/Services/GoogleCalendarEvent.php on line 155

    I’ve solved by commenting out this line

    ...
    public static function delete_google_meeting( $post_id ) {
    if ( ! in_array( get_post_type( $post_id ), array( 'stm-zoom', 'stm-zoom-webinar' ), true ) ) {
    return $post_id;
    }
    try {
    $google_client = self::get_google_client();
    $meet_id = get_post_meta( $post_id, 'google_meet_id' );

    // Line 155 --> $google_client->events->delete( 'primary', $meet_id );
    } catch ( \Google_Service_Exception $e ) {
    return $e->getMessage();
    }

    delete_post_meta( $post_id, 'google_meet_id' );
    delete_post_meta( $post_id, 'google_meet_link' );
    }
    ...

    Please work on update that fixes this properly

    • This topic was modified 5 months, 2 weeks ago by Andrew Lema.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.